ItemComponent - Adventure Predicate Apply (Section) — SkBee
Addon: SkBee · Category: Section · Since: 3.8.0
Syntax
apply (can place on|can break) [adventure] predicate to %itemstacks/itemtypes/slots%Description
Apply an adventure can break/can place on predicate to items. Requires Paper 1.21.3+ See [**Can Break**](https://minecraft.wiki/w/Data_component_format#can_break)/[**Can Place On**](https://minecraft.wiki/w/Data_component_format#can_place_on) components on McWiki for more info.
**Entries**: - `blocks` = The blocks this item can place on/can break. (Accepts ItemTypes, BlockDatas, Tags, TagKeys and RegistryKeySets(soon™))
Examples
apply can break adventure predicate to player's tool:
blocks: grass block, dirt, stone, gravel
apply can break adventure predicate to player's tool:
blocks: minecraft block tag "minecraft:mineable/pickaxe"
apply can place on adventure predicate to player's tool:
blocks: minecraft block tag "minecraft:logs"