跳转至

minecraft:block_placer

文档版本:1.21.0.24

Items with the block_placer component will place a block when used.

架构

minecraft:block_placer:
{
  string "block" : opt
  array "use_on" : opt
  {
    block_descriptor "<any array element>"
  }
}
blockstring
Defines the block that will be placed.
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
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