Attachables and item rendering
(Source: private research)
When it is needed
Attachables are needed for items larger than 16x16 or 3D, long tools, and 3D bows and crossbows. An attachable is a resource pack attachables/*.json and uses the same identifier as the item. The basic structure is as follows.
render_controllers:["controller.render.item_default"]materials:defaultisentity_alphatest,enchantedisentity_alphatest_glinttextures:defaultandtextures/misc/enchanted_item_glintgeometry,animationsscripts.animate:first_person_holdisc.is_first_person,third_person_holdis!c.is_first_person
To turn a vanilla item into a 3D model, use the vanilla attachable identifier (for example minecraft:mace). If the item does not appear without an error, copy a vanilla attachable (for example the bow) and edit it a little at a time. There is a case where a custom torch attachable failed silently and the cause was found in the content log.
Binding
- The geometry root bone needs
"binding": "q.item_slot_to_bone_name(c.item_slot)".bindingrequires geometry format 1.16.0 or higher (1.12.0 ignores it and the item appears at the feet). A Windows measurement also drew the box at the feet with 1.12.0, but with 1.16.0 neither the'rightitem'binding nor theq.item_slot_to_bone_name(c.item_slot)binding showed the box on screen (measurement record). In another measurement (2026-12-04, BDS 1.26.65.1, task guide example) a box on 1.16.0 geometry with theq.item_slot_to_bone_name(c.item_slot)binding and the vanilla bow'swieldvalues 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. Binding itself works; the third-person position and size must be set with animation values. Why the earlier measurement showed nothing was not determined{measured}. - Keep only one bound top-level bone and the rest as its children. Rename anything with the same name as a player bone (
body). - In Blockbench, right-click the root folder, Edit binding, item slot, in that order.
- If the binding looks off, add a root bone that wraps the item bones. The attachable bone structure must follow the player's hand bones. You can also bind to a bone name in the player geometry (
humanoid.geo.json) as inq.item_slot_to_bone_name('leftArm'). - If the item renders at the player's feet or center, the hand binding is missing (see the vanilla bow sample). An animation file is also needed.
Positioning
- Position, rotation and scale are set in the attachable animation, split into first person and third person (
c.is_first_person). The pivot changes the rotation origin, and outsidevisible_boundsit is not visible in first person. - Blockbench's alignment and first-person and third-person perspective previews are only approximations, so adjust by bisecting per axis in the game.
- To import an item model into a humanoid model, use Edit, Import, Import recent geometry, hide the texture with X, and then make the first-person and third-person animations. The Item Wizard Blockbench plugin makes reusable attachable animations.
- There is a case where a skin's cape made a weapon go off position at random.
Cube count and texture mesh
- With hundreds of cubes it lags or does not follow the hand. Switch to a
texture_meshesbone (textureisdefault,position,rotation,local_pivot,scale, format 1.16.0). - The large item template uses the bone
rightitemandlocal_pivot [7,0,7]. A cube geometry missing side pixels was fixed by rebuilding it as a texture mesh. texture_meshesneeds one geometry per texture (no variable textures), and geos can be merged into one file.- An enchanted high-cube block model weapon (a 256-cube 16x16 template) drops FPS.
- Under PBR, a texture mesh silently does not appear on a block model (undocumented, may be a bug) (VV and RTX).
Swinging and attack animation
- Format 1.10 items (not attachables) swing normally, but with large attachables the player attack animation moves the arm and makes the swing look strange.
- A way without editing
player.entity: in first person, release the model binding, place it directly, and animate whenc.owning_entity->v.attack_time > 0. - Or edit
animation.player.first_person.attack_rotationtoquery.equipped_item_any_tag('slot.weapon.mainhand','tag') ? 0 : normal, or cancel it the opposite way in the attachable (conflicts with the Actions & Stuff pack). variable.attack_timecannot be used in attachable animations, so make it public inplayer.entity.jsonand usec.owning_entity->variable.attack_time.- For the player pose while holding a weapon, edit the player animation controller with
q.is_item_name_any('slot.weapon.mainhand','<id>').
Bows and crossbows
- Custom crossbow and bow first-person animations depend on the item identifier. The identifier must be exactly
crossbow(ns:crossbowworks but adding a suffix breaks it) and it is hard-coded. Mojang later fixed 2 of 3 ranged weapon bugs. - Bow attachable
pre_animation:
"pre_animation": [
"variable.charge_amount = math.clamp((query.main_hand_item_max_duration - (query.main_hand_item_use_duration - query.frame_alpha + 1.0)) / 10.0, 0.0, 1.0f);"
]
Then animate wield_first_person_pull under the condition query.main_hand_item_use_duration > 0.0f && c.is_first_person.
Off hand
- The position is different, so drop
leftItemand change the transform withc.item_slot. The vanilla fishing rod attachable is not in samples (fixing the flipped off-hand texture needs a new attachable). - There are reports that
leftItemis less responsive thanrightItem, and changing the player geometry breaks the item pivot (MCPE-177602). To change the position and size of a map in the off hand, change the hand anchor in the geo file or the map animation. - One attachable cannot handle several data values of one item.
- Even in a resource pack, you can choose main hand and off hand models with
query.is_item_name_any('slot.weapon.mainhand',0,'ns:item')(hand item queries are not BP-only).
Hiding it in the hand and leaving only the icon
Use an attachable without cubes, an empty texture, or a scale 0 animation.
3D items in inventory, on the ground and in frames
- Create a block and an item with the same identifier and use
replace_block_item: trueofminecraft:block_placeron the item (you cannot place it on air withuse_on). - Preview the GUI with the Blockbench block Display tab and turn off face dimming. Glint needs the opaque render method, and hand and ground glint needs an attachable. Oversized blocks were deprecated.
- If the item model has no proper display transform, it renders as a full cube in the hand.
item_display_transformshad bugs in 1.26.40 and broke differently in .40 and .50. The slab inventory icon alignment problem was fixed in the Preview but was off in Pocket UI. Block model size is validated before the transform (MCPE-236317), and item icon face shading is applied before the display transform (MCPE-235788). The third-person rotation fix (fixing blocks that were turned 180 degrees in third person) changed the holding angle of heads, stairs and the heavy core, and the vanilla head display transform is odd.
How items are drawn in each context
Markers: {code} is a conclusion from reading the Android 1.26.52.3 client binary, and {measured} is what a test pack showed in game on 2026-11-17 (Source: repo-guide).
- The engine splits the contexts in which it draws an item into 10 names:
gui,firstperson_righthand,firstperson_lefthand,thirdperson_righthand,thirdperson_lefthand,ground,fixed(item frame),head,embedded,shelf. These are the column names ofitem_display_transformsin block geometry, and each entry takestranslation,rotation,scale,rotation_pivotandscale_pivot(onlyguialso takesfit_to_frame). Unknown names are silently ignored. The value ranges are -80~80 for translation, -360~360 for rotation and 0~4 for scale.embeddedis accepted from geometry format 1.21.110 andshelffrom 1.26.40. Vanilla models do not useembeddedorshelf. These context transforms apply only to items drawn as block shapes; the position and size of flat icon items are renderer constants.{code} - Where each context is drawn (Windows 1.26.65, numbers counted from 0 in the order above): 0
guiis the inventory icon and block thumbnails, 1 and 2 the first-person main and off hand, 3 and 4 items held by an entity in the main and off hand (therightitemandleftitembones of the geometry), 5groundthe dropped item entity, 6fixedthe item frame, 7headthe head armor slot (theheadbone), 8embeddedappears to be the plant in a flower pot (inferred), and 9shelfthe shelf. Vaults, decorated pots, the copper golem, allay and fox mouths, pandas and dolphins do not read these transforms.{code} - When the geometry leaves a context out, no other context stands in; that context's default is used. A block item that declared only
fixedwas drawn on a shelf with theshelfdefault, not withfixed. The defaults are below, and the pivots (rotation_pivot,scale_pivot) are all 0. A block that wrote these values for all 10 contexts and a block that wrote none were drawn the same in the inventory, first person, third person, frames and shelves.{code, measured}(2026-12-04 Windows 1.26.65)
| Context | translation | rotation | scale |
|---|---|---|---|
gui | 0, 0, 0 | 30, 45, 0 | 0.625 |
firstperson_righthand | 0, 0, 0 | 0, 45, 0 | 0.4 |
firstperson_lefthand | 0, 0, 0 | 0, -135, 0 | 0.4 |
thirdperson_righthand | 0, 2.5, 0 | 70, 45, 0 | 0.375 |
thirdperson_lefthand | 0, 2.5, 0 | 70, 45, 0 | 0.375 |
ground | 0, 3, 0 | 0, 0, 0 | 0.25 |
fixed | 0, 0, 0 | 0, 0, 0 | 0.5 |
head | 0, 0, 0 | 0, 0, 0 | 1 |
embedded | 0, 0, 0 | 0, 0, 0 | 0.75 |
shelf | 0, 0, 0 | 0, 0, 0 | 0.5 |
- The official documentation's default table gives the
guirotation as [30, 225, 0] and the third-person rotation as [75, 45, 0], and has noembeddedorshelf. On 1.26.65 the table above was right. With the documented [30, 225, 0] an asymmetric icon would have shown mirrored, but the icon of the block with the table values and the block with nothing were the same.{measured} - The 2026-12-04 measurements were made in a Dragonfly server world with no experiment toggles on, with the geometry from a resource pack, and in this setup
item_display_transformsapplied without Upcoming Creator Features.{measured} - These transforms are taken only from the item's block. There is no path that applies them to items not drawn as a block or to attachables. No item component chooses between drawing a flat sprite and a 3D model either.
{code} - No query tells whether the item is being drawn in a frame, on a shelf, on the ground or in a similar context. What an attachable can tell apart is only
c.is_first_person,c.item_slot(head,torso,body,main_hand,off_hand; the leg and feet slots appear to be empty strings),q.is_in_ui("being drawn as part of the UI") andq.owner_identifier/q.is_owner_identifier_any.{code} - The client entity keys on the holder side are
enable_attachables,hide_held_items(expression),held_item_scale(must be greater than 0),held_item_ignores_lightingandhide_armor.{code} - A fox, which has no
enable_attachables, does not use attachables. An item with an attachable held in its mouth showed as the item icon.{measured} - Armor stands and allays draw the item with its default attachable, not the player one (the one choosing the player with
q.owner_identifier).{measured} - A client entity with an invisible body,
enable_attachablesandheld_item_scale2 holding an item in the main hand shows only the item in the air. A diamond sword showed at 2x size, a grass block as a 3D block, and an item with an attachable as the attachable model, and an entity withhide_held_itemson showed nothing. This draws any vanilla item in the world.{measured} - A holder entity that shows an item in front of a block face sits a little in front of the face. At the same depth as the face, the item is buried in the block and not visible. Values that worked are 0.05 blocks (main hand) and 0.025 blocks (off hand) further out from the block center toward the face, and the entity yaw that faces the front is north 180, east -90, west 90, south 0. The bone structure and the values that cancel the hand pose are in section 5.2 of Inventory menus.
{recorded} - The holder pose can be tuned from the server at once without re-sending the pack. Three rotation values (5 degree steps, -180 to 180) are packed into the entity
variant, and scale (1 to 255 %) and offset (-16 to 15 px) intomark_variant; the animation reads them asquery.variant > 0 ? (decoded value) : (default). Changed values show immediately with no pack reload. Keep each packed number under 2^24 (the variant section of Render controllers).{recorded} - Bamboo is also among the items drawn in the third-person hand with the slanted grip of sticks and bones
{measured}(2026-11-10). Blaze rod is only assumed to belong to the same group and was not checked. A correction bone placed under the base pose bone (rightitem_pose) makes the animation rotation multiply separately instead of adding to the base rotation. Applying the Java edition rotation difference [0, -90, 55] in reverse laid the stick flat downward and hid it, so it did not work.{recorded} - For an item drawn as a block, the
headtransform (armor stand head slot) and thegroundtransform (dropped item) applied. An icon-only item is a flat sprite on the ground. In frames thefixedtransform applied, on shelvesshelf, and in the third-person handthirdperson_righthand(2026-12-04, Windows 1.26.65, a custom block sent by a server).{measured} minecraft:render_offsets: The parsing code is still in the engine (position,rotation,scaleoffirst_person/third_personundermain_hand/off_hand), but on a format 1.21.90 item the content log says "minecraft:render_offsets has been deprecated and is not available in json format 1.21.90" and the component is rejected. A format 1.16.100 item is not registered at all ("use json format version 1.20.0 or higher"), so a scriptnew ItemStackthrows "Invalid item identifier". Formats 1.20.0~1.21.80 were not checked.{measured}- Up to 1.26.6x, a custom block cannot be made to draw the items inside it like an item frame or shelf through JSON. See the block entity section of Blocks.
Held maps
A held filled map is drawn in three separate parts. This was read from the Windows 1.26.65 binary and the vanilla resource pack, not measured. {code (binary)}
| Part | Decided by | Changeable by a pack |
|---|---|---|
| Arm pose, map position and tilt | vanilla map_hold* in animations/player_firstperson.animation.json, first_person_map in player.animation_controllers.json, variable.map_angle in player.entity.json | Yes, through animation JSON |
| Map plane (background, picture, icons) | the engine's map renderer | Only the textures (textures/map/*) |
| Player face on the map | the engine draws the player again with variable.map_face_icon at 1 and variable.is_first_person at 0; vanilla keeps only controller.render.player.map (head, hat, helmet) then | Yes, through render controllers |
- The map renderer draws a 128-unit plane on the transform it is given. The background mesh is (-7, -7) to (135, 135); the map picture is (0, 0) to (128, 128) at z -0.01. There are 30 icon meshes: 0 to 15 use one cell of the 4x4
textures/map/map_iconsatlas, 16 to 29 use a whole structure icon. - The map picture is a texture
map/<map ID>_<number>built at run time for each map ID. It is not a resource pack file. - Maps in item frames use the same renderer.
- Not checked: whether an attachable over
minecraft:filled_mapremoves the engine map plane, and whether themap/<ID>_<number>texture can be referenced from JSON UI or an entity texture path.
Glint
On attachables use the entity_alphatest_glint material or minecraft:glint (always on). An armor-style render controller shows only when enchanted.
Animated item textures
- Animating an item texture is impossible. Imitate it with bone visibility animation, render controller texture swaps, or an animated block that cannot be placed.
- There is a report (2026-01) that custom materials on attachables are not respected.
- Fields such as
light_color_multiplier,overlay_colorandheld_item_ignores_lightingof a render controller do not work on attachables. There was no answer on changing an attachable's color withcolororoverlay_color. - A note (2025-10) says
uv_animdoes not work on attachables, while a note (2026-06) says a flipbook works withuv_animin the attachable render controller (offset: [0,"math.mod(math.floor(query.life_time*12),12)/12"],scale:[1,"1/12"]) or with a per-frame texture array; they disagree ({conflict}, the latest report says it works).
Glow
Use entity_emissive_alpha for glowing parts and breeze_wind_charge for unshaded glow. Under VV, texture set PBR and "capabilities": ["pbr"] in the resource pack manifest are needed (Materials and shaders).
Turning off lighting
- A note says the render controller
ignore_lightingdoes not work on attachables, while another note says it works if you useignores_lightingtogether with the material"-defines": ["FANCY"]; they disagree{conflict}. filter_lighting: falseis rejected with "Value 'false' not allowed" and onlytrueis accepted. Glow of a held item is the client entityheld_item_ignores_lighting(seeallay.entity.jsonin the bedrock-samples Preview), but everything that referencesheld_itemexcludes attachables, so make the attachable itself an emissive material. Attachables are generally buggy (MCPE-241087).
Particles and sound
- Particles in an attachable animation work but not on custom locators (an about 6-year-old Mojang bug). Attachables cannot add new locators, so use a player locator (
lead_holdand so on, reusing the player arm lead locator) or an offset. Other workarounds: computing the offset withminecraft:particle_motion_parametricdriven by Molang (relative_position, no collision) orminecraft:emitter_shape_point(with collision), spawning from BP or script, or putting a locator on the player model. - A working example: register the gun model as geometry on the client player and put it as a child of
rightArm, emit particles from a locator inside that model, and set the particle'semitter_local_spaceposition, rotation and velocity to true. Define the identifier in the attachableparticle_effectsand reference it by short name in the animation'seffect. - The locator of an attachable particle becomes the body root, which has the body Y rotation, not the head. In first person, the locator is pushed by the FOV, and animation sounds may not play.
- Trick: draw the player model (with locators) with the player render controller and connect the animation. For directional particles, pass the direction with Molang or bind the particle to a locator on the player's head.
Cosmetic attachables (without an item)
- Use the render controller condition
query.property('ns:cosmetic')=='hat'andentity.setProperty. - Animate only in third person: the
scripts.animateentry{"third_person": "!c.is_first_person"}. - State conditions: render controller
part_visibilityandgeometryconditions (for exampleq.property('seal:scope') == 'dot_sight'). - For gun scope effects, use a render controller that shows the scope model by variant or tag (a tag while sneaking), or attach the scope to the head with
player.json. - To change the hand item texture during a cooldown, use the remaining cooldown query in the attachable render controller (not for the inventory icon).
Armor
controller.render.armoris old. Usecontroller.render.armor.v2(humanoid mobs) andcontroller.render.armor.player(players, a separate file is needed).- Put the armor geometry in
models/entity/, and the render controller part visibility must turn on each bone. For animated armor, add animation to an attachable with a.playeridentifier. - An empty
pre_animation: []in an armor attachable (format 1.21.130) gave an error and removing it fixed it. - For the problem of custom armor arm bones not following on some skins, renaming the folder was suggested
{unverified}. - To render armor and items on a mob, the client entity must have exactly
"enable_attachables": true. If misspelled, the entity becomes transparent. If the held and worn geometries overlap, fix it with render controller conditions and queries. - Vanilla armor attachables have a second geometry for babies (for example
geometry.humanoid.baby.armor.helmet). The attachable setsvariable.use_baby_geo = query.is_baby;and the render controller picksvariable.use_baby_geo ? Geometry.baby : Geometry.default, so a custom entity withoutminecraft:is_babydoes not get the baby armor. - Elytra: The cape texture overwrites the whole elytra texture, and an extra geometry texture breaks together with the cape (unresolved). If an edited custom elytra model looks broken, one answer says the likely cause, unless you use custom animations, is that the model was moved off center while editing rather than the pivot
{single report}. In multiplayer, several players' elytras can show the same cape texture; one explanation is that the last loaded cape texture overrides thetextures/models/armor/elytrapath, and a resource pack that points elytras at a separate texture path such astextures/models/armor/elytra.png(placed at the top of the global resource packs) made each player show their own cape (with a reported side effect of some elytra visuals missing,{single report}). - An attempt to make vanilla armor trims glow under VV with a MERS PNG (min_engine 1.26.0, PBR and VV capability settings) did not glow (unresolved).
Fishing line
A vanilla-like fishing line cannot be reproduced, so use particles or an entity line using catenary (cosh, sinh, tanh) expressions.
Item texture size
-
The icon must be 16x16. A 32x32 weapon texture needs the right geometry and texture size and the attachable texture key.
-
An item sprite larger than 16x16 (for example 20x20) is shrunk in the inventory slot, and the entity item icon background size is rounded down (maximum unknown).
-
The bug where item textures larger than 16x16 became huge or were cut off was fixed in the Preview around 2026-01-13, and the oversized 2D hand item bug was said to be "fixed soon" (2026-04-12).
-
Performance: Item textures over 128x128 lagged badly, and a 500x500 texture was slower than a 300-cube model. Under 512x512 is recommended. With more than 4 thousand custom items, the inventory lags.
-
A 2D item larger than 16x16 looks too close in first person, so a geo attachable is recommended. In the hand, mostly the upper half of the texture is visible.
-
To show a 2D icon in the hotbar and a 3D model in the hand, use an attachable. When splitting a 16x16 slot icon and a 32x32 hand texture with an attachable, the higher-resolution hand model breaks the vanilla holding animation, so rebuild that animation inside the attachable.
Other
- Hide the attachable of an invisible player with the render controller condition
!query.is_invisible. - A held item not binding to
rightItemafter the model was changed dynamically has been reported (suspected bug, unresolved). - If an animation name conflicts with another pack, punching and mining animations break when the pack order is not at the top.
- Use
c.is_first_personinside attachables. Set positions with Blockbench bone binding and preview. - Item icons allow only fully transparent pixels and not translucent ones, while attachables allow translucency too.
- For a transparent item frame, put an empty item frame texture in the resource pack.
- If there are pixels at the edge of a splash or lingering potion texture, a horizontal line appears on that row.
- For keeping the outline and enchant glint together, and attachable stencil, see the stencil section of Materials and shaders.
| 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 |
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 |