跳转至

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_onarray
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"
}
namestring
statesobject
states
<any object property>string
<any object property>integer
tagsexpression_node_string
expression_node_string:
string
block_descriptor:
string
entitystring
The entity to be placed in the world.
use_onarray
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