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>"
}
}
block
:string- Defines the block that will be placed.
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
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