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 want | Method in this guide | When it does not fit |
|---|---|---|
| An item with an icon, a tool, food, a wearable | BP item JSON + item_texture.json | - |
| Run something on right click, hit or eating | A custom component (registered in system.beforeEvents.startup) | JSON events and minecraft:on_use are gone |
| A 3D model in the hand | An attachable | No item component chooses between a flat sprite and 3D |
| 3D in the inventory, on the ground and in item frames | A block with the same identifier + replace_block_item of block_placer + item_display_transforms | An attachable is drawn only while equipped |
| Change a vanilla item's behavior | Only about 77 data-driven items have JSON. A format 1.10 file overrides some old components | The rest is hardcoded |
| Lore, custom enchantments, a flipbook icon | Not possible in item JSON | ItemStack.setLore, script imitation, an unplaceable animated block |
| JSON UI draws an item by numeric ID | This guide is not enough | Item 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 ofc.is_first_personin 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, raiseheader.version. - First person and third person use different coordinate systems. The condition inside an attachable is
c.is_first_person.query.is_first_personandvariable.is_first_persondo not work.
Common components
The value forms come from Items and vanilla iron_spear.json.
| Component | Form | What to match |
|---|---|---|
| Stack | "minecraft:max_stack_size": 1 | When 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": true | Drawn large in third person. Leave it out for normal size |
| Glint | "minecraft:glint": true | Shines 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).
| Context | Where it draws | translation | rotation | scale |
|---|---|---|---|---|
gui | Inventory icon | 0, 0, 0 | 30, 45, 0 | 0.625 |
firstperson_righthand | First-person main hand | 0, 0, 0 | 0, 45, 0 | 0.4 |
firstperson_lefthand | First-person off hand | 0, 0, 0 | 0, -135, 0 | 0.4 |
thirdperson_righthand | Main hand held by an entity (rightitem bone) | 0, 2.5, 0 | 70, 45, 0 | 0.375 |
thirdperson_lefthand | Off hand held by an entity (leftitem bone) | 0, 2.5, 0 | 70, 45, 0 | 0.375 |
ground | Dropped item entity | 0, 3, 0 | 0, 0, 0 | 0.25 |
fixed | Item frame | 0, 0, 0 | 0, 0, 0 | 0.5 |
head | Head armor slot (head bone) | 0, 0, 0 | 0, 0, 0 | 1 |
embedded | Seems to be the plant in a flower pot {inferred} | 0, 0, 0 | 0, 0, 0 | 0.75 |
shelf | Shelf | 0, 0, 0 | 0, 0, 0 | 0.5 |
Must match
- The item identifier is
namespace:idand does not useminecraft:. 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_version1.21.90 or higher. Custom components attach from this value.1.20.5is not a valid value (1.20.50is). - The menu category is
description.menu_category.category(construction,equipment,items,nature), anddescription.categoryis gone. If you usegroup, give it a namespace likeminecraft:itemGroup.name.sword. minecraft:iconis a string insidecomponentsand exactly equals atexture_datakey ofitem_texture.json. Write it in lowercase.- Put
item_texture.jsondirectly under RPtextures/and use"texture_name": "atlas.items". Do not usevanillaasresource_pack_name. minecraft:display_nameis a{ "value": "..." }object.- A custom component name has a namespace, and the JSON key and the name in
registerCustomComponentmatch exactly. Write it directly incomponents, not in aminecraft:custom_componentsarray. - Register inside
system.beforeEvents.startup.world.beforeEvents.worldInitializeis deprecated. The item handler names areonUse,onUseOn,onHitEntity,onMineBlock,onConsume,onCompleteUseandonBeforeDurabilityDamage, and case matters.onReleaseUseis 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
dataandscriptmodules and depends on@minecraft/server2.0.0 or higher. - The attachable folder is RP
attachables/and the format is 1.10.0. The key is the pluralrender_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 (bodyand others). - The texture of attachable geometry links to a texture key defined in the attachable (
default). item_display_transformsis 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_transformsentry takestranslation,rotation,scale,rotation_pivotandscale_pivot, and onlyguialso takesfit_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_offsetsis 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 is853 + 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
| Symptom | Cause | Fix |
|---|---|---|
No icon, with Missing referenced asset | The minecraft:icon value has uppercase letters or the key differs | Match it in lowercase |
requires either an icon atlas or icon texture | There is no icon | Add minecraft:icon and an item_texture.json entry |
[item][error]-Missing icon for data-driven item | The icon mapping is wrong | Check the key and path |
| All icons disappeared | Wrong item_texture.json location or a comma error, resource_pack_name is vanilla | Put it in RP/textures/item_texture.json and fix the JSON |
| No icon and it stacks to 64 | An invalid category (equipments, commands) or a wrong format | Fix the category and format |
Item custom component 'x' is not being used by an item | Item format below 1.21.90, the wrong file was edited, or a namespace typo | Match the format and name |
was not registered in script but used on an item | No script registration or a different name | Match the registered name and check the script module and dependency |
| Items and textures all disappeared | The data module was changed to script | Keep both modules |
invalid numeric value | saturation_modifier was written as a string | Write a number |
non-zero use_duration error | use_modifiers was put inside another component, or the name has a typo | Keep it as a separate component |
| The 3D model is drawn at the feet or in the air | No binding, or geometry format below 1.16.0 | Put binding on the root bone and raise the format |
| A 2D icon shows instead of 3D | The singular key was used, or the render controller ID is missing | Write "render_controllers": [ "controller.render.item_default" ] |
| The attachable is transparent with no error | Wrong material or the texture key does not link | Check entity_alphatest and the default texture key. Parts with semi-transparent pixels may also not show |
| First person and third person are not told apart | query.is_first_person was used | Use c.is_first_person |
| Blockbench Display values do not apply in the hand | item_display_transforms does not apply to attachables | Give position and size with animations |
minecraft:render_offsets has been deprecated and is not available in json format 1.21.90 | A deprecated component | Remove it and use an attachable |
| After adding one item, JSON UI draws a different item | Vanilla numbers shifted by the number of custom items | Recompute the numbers or use a method without numbers (Item numeric IDs) |
| A new item does not appear in an open world | A new item of a development pack may not register even after reloading | Restart the game fully |
Version conditions
- Custom components need item format 1.21.90 or higher and
@minecraft/server2.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:embeddedis accepted from geometry format 1.21.110 andshelffrom 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: falseis 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_handdefaults to true. It disagrees with a report that this holds only with a beta format and the experiment toggle together{conflict}.
How to check
- Put the BP in
development_behavior_packsand the RP indevelopment_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. - Turn on the Content Log GUI in the Creator section of the settings.
- Check the icon in the Items category of the creative inventory, or use
/give @s wiki:heal_wand. - 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). - 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. - Script bodies reload with
/reload. After changing item JSON or the registration, leave the world and enter again. - 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
- Items: concept and minimal example, format_version and names, icons and item_texture.json, custom components, food and cooldown, attachables, block items and 3D icons, known limits
- Entities and items appendix: changes by version and open questions
- Attachables and item rendering: binding, positioning, how items are drawn in each context, item texture size
- Entities, items, custom components: registration, JSON connection, parameters
- Textures and atlases: texture path rules
- Item numeric IDs: the numbers custom items shift
- Block components reference 7: the MS Learn original of
item_display_transforms - Content and rendering claims measured: the attachable binding measurement record
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
private-research | Private research (-) | - | 2026-11-13 | |
bedrock-wiki | Bedrock Wiki | CC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository) | 0930b39 | 2026-11-13 |
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |
bedrock-samples | Mojang bedrock-samples | Minecraft EULA applies, (c) Mojang AB. All rights reserved | 15701fa9 (guide baseline 46ba6ea) | 2026-11-13 |
repo-guide | JSON UI comprehensive guide (this repository) (guide/) | This project's material | 2026-11-13 | |
repo-chest-ui | Chest-UI analysis (this repository) (chest-ui/) | This project's material | 2026-11-13 | |
chest-ui | Chest-UI | CC BY 4.0 (confirmed in the repository License file) | 115d95c | 2026-11-13 |
repo-ore-ui-loading | Ore UI loading research (this repository) (ore-ui-loading/) | This project's material | 2026-11-13 |