Item Documentation - minecraft:block_placer

minecraft:block_placer sets the item as a Planter item component for blocks. Items with this component will place a block when used.

Parameters

Name Default Value Type Description
block not set JSON Object Defines the block that will be placed.
use_on not set Array List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed. See Custom Item Use Priority for more information on use behavior.

Example

"minecraft:block_placer":{
    "block": "seeds",
    "use_on" : ["dirt",
                "grass"]
}