minecraft:entity_placer¶
文档版本:1.21.0.24
The entity_placer item component specifies the blocks that the item can be placed on.
架构¶
minecraft:entity_placer:
{
array "dispense_on" : opt
{
block_descriptor "<any array element>"
}
string "entity" : opt
array "use_on" : opt
{
block_descriptor "<any array element>"
}
}
dispense_on
:array- List of block descriptors of the blocks that this item can be dispensed on. If left empty, all blocks will be allowed.
dispense_on
<any array element>
:block_descriptor
block_descriptor:
{
string "name" : opt
object "states" : opt
{
string "<any object property>" : opt
integer "<any object property>" : opt
}
expression_node_string "tags"
}
name
:string
states
:object
states
<any object property>
:string
<any object property>
:integer
tags
:expression_node_string
entity
:string- The entity to be placed in the world.
use_on
:array- List of block descriptors of the blocks that this item can be used on. If left empty, all blocks will be allowed.
use_on
<any array element>
:block_descriptor