minecraft:entity_placer

The entity_placer item component specifies the blocks that the item can be placed on.

Properties

PropertyTypeDefaultWhat it does
entityText—The entity to be placed in the world.
use_onList of object or text[]List of block descriptors of the blocks that this item can be used on. If left empty, all blocks will be allowed.
dispense_onList of object or text[]List of block descriptors of the blocks that this item can be dispensed on. If left empty, all blocks will be allowed.

Used by

No vanilla item file in the official samples uses this component. It is still part of the schema, so add-ons can use it.

Related components