Info: Items are experimental and may change in the future.

ITEM DOCUMENTATION
Version: 1.20.70.6

Index

Items

To define an item, the item definition must be defined in the behavior pack in a JSON file.
All attributes, including item names, must be defined using item components.

Item Definition Properties

The properties are part of the Item Definition. This helps the system determine how to parse and initialize this item.

Name Type Default Value Description
format_version Specifies the version of the game this entity was made in. If the version is lower than the current version, any changes made to the entity in the vanilla version will be applied to it.
minecraft:item Item definition, which includes the "description" and "components" sections.

Code Example

Example

{
  "format_version": "1.20.20",
  "minecraft:item": {
    "description": {
      "identifier": "minecraft:blaze_rod"
    },
    "components": {
      "minecraft:fuel": {
        "duration": 120.0
      },
      "minecraft:max_stack_size": 64,
      "minecraft:icon": {
        "texture": "blaze_rod"
      },
      "minecraft:hand_equipped": true,
      "minecraft:display_name": {
        "value": "Blaze Rod"
      }
    }
  }
}


LocIdString


block_legacy_ptr


bool


class std::basic_string,class std::allocator >


class std::vector,class std::allocator >,class std::allocator,class std::allocator > > >


components v1.20.50

List of all components that used in this item.

Name Type Default Value Description
minecraft:allow_off_hand JSON Object
minecraft:block_placer JSON Object
minecraft:can_destroy_in_creative JSON Object
minecraft:cooldown JSON Object
minecraft:damage JSON Object
minecraft:digger JSON Object
minecraft:display_name JSON Object
minecraft:durability JSON Object
minecraft:enchantable JSON Object
minecraft:entity_placer JSON Object
minecraft:food JSON Object
minecraft:fuel JSON Object
minecraft:glint JSON Object
minecraft:hand_equipped JSON Object
minecraft:hover_text_color JSON Object
minecraft:icon JSON Object
minecraft:interact_button JSON Object
minecraft:item_storage JSON Object
minecraft:liquid_clipped JSON Object
minecraft:max_stack_size JSON Object
minecraft:projectile JSON Object
minecraft:record JSON Object
minecraft:repairable JSON Object
minecraft:shooter JSON Object
minecraft:should_despawn JSON Object
minecraft:stacked_by_data JSON Object
minecraft:tags JSON Object
minecraft:throwable JSON Object
minecraft:use_animation JSON Object
minecraft:use_modifiers JSON Object
minecraft:wearable JSON Object

description v1.20.10

List of characters of an item. The description MUST contain an identifier; the other fields are optional.

Name Type Default Value Description
identifier String The identifier for this item. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla item.
menu_category JSON Object

draw_duration_node


enum Puv::Legacy::UseAnimation


float


hashed_string


int


item_descriptor


menu_category v1.20.10

The creative group name and category for this item.

Name Type Default Value Description
category "construction", "nature", "equipment", "items", "none" The Creative Category that this item belongs to. Defaults to "items".
group String The Creative Group that this item belongs to. Group name is limited to 256 characters.
is_hidden_in_commands Boolean Determines whether or not this item can be used with commands. Commands can use items by default.

minecraft:allow_off_hand

The allow off hand component determines whether the item can be placed in the off hand slot of the inventory.

Name Type Default Value Description
value Boolean Whether the item can be placed in the off hand slot.

minecraft:block_placer

Block Placer item component. Items with this component will place a block when used.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.10)

Name Type Default Value Description
block JSON Object Defines the block that will be placed.
use_on Array List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.

minecraft:can_destroy_in_creative

The can destroy in creative component determines if the item will break blocks in creative when swinging.

Name Type Default Value Description
value Boolean Whether the item can destroy blocks while in creative.

minecraft:cooldown

Cool down time for a component. After you use an item, all items specified with the same `cool down category` setting becomes unusable for the duration specified by the 'cool down time' setting in this component.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.10)

Name Type Default Value Description
category JSON Object The type of cool down for this item. All items with a cool down component with the same category are put on cool down when one is used.
duration Float The duration of time (in seconds) items with a matching category will spend cooling down before becoming usable again.

minecraft:damage

The damage component determines how much extra damage the item does on attack.

Name Type Default Value Description
value How much extra damage the item does, must be a positive number.

minecraft:digger v1.20.50

Digger item component. You can specify how quickly this item can dig specific blocks.

Name Type Default Value Description
destroy_speeds Array A list of blocks to dig with correlating speeds of digging.
use_efficiency Boolean Whether this item should be impacted if the efficiency enchant is applied to it.

minecraft:display_name

Display Name item component. Determines the text shown whenever an item's name is displayed (ex. hover text).
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.0)

Name Type Default Value Description
value String The display name for an item.

minecraft:durability

Durability item component. Determines how much damage this item takes before breaking and allows the item to be combined in crafting.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.0)

Name Type Default Value Description
damage_chance JSON Object Damage chance is the percentage chance of this item losing durability. Default is set to 100. Defined as an int range with min and max value.
max_durability Integer Max durability is the amount of damage that this item can take before breaking. This is a required parameter and has a minimum of 0.

minecraft:enchantable

The enchantable component determines what enchantments can be applied to the item. Not all enchantments will have an effect on all item components.

Name Type Default Value Description
slot String What enchantments can be applied (ex. Using `bow` would allow this item to be enchanted as if it were a bow).
value The value of the enchantment (minimum of 0).

minecraft:entity_placer

Entity placer item component. You can specifiy allowed blocks that the item is restricted to.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.0)

Name Type Default Value Description
dispense_on Array List of block descriptors that contain blocks that this item can be dispensed on. If left empty, all blocks will be allowed.
entity JSON Object The entity to be placed in the world.
use_on Array List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.

minecraft:food v1.20.30

When an item has a food component, it becomes edible to the player. Must have the 'minecraft:use_duration' component in order to function properly.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.30)

Name Type Default Value Description
can_always_eat Boolean If true you can always eat this item (even when not hungry). Default is set to false.
nutrition Integer The value that is added to the actor's nutrition when the item is used. Default is set to 0.
saturation_modifier Float Saturation Modifier is used in this formula: (nutrition * saturation_modifier * 2) when applying the saturation buff. Default is set to 0.6.
using_converts_to JSON Object When used, converts to the item specified by the string in this field. Default does not convert item.

minecraft:fuel

Fuel item component. Allows this item to be used as fuel in a furnace to 'cook' other items.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.0)

Name Type Default Value Description
duration Float How long in seconds will this fuel cook items for.

minecraft:glint

The glint component determines whether the item has the enchanted glint render effect on it.

Name Type Default Value Description
value Boolean Whether the item has the glint effect.

minecraft:hand_equipped

This component determines if an item is rendered like a tool while in hand.

Name Type Default Value Description
value Boolean If the item is rendered like a tool while in hand.

minecraft:hover_text_color

The hover text color component determines the color of the item name when hovering over it.

Name Type Default Value Description
value JSON Object The color of the item's hover text.

minecraft:icon

Icon item component. Determines the icon to represent the item in the UI and elsewhere.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.0)

Name Type Default Value Description
textures JSON Object This map contains the different textures that can be used for the item's icon. Default will contain the actual icon texture. Armor trim textures and palettes can be specified here too. The icon textures are the keys from the resource_pack/textures/item_texture.json 'texture_data' object associated with the texture file.

minecraft:interact_button

This component is a boolean or string that determines if the interact button is shown in touch controls and what text is displayed on the button. When set as true, default "Use Item" text will be used.

minecraft:item v1.20.50

Item definition, which includes the "description" and "components" sections.

Name Type Default Value Description
components JSON Object List of all components that used in this item.
description JSON Object List of characters of an item. The description MUST contain an identifier; the other fields are optional.

minecraft:item_storage

The Storage Item Component is used for storing Items within an Item's User Data
Experimental toggles required: Vanilla Experiments Internal (NON_LOC)

Name Type Default Value Description
capacity Integer The max capacity of the item, default is 64

minecraft:liquid_clipped

The liquid clipped component determines whether the item interacts with liquid blocks on use.

Name Type Default Value Description
value Boolean Whether the item interacts with liquid blocks on use.

minecraft:max_stack_size

The max stack size component determines how many of the item can be stacked together.

Name Type Default Value Description
value How many of the item that can be stacked.

minecraft:projectile

Projectile item component. projectile items shoot out, like an arrow.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.10)

Name Type Default Value Description
minimum_critical_power Float How long you must charge a projectile for it to critically hit.
projectile_entity JSON Object The entity to be fired as a projectile.

minecraft:record

Record Item Component. Used by record items to play music.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.10)

Name Type Default Value Description
comparator_signal Integer Signal strength for comparator blocks to use, from 1 - 13.
duration Float Duration of sound event in seconds, float value.
sound_event "item.use.on", "hit", "step", "step.baby", "fly", "jump", "jump.prevent", "break", "place", "heavy.step", "gallop", "fall", "hurt", "hurt.baby", "hurt.in.water", "death", "death.baby", "death.in.water", "death.to.zombie", "ambient", "ambient.baby", "ambient.in.water", "ambient.in.air", "ambient.tame", "ambient.pollinate", "breathe", "mad", "boost", "bow", "squish.big", "squish.small", "fall.big", "fall.small", "splash", "fizz", "flap", "swim", "drink", "drink.honey", "drink.milk", "eat", "takeoff", "shake", "plop", "land", "saddle", "armor", "mob.armor_stand.place", "add.chest", "throw", "attack", "attack.nodamage", "attack.strong", "warn", "shear", "milk", "thunder", "explode", "fire", "ignite", "fuse", "stare", "spawn", "born", "shoot", "break.block", "launch", "blast", "large.blast", "twinkle", "remedy", "unfect", "convert_to_drowned", "levelup", "bow.hit", "bullet.hit", "extinguish.fire", "item.fizz", "chest.open", "chest.closed", "shulkerbox.open", "shulkerbox.closed", "enderchest.open", "enderchest.closed", "power.on", "power.off", "attach", "detach", "deny", "tripod", "pop", "drop.slot", "note", "thorns", "piston.in", "piston.out", "portal", "water", "lava.pop", "lava", "beacon.activate", "beacon.ambient", "beacon.deactivate", "beacon.power", "conduit.activate", "conduit.ambient", "conduit.attack", "conduit.deactivate", "conduit.short", "bubble.pop", "bubble.up", "bubble.upinside", "bubble.down", "bubble.downinside", "burp", "bucket.fill.water", "bucket.empty.water", "bucket.fill.lava", "bucket.empty.lava", "bucket.fill.fish", "bucket.empty.fish", "armor.equip_chain", "armor.equip_diamond", "armor.equip_elytra", "armor.equip_generic", "armor.equip_gold", "armor.equip_iron", "armor.equip_leather", "armor.equip_netherite", "record.13", "record.cat", "record.blocks", "record.chirp", "record.far", "record.mall", "record.mellohi", "record.stal", "record.strad", "record.ward", "record.11", "record.wait", "record.pigstep", "record.relic", "record.otherside", "record.5", "flop", "elderguardian.curse", "teleport", "shulker.open", "shulker.close", "mob.warning", "mob.warning.baby", "haggle", "haggle.yes", "haggle.no", "haggle.idle", "disappeared", "reappeared", "chorusgrow", "chorusdeath", "glass", "potion.brewed", "cast.spell", "prepare.attack", "prepare.summon", "prepare.wololo", "fang", "charge", "camera.take_picture", "leashknot.break", "leashknot.place", "growl", "whine", "pant", "purr", "purreow", "death.min.volume", "death.mid.volume", "imitate.blaze", "imitate.cave_spider", "imitate.creeper", "imitate.elder_guardian", "imitate.ender_dragon", "imitate.enderman", "imitate.evocation_illager", "imitate.ghast", "imitate.husk", "imitate.illusion_illager", "imitate.magma_cube", "imitate.polar_bear", "imitate.shulker", "imitate.silverfish", "imitate.skeleton", "imitate.slime", "imitate.spider", "imitate.stray", "imitate.vex", "imitate.vindication_illager", "imitate.witch", "imitate.wither", "imitate.wither_skeleton", "imitate.wolf", "imitate.zombie", "imitate.zombie_pigman", "imitate.zombie_villager", "block.end_portal_frame.fill", "block.end_portal.spawn", "random.anvil_use", "bottle.dragonbreath", "balloonpop", "sparkler.active", "item.trident.hit", "item.trident.hit_ground", "item.trident.return", "item.trident.riptide_1", "item.trident.riptide_2", "item.trident.riptide_3", "item.trident.throw", "item.trident.thunder", "block.fletching_table.use", "elemconstruct.open", "icebomb.hit", "lt.reaction.icebomb", "lt.reaction.bleach", "lt.reaction.epaste", "lt.reaction.epaste2", "lt.reaction.fertilizer", "lt.reaction.fireball", "lt.reaction.mgsalt", "lt.reaction.miscfire", "lt.reaction.fire", "lt.reaction.miscexplosion", "lt.reaction.miscmystical", "lt.reaction.miscmystical2", "lt.reaction.product", "sparkler.use", "glowstick.use", "block.turtle_egg.break", "block.turtle_egg.crack", "block.turtle_egg.hatch", "block.turtle_egg.attack", "block.sniffer_egg.crack", "block.sniffer_egg.hatch", "block.frog_spawn.hatch", "block.frog_spawn.break", "swoop", "presneeze", "sneeze", "scared", "ambient.aggressive", "ambient.worried", "cant_breed", "block.scaffolding.climb", "block.bamboo_sapling.place", "crossbow.loading.start", "crossbow.loading.middle", "crossbow.loading.end", "crossbow.shoot", "crossbow.quick_charge.start", "crossbow.quick_charge.middle", "crossbow.quick_charge.end", "item.shield.block", "portal.travel", "item.book.put", "block.grindstone.use", "block.bell.hit", "block.campfire.crackle", "block.sweet_berry_bush.hurt", "block.sweet_berry_bush.pick", "block.stonecutter.use", "block.cartography_table.use", "block.composter.empty", "block.composter.fill", "block.composter.fill_success", "block.composter.ready", "roar", "stun", "block.barrel.open", "block.barrel.close", "raid.horn", "ui.stonecutter.take_result", "ui.cartography_table.take_result", "ui.loom.take_result", "block.smoker.smoke", "block.blastfurnace.fire_crackle", "block.smithing_table.use", "block.loom.use", "ambient.in.raid", "screech", "sleep", "block.furnace.lit", "convert_mooshroom", "milk_suspiciously", "celebrate", "block.beehive.enter", "block.beehive.exit", "block.beehive.shear", "block.beehive.work", "block.beehive.drip", "ambient.cave", "angry", "retreat", "converted_to_zombified", "step_lava", "tempt", "panic", "admire", "particle.soul_escape.quiet", "particle.soul_escape.loud", "respawn_anchor.charge", "respawn_anchor.deplete", "respawn_anchor.set_spawn", "respawn_anchor.ambient", "ambient.crimson_forest.mood", "ambient.warped_forest.mood", "ambient.soulsand_valley.mood", "ambient.nether_wastes.mood", "ambient.crimson_forest.additions", "ambient.warped_forest.additions", "ambient.soulsand_valley.additions", "ambient.nether_wastes.additions", "ambient.basalt_deltas.additions", "ambient.crimson_forest.loop", "ambient.warped_forest.loop", "ambient.soulsand_valley.loop", "ambient.nether_wastes.loop", "ambient.basalt_deltas.loop", "lodestone_compass.link_compass_to_lodestone", "respawn_anchor.basalt_deltas.mood", "power.on.sculk_sensor", "power.off.sculk_sensor", "smithing_table.use", "default", "lay_egg", "lay_spawn", "bucket.fill.powder_snow", "bucket.empty.powder_snow", "cauldron_drip.water.pointed_dripstone", "cauldron_drip.lava.pointed_dripstone", "tilt_down.big_dripleaf", "tilt_up.big_dripleaf", "drip.water.pointed_dripstone", "pick_berries.cave_vines", "drip.lava.pointed_dripstone", "copper.wax.on", "copper.wax.off", "scrape", "item.spyglass.use", "item.spyglass.stop_using", "chime.amethyst_block", "mob.player.hurt_drown", "mob.player.hurt_on_fire", "mob.player.hurt_freeze", "ambient.screamer", "hurt.screamer", "death.screamer", "milk.screamer", "jump_to_block", "pre_ram", "pre_ram.screamer", "ram_impact", "ram_impact.screamer", "squid.ink_squirt", "glow_squid.ink_squirt", "convert_to_stray", "cake.add_candle", "extinguish.candle", "ambient.candle", "block.click", "block.click.fail", "block.sculk_catalyst.bloom", "block.sculk_shrieker.shriek", "nearby_close", "nearby_closer", "nearby_closest", "agitated", "listening", "heartbeat", "tongue", "item_given", "item_taken", "item_thrown", "irongolem.crack", "irongolem.repair", "horn_break", "horn_call0", "horn_call1", "horn_call2", "horn_call3", "horn_call4", "horn_call5", "horn_call6", "horn_call7", "imitate.warden", "listening_angry", "sonic_boom", "sonic_charge", "convert_to_frog", "block.sculk.spread", "charge.sculk", "block.sculk_sensor.place", "block.sculk_shrieker.place", "block.enchanting_table.use", "bundle.drop_contents", "bundle.insert", "bundle.remove_one", "step_sand", "dash_ready", "pressure_plate.click_off", "pressure_plate.click_on", "button.click_off", "button.click_on", "door.open", "door.close", "trapdoor.open", "trapdoor.close", "fence_gate.open", "fence_gate.close", "insert", "pickup", "insert_enchanted", "pickup_enchanted", "shatter_pot", "break_pot", "brush", "brush_completed", "block.sign.waxed_interact_fail", "note.bass", "pumpkin.carve", "mob.husk.convert_to_zombie", "mob.pig.death", "mob.hoglin.converted_to_zombified", "ambient.underwater.enter", "ambient.underwater.exit", "bottle.fill", "bottle.empty", "block.decorated_pot.insert", "block.decorated_pot.insert_fail", "crafter.craft", "crafter.fail", "crafter.disable_slot", "block.copper_bulb.turn_on", "block.copper_bulb.turn_off", "breeze_wind_charge.burst", "imitate.breeze", "trial_spawner.open_shutter", "trial_spawner.detect_player", "trial_spawner.close_shutter", "trial_spawner.spawn_mob", "trial_spawner.eject_item", "trial_spawner.ambient", "mob.armadillo.brush", "mob.armadillo.scute_drop", "armor.equip_wolf", "armor.unequip_wolf", "reflect", "vault.open_shutter", "vault.close_shutter", "vault.eject_item", "vault.insert_item", "vault.insert_item_fail", "vault.ambient", "vault.activate", "vault.deactivate", "hurt.reduced", "wind_charge.burst", "undefined" Sound event type: 13, cat, blocks, chirp, far, mall, mellohi, stal, strad, ward, 11, wait, pigstep, otherside, 5, relic.

minecraft:repairable

Repairable item component. Determines the items that can be used to repair this item along with how much durability they repair.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.10)

Name Type Default Value Description
repair_items Array List of repair item entries. Each entry needs to define a list of strings for `items` that can be used for the repair and an optional `repair_amount` for how much durability is repaired.

minecraft:shooter

Shooter Item Component. Must have the 'minecraft:use_duration' component in order to function properly.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.10)

Name Type Default Value Description
ammunition Array Ammunition.
charge_on_draw Boolean Charge on draw? Default is set to false.
max_draw_duration JSON Object Draw Duration. Default is set to 0.
scale_power_by_draw_duration Boolean Scale power by draw duration? Default is set to false.

minecraft:should_despawn

Should despawn component determines if the item should eventually despawn while floating in the world

Name Type Default Value Description
value Boolean Whether the item should eventually despawn while floating in the world

minecraft:stacked_by_data

The stacked by data component determines if the same item with different aux values can stack. Also defines whether the item actors can merge while floating in the world.

Name Type Default Value Description
value Boolean Whether the same item with different aux values can stack. Also defines whether the item actors can merge while floating in the world.

minecraft:tags

The tags component determines which tags an item has on it.

Name Type Default Value Description
tags Array An array that can contain multiple item tags.

minecraft:throwable

Throwable item component. Throwable items, such as a snowball.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.10)

Name Type Default Value Description
do_swing_animation Boolean Whether the item should use the swing animation when thrown. Default is set to false.
launch_power_scale Float The scale at which the power of the throw increases. Default is set to 1.0.
max_draw_duration Float The maximum duration to draw a throwable item. Default is set to 0.0.
max_launch_power Float The maximum power to launch the throwable item. Default is set to 1.0.
min_draw_duration Float The minimum duration to draw a throwable item. Default is set to 0.0.
scale_power_by_draw_duration Boolean Whether or not the power of the throw increases with duration charged. Default is set to false.

minecraft:use_animation

This component determines which animation plays when using the item.

Name Type Default Value Description
value Which animation to play when using the item.

minecraft:use_modifiers v1.20.50

This component modifies use effects, including how long the item takes to use and the player's speed when used in combination with components like Shooter, Throwable or Food.

Name Type Default Value Description
movement_modifier Float Modifier value to scale the players movement speed when item is in use.
use_duration Float How long the item takes to use in seconds.

minecraft:wearable

Wearable item component.
Experimental toggles required: Holiday Creator Features (in format versions before 1.20.20)

Name Type Default Value Description
protection Integer How much protection the wearable item has. Default is set to 0.
slot "slot.weapon.offhand", "slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet" Determines where the item can be worn. If any non-hand slot is chosen, the max stack size is set to 1.

struct ActorDefinitionIdentifier


struct Puv::IntRange

Name Type Default Value Description
max Integer
min Integer

unsigned char




This website is not affiliated with Mojang Studios or Microsoft