Skip to main content

Custom items and 3D item display

A custom item is defined by one behavior pack (BP) items/*.json, and its features come from components in components. The inventory icon is picked by a key of the resource pack (RP) textures/item_texture.json. Item JSON has no events, so actions such as use and hit are made with custom components that the Script API registers. The 3D look in the hand is drawn by an attachable in RP attachables/, and for an item drawn as a block, the item_display_transforms of the block geometry sets its look in the inventory, hand, ground and item frame. This page has no rule IDs (rule IDs exist only for JSON UI). Judge confidence by the mark at the end of each item.

When to use it​

What you wantMethod in this guideWhen it does not fit
An item with an icon, a tool, food, a wearableBP item JSON + item_texture.json-
Run something on right click, hit or eatingA custom component (registered in system.beforeEvents.startup)JSON events and minecraft:on_use are gone
A 3D model in the handAn attachableNo item component chooses between a flat sprite and 3D
3D in the inventory, on the ground and in item framesA block with the same identifier + replace_block_item of block_placer + item_display_transformsAn attachable is drawn only while equipped
Change a vanilla item's behaviorOnly about 77 data-driven items have JSON. A format 1.10 file overrides some old componentsThe rest is hardcoded
Lore, custom enchantments, a flipbook iconNot possible in item JSONItemStack.setLore, script imitation, an unplaceable animated block
JSON UI draws an item by numeric IDThis guide is not enoughItem numeric IDs

Minimal example​

A wand that appears in the Items category of the creative inventory. Using it gives regeneration, and it is held as a 3D box. The item JSON, item_texture.json and the two manifests follow the form of addons/item-icon-slots (format 1.21.90 item, data and script modules, @minecraft/server 2.0.0). The custom component JSON and script are the example in Items section 5. The attachable comes from the example in section 10 of the same page and vanilla attachables/bow.json, and the animation values from animation.bow.wield in vanilla animations/bow.animation.json. These files, used as they are (the two PNGs drawn as solid colors) in a BDS 1.26.65.1 world, were checked from a Windows 1.26.65 client on 2026-12-04 {measured}: the item showed as an icon in the hotbar from the creative Items category, using it gave regeneration (amplifier 4, 100 ticks), and the attachable box was drawn in the first-person hand. For whether the box shows in third person, see the {conflict} item below.

BP/
manifest.json
items/heal_wand.json
scripts/main.js
RP/
manifest.json
textures/item_texture.json
textures/items/heal_wand.png
attachables/heal_wand.json
models/entity/heal_wand.geo.json
animations/heal_wand.animation.json
textures/attachables/heal_wand.png

BP/manifest.json: it uses a script, so it needs both the data and script modules. Make new UUIDs for each pack, and the BP and RP header UUIDs must differ.

{
"format_version": 2,
"header": {
"name": "Heal wand BP",
"description": "Custom item example",
"uuid": "5da00193-ced0-46b9-96e3-f4014a950d0a",
"version": [1, 0, 0],
"min_engine_version": [1, 21, 90]
},
"modules": [
{ "type": "data", "uuid": "3b130795-bdfa-4337-b060-7e56bb2fe38b", "version": [1, 0, 0] },
{
"type": "script",
"language": "javascript",
"uuid": "e606c103-fe7e-48d6-b102-750e250f3e3f",
"entry": "scripts/main.js",
"version": [1, 0, 0]
}
],
"dependencies": [
{ "uuid": "dddbf60c-75b0-4a09-911a-19e03dfe0a49", "version": [1, 0, 0] },
{ "module_name": "@minecraft/server", "version": "2.0.0" }
]
}

RP/manifest.json:

{
"format_version": 2,
"header": {
"name": "Heal wand RP",
"description": "Custom item example",
"uuid": "dddbf60c-75b0-4a09-911a-19e03dfe0a49",
"version": [1, 0, 0],
"min_engine_version": [1, 21, 90]
},
"modules": [
{ "type": "resources", "uuid": "f95e6ad3-23d5-43de-9c7e-ff413e638473", "version": [1, 0, 0] }
]
}

BP/items/heal_wand.json: components must exist even when empty. "wiki:heal_on_use" is the custom component, and its value is the parameter passed to the script.

{
"format_version": "1.21.90",
"minecraft:item": {
"description": {
"identifier": "wiki:heal_wand",
"menu_category": { "category": "items" }
},
"components": {
"minecraft:icon": "wiki_heal_wand",
"minecraft:display_name": { "value": "Heal Wand" },
"minecraft:max_stack_size": 1,
"wiki:heal_on_use": { "amount": 4 }
}
}
}

BP/scripts/main.js:

import { system } from "@minecraft/server";

system.beforeEvents.startup.subscribe(({ itemComponentRegistry }) => {
itemComponentRegistry.registerCustomComponent("wiki:heal_on_use", {
onUse(event, { params }) {
event.source.addEffect("regeneration", 100, { amplifier: params.amount });
},
});
});

RP/textures/item_texture.json: the key equals the item's minecraft:icon value and is lowercase. Paths take no extension. Instead of your own PNG it may point at a vanilla path (textures/items/bundle and so on).

{
"resource_pack_name": "heal_wand",
"texture_name": "atlas.items",
"texture_data": {
"wiki_heal_wand": { "textures": "textures/items/heal_wand" }
}
}

Up to here it is a 2D icon item. Draw the icon PNG at 16x16.

A 3D model held in the hand (attachable)​

RP/attachables/heal_wand.json: the identifier is the same as the item. Put min_engine_version inside description.

{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "wiki:heal_wand",
"min_engine_version": "1.13.0",
"materials": { "default": "entity_alphatest", "enchanted": "entity_alphatest_glint" },
"textures": { "default": "textures/attachables/heal_wand", "enchanted": "textures/misc/enchanted_item_glint" },
"geometry": { "default": "geometry.heal_wand" },
"animations": { "wield": "animation.heal_wand.wield" },
"scripts": { "animate": [ "wield" ] },
"render_controllers": [ "controller.render.item_default" ]
}
}
}

RP/models/entity/heal_wand.geo.json: binding needs geometry format 1.16.0 or higher. Keep only one bound top bone and make the rest its children. The cube is a placeholder box.

{
"format_version": "1.16.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.heal_wand",
"texture_width": 64,
"texture_height": 64,
"visible_bounds_width": 2,
"visible_bounds_height": 2.5,
"visible_bounds_offset": [0, 1.25, 0]
},
"bones": [
{
"name": "root_item",
"pivot": [0, 12, 0],
"binding": "q.item_slot_to_bone_name(c.item_slot)",
"cubes": [ { "origin": [-4, 12, -2], "size": [8, 12, 4], "uv": [16, 16] } ]
}
]
}
]
}

RP/animations/heal_wand.animation.json: split position and rotation into first person and third person. The values are the vanilla bow's and only a starting point. Tune them in game by bisecting each axis.

{
"format_version": "1.10.0",
"animations": {
"animation.heal_wand.wield": {
"loop": true,
"bones": {
"root_item": {
"position": [ "c.is_first_person ? -5.5 : 0.5", "c.is_first_person ? -3.0 : -2.5", "c.is_first_person ? -3.0 : 1.0" ],
"rotation": [ "c.is_first_person ? 38.0 : 0.0", "c.is_first_person ? -120.0 : 0.0", "c.is_first_person ? -63.0 : 0.0" ]
}
}
}
}
}
  • With this example as it is, the box was drawn in the first-person hand, attached to the right hand overlapping the arm in third person, and drawn large in the pause screen paper doll {measured} (2026-12-04). Binding works, so set the third-person position and size with the values on the false side of c.is_first_person in the animation. A 1.12.0 geometry ignores binding and the box is drawn at the feet. In one earlier Windows measurement a 1.16.0 bound box did not show on screen, and the cause was not determined. If it is not visible, copy a vanilla attachable (the bow) and change it step by step.
  • Changing a texture without raising the resource pack version made the client draw its cached old texture {measured}. After a change, raise header.version.
  • First person and third person use different coordinate systems. The condition inside an attachable is c.is_first_person. query.is_first_person and variable.is_first_person do not work.

Common components​

The value forms come from Items and vanilla iron_spear.json.

ComponentFormWhat to match
Stack"minecraft:max_stack_size": 1When wearable uses a non-hand slot, the max stack becomes 1 (MS reference)
Durability"minecraft:durability": { "max_durability": 250, "damage_chance": { "min": 0, "max": 100 } }damage_chance is a percentage. Mining with digger does not reduce it, so subtract in onMineBlock
Food"minecraft:food": { "nutrition": 4, "saturation_modifier": 0.6 }, "minecraft:use_animation": "eat", "minecraft:use_modifiers": { "use_duration": 1.6, "movement_modifier": 0.35 }saturation_modifier is a number. use_modifiers sits beside food
Wearable"minecraft:wearable": { "slot": "slot.armor.head" }Members are slot, protection (integer, default 0) and hides_player_location. minecraft:armor is deprecated
Cooldown"minecraft:cooldown": { "category": "spear", "duration": 0.95, "type": "attack" }These are the vanilla spear's values. category, type and duration (seconds) are all required. The same category shares the cooldown, so use your own name for your item
Held like a tool"minecraft:hand_equipped": trueDrawn large in third person. Leave it out for normal size
Glint"minecraft:glint": trueShines without an enchantment
Replacing the block item"minecraft:block_placer": { "block": "wiki:lamp", "replace_block_item": true }Works only when the item and block identifiers are the same. Without minecraft:icon it is drawn as the block

Display transforms of block-shaped items​

An item drawn as a block (a block item, or an item replaced with block_placer) takes its look in each context from item_display_transforms of that block's geometry entry. It sits at the same level as description and bones. Below is the gui default with fit_to_frame turned off.

{
"item_display_transforms": {
"gui": {
"translation": [0, 0, 0],
"rotation": [30, 45, 0],
"scale": [0.625, 0.625, 0.625],
"fit_to_frame": false
}
}
}

There are 10 contexts, and a context the geometry does not declare does not borrow another context but uses the default below. The pivots (rotation_pivot, scale_pivot) are all 0. A block with these values written for all 10 contexts and a block with none drew the same in the inventory, first person, third person, item frame and shelf {code, measured} (2026-12-04, Windows 1.26.65).

ContextWhere it drawstranslationrotationscale
guiInventory icon0, 0, 030, 45, 00.625
firstperson_righthandFirst-person main hand0, 0, 00, 45, 00.4
firstperson_lefthandFirst-person off hand0, 0, 00, -135, 00.4
thirdperson_righthandMain hand held by an entity (rightitem bone)0, 2.5, 070, 45, 00.375
thirdperson_lefthandOff hand held by an entity (leftitem bone)0, 2.5, 070, 45, 00.375
groundDropped item entity0, 3, 00, 0, 00.25
fixedItem frame0, 0, 00, 0, 00.5
headHead armor slot (head bone)0, 0, 00, 0, 01
embeddedSeems to be the plant in a flower pot {inferred}0, 0, 00, 0, 00.75
shelfShelf0, 0, 00, 0, 00.5

Must match​

  • The item identifier is namespace:id and does not use minecraft:. The attachable uses the same identifier as the item, and no client entity gets that identifier (the attachable and the entity override each other).
  • Use item format_version 1.21.90 or higher. Custom components attach from this value. 1.20.5 is not a valid value (1.20.50 is).
  • The menu category is description.menu_category.category (construction, equipment, items, nature), and description.category is gone. If you use group, give it a namespace like minecraft:itemGroup.name.sword.
  • minecraft:icon is a string inside components and exactly equals a texture_data key of item_texture.json. Write it in lowercase.
  • Put item_texture.json directly under RP textures/ and use "texture_name": "atlas.items". Do not use vanilla as resource_pack_name.
  • minecraft:display_name is a { "value": "..." } object.
  • A custom component name has a namespace, and the JSON key and the name in registerCustomComponent match exactly. Write it directly in components, not in a minecraft:custom_components array.
  • Register inside system.beforeEvents.startup. world.beforeEvents.worldInitialize is deprecated. The item handler names are onUse, onUseOn, onHitEntity, onMineBlock, onConsume, onCompleteUse and onBeforeDurabilityDamage, and case matters. onReleaseUse is only in the beta API on the 27.0.20 preview {vanilla}.
  • Parameters arrive as { params }, the second argument of the handler, and nesting depth is limited to 2.
  • A BP manifest that uses scripts has both the data and script modules and depends on @minecraft/server 2.0.0 or higher.
  • The attachable folder is RP attachables/ and the format is 1.10.0. The key is the plural render_controllers.
  • Put attachable geometry in models/entity/ and give the root bone "binding": "q.item_slot_to_bone_name(c.item_slot)". Binding needs geometry format 1.16.0 or higher. Avoid player bone names (body and others).
  • The texture of attachable geometry links to a texture key defined in the attachable (default).
  • item_display_transforms is used only for items drawn as a block. There is no way to apply it to attachables or flat icon items. Give an attachable its position and size with animations.
  • An item_display_transforms entry takes translation, rotation, scale, rotation_pivot and scale_pivot, and only gui also takes fit_to_frame. The ranges are translation -80 to 80, rotation -360 to 360, scale 0 to 4, and unknown context names are silently ignored {code}.
  • minecraft:render_offsets is rejected in format 1.21.90 items {measured}. Set the hand position with an attachable.
  • Where numeric item IDs are needed (JSON UI #item_id_aux, numbers sent by a server), custom items shift the numbers. On 1.26.63 a custom item is 853 + k (k is its place in behavior pack stack order and, within a pack, in case-insensitive item file path order), and vanilla items from 853 up shift by the number of custom items in all packs {measured}. Adding or renaming an item file changes the numbers.

Common mistakes​

SymptomCauseFix
No icon, with Missing referenced assetThe minecraft:icon value has uppercase letters or the key differsMatch it in lowercase
requires either an icon atlas or icon textureThere is no iconAdd minecraft:icon and an item_texture.json entry
[item][error]-Missing icon for data-driven itemThe icon mapping is wrongCheck the key and path
All icons disappearedWrong item_texture.json location or a comma error, resource_pack_name is vanillaPut it in RP/textures/item_texture.json and fix the JSON
No icon and it stacks to 64An invalid category (equipments, commands) or a wrong formatFix the category and format
Item custom component 'x' is not being used by an itemItem format below 1.21.90, the wrong file was edited, or a namespace typoMatch the format and name
was not registered in script but used on an itemNo script registration or a different nameMatch the registered name and check the script module and dependency
Items and textures all disappearedThe data module was changed to scriptKeep both modules
invalid numeric valuesaturation_modifier was written as a stringWrite a number
non-zero use_duration erroruse_modifiers was put inside another component, or the name has a typoKeep it as a separate component
The 3D model is drawn at the feet or in the airNo binding, or geometry format below 1.16.0Put binding on the root bone and raise the format
A 2D icon shows instead of 3DThe singular key was used, or the render controller ID is missingWrite "render_controllers": [ "controller.render.item_default" ]
The attachable is transparent with no errorWrong material or the texture key does not linkCheck entity_alphatest and the default texture key. Parts with semi-transparent pixels may also not show
First person and third person are not told apartquery.is_first_person was usedUse c.is_first_person
Blockbench Display values do not apply in the handitem_display_transforms does not apply to attachablesGive position and size with animations
minecraft:render_offsets has been deprecated and is not available in json format 1.21.90A deprecated componentRemove it and use an attachable
After adding one item, JSON UI draws a different itemVanilla numbers shifted by the number of custom itemsRecompute the numbers or use a method without numbers (Item numeric IDs)
A new item does not appear in an open worldA new item of a development pack may not register even after reloadingRestart the game fully

Version conditions​

  • Custom components need item format 1.21.90 or higher and @minecraft/server 2.0.0 or higher. There is a report that 1.21.120 is the recommended format. There is a report that the newest item components required format 1.26.0 {single report}.
  • minecraft:render_offsets: a format 1.21.90 item rejects it, and a format 1.16.100 item is not registered at all. 1.20.0 to 1.21.80 were not checked {measured}.
  • item_display_transforms: embedded is accepted from geometry format 1.21.110 and shelf from 1.26.40 {code}. The default table above held on 1.26.65 {measured}. The MS reference requires geometry format 1.21.0 or higher and the Upcoming Creator Features toggle. In the 2026-12-04 measurements, made in a Dragonfly server world with no experiment toggles on and with resource pack geometry, the transforms applied without the toggle {measured}.
  • can_always_eat: false is ignored on 1.26.65, and the item could be eaten on a full hunger bar {measured}.
  • The numeric ID layout was measured on 1.26.63. 1.26.60 inserted one item at 791, so numbers after it are 1 higher than in 26.50. Vanilla numbers change between versions.
  • In the off-hand experiment of the 26.70.26 preview there is a report that minecraft:allow_off_hand defaults to true. It disagrees with a report that this holds only with a beta format and the experiment toggle together {conflict}.

How to check​

  1. Put the BP in development_behavior_packs and the RP in development_resource_packs, then restart the game. Turn both packs on in the world settings. A new item may register only after a full game restart.
  2. Turn on the Content Log GUI in the Creator section of the settings.
  3. Check the icon in the Items category of the creative inventory, or use /give @s wiki:heal_wand.
  4. Using the item gives regeneration. If not, look in the log for the custom component warnings (is not being used by an item, was not registered in script).
  5. Hold it and look at the model in first person and third person (F5). Tune the position by changing the values axis by axis, and after editing animation values check with /reload all.
  6. Script bodies reload with /reload. After changing item JSON or the registration, leave the world and enter again.
  7. Put a block-shaped item in the inventory, the hand, on the ground, in an item frame and on a shelf, one at a time, to see each context.

Further reading​

Sources
idSourceLicenseCommitAccessed
private-researchPrivate research (-)-2026-11-13
bedrock-wikiBedrock WikiCC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository)0930b392026-11-13
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13
bedrock-samplesMojang bedrock-samplesMinecraft EULA applies, (c) Mojang AB. All rights reserved15701fa9 (guide baseline 46ba6ea)2026-11-13
repo-guideJSON UI comprehensive guide (this repository) (guide/)This project's material2026-11-13
repo-chest-uiChest-UI analysis (this repository) (chest-ui/)This project's material2026-11-13
chest-uiChest-UICC BY 4.0 (confirmed in the repository License file)115d95c2026-11-13
repo-ore-ui-loadingOre UI loading research (this repository) (ore-ui-loading/)This project's material2026-11-13