minecraft:digger¶
文档版本:1.21.0.24
Digger item component specifies how quickly this item can dig specific blocks.
架构¶
minecraft:digger:
{
array "destroy_speeds" : opt
{
object "<any array element>" : opt
{
block_descriptor "block"
integer "speed" : opt
}
}
boolean "use_efficiency" : opt
definition_trigger "on_consume"
}
destroy_speeds
:array- A list of blocks to dig with correlating speeds of digging.
destroy_speeds
<any array element>
:object
<any array element>
block
:block_descriptor- Block to be dug.
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
speed
:integer- Digging speed for the correlating block(s).
use_efficiency
:boolean- Determines whether this item should be impacted if the efficiency enchantment is applied to it.
on_consume
:definition_trigger- Event trigger for when the item is consumed.