Item¶
文档版本:1.21.0.24
Minecraft items
架构¶
format_version
:format_version
minecraft:item
:items
items:
{
object "description" : opt
{
identifier "identifier"
boolean "is_experimental" : opt
object "menu_category" : opt
{
item_group "group"
creative_category "category"
boolean "is_hidden_in_commands" : opt
}
}
object "components" : opt
{
minecraft:allow_off_hand "minecraft:allow_off_hand"
minecraft:block_placer "minecraft:block_placer"
minecraft:can_destroy_in_creative "minecraft:can_destroy_in_creative"
minecraft:cooldown "minecraft:cooldown"
minecraft:damage "minecraft:damage"
minecraft:digger "minecraft:digger"
minecraft:display_name "minecraft:display_name"
minecraft:durability "minecraft:durability"
minecraft:enchantable "minecraft:enchantable"
minecraft:entity_placer "minecraft:entity_placer"
minecraft:food "minecraft:food"
minecraft:fuel "minecraft:fuel"
minecraft:foil "minecraft:glint"
minecraft:hand_equipped "minecraft:hand_equipped"
minecraft:icon "minecraft:icon"
minecraft:liquid_clipped "minecraft:liquid_clipped"
minecraft:max_stack_size "minecraft:max_stack_size"
minecraft:projectile "minecraft:projectile"
minecraft:record "minecraft:record"
minecraft:repairable "minecraft:repairable"
minecraft:shooter "minecraft:shooter"
minecraft:should_despawn "minecraft:should_despawn"
minecraft:stacked_by_data "minecraft:stacked_by_data"
minecraft:tags "minecraft:tags"
minecraft: "minecraft:throwable"
minecraft:use_animation "minecraft:use_animation"
minecraft:use_modifiers "minecraft:use_modifiers"
minecraft:wearable "minecraft:wearable"
object "<any object property>" : opt
{
}
}
events "events"
}
description
:object- The description for this item
description
identifier
:identifier- The identifier for this item. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla item.
is_experimental
:boolean- If this item is experimental, it will only be registered if the world is marked as experimental.
menu_category
:object- The Creative Category that includes the specified item.
menu_category
components
:object- The components of this item.
components
minecraft:allow_off_hand
:minecraft:allow_off_handminecraft:allow_off_hand
组件。The components of this item.
minecraft:block_placer
:minecraft:block_placerminecraft:block_placer
组件。The components of this item.
minecraft:can_destroy_in_creative
:minecraft:can_destroy_in_creativeminecraft:can_destroy_in_creative
组件。The components of this item.
minecraft:cooldown
:minecraft:cooldownminecraft:cooldown
组件。The components of this item.
minecraft:damage
:minecraft:damageminecraft:damage
组件。The components of this item.
minecraft:digger
:minecraft:diggerminecraft:digger
组件。The components of this item.
minecraft:display_name
:minecraft:display_nameminecraft:display_name
组件。The components of this item.
minecraft:durability
:minecraft:durabilityminecraft:durability
组件。The components of this item.
minecraft:enchantable
:minecraft:enchantableminecraft:enchantable
组件。The components of this item.
minecraft:entity_placer
:minecraft:entity_placerminecraft:entity_placer
组件。The components of this item.
minecraft:food
:minecraft:foodminecraft:food
组件。The components of this item.
minecraft:fuel
:minecraft:fuelminecraft:fuel
组件。The components of this item.
minecraft:glint
:minecraft:foilminecraft:glint
组件。The components of this item.
minecraft:hand_equipped
:minecraft:hand_equippedminecraft:hand_equipped
组件。The components of this item.
minecraft:icon
:minecraft:iconminecraft:icon
组件。The components of this item.
minecraft:liquid_clipped
:minecraft:liquid_clippedminecraft:liquid_clipped
组件。The components of this item.
minecraft:max_stack_size
:minecraft:max_stack_sizeminecraft:max_stack_size
组件。The components of this item.
minecraft:projectile
:minecraft:projectileminecraft:projectile
组件。The components of this item.
minecraft:record
:minecraft:recordminecraft:record
组件。The components of this item.
minecraft:repairable
:minecraft:repairableminecraft:repairable
组件。The components of this item.
minecraft:shooter
:minecraft:shooterminecraft:shooter
组件。The components of this item.
minecraft:should_despawn
:minecraft:should_despawnminecraft:should_despawn
组件。The components of this item.
minecraft:stacked_by_data
:minecraft:stacked_by_dataminecraft:stacked_by_data
组件。The components of this item.
minecraft:tags
:minecraft:tagsminecraft:tags
组件。The components of this item.
minecraft:throwable
:minecraft:minecraft:throwable
组件。The components of this item.
minecraft:use_animation
:minecraft:use_animationminecraft:use_animation
组件。The components of this item.
minecraft:use_modifiers
:minecraft:use_modifiersminecraft:use_modifiers
组件。The components of this item.
minecraft:wearable
:minecraft:wearableminecraft:wearable
组件。The components of this item.
<any object property>
:object
<any object property>
events
:events
events:
{
object "on_consume" : opt
{
array "sequence" : opt
{
object "<any array element>" : opt
{
}
}
array "randomize" : opt
{
object "<any array element>" : opt
{
}
}
object "run_command" : opt
{
array "command" : opt
{
string "<any array element>" : opt
}
string "target" : opt
}
}
object "<any object property>" : opt
{
}
}
on_consume
:object- UNDOCUMENTED.
on_consume
sequence
:array- UNDOCUMENTED.
sequence
<any array element>
:object- UNDOCUMENTED.
<any array element>
randomize
:array- UNDOCUMENTED.
randomize
<any array element>
:object- UNDOCUMENTED.
<any array element>
run_command
:object- UNDOCUMENTED.
run_command
command
:array- UNDOCUMENTED.
command
<any array element>
:string- UNDOCUMENTED.
target
:string- UNDOCUMENTED.
<any object property>
:object- UNDOCUMENTED.
<any object property>