Skip to main content

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: default is entity_alphatest, enchanted is entity_alphatest_glint
  • textures: default and textures/misc/enchanted_item_glint
  • geometry, animations
  • scripts.animate: first_person_hold is c.is_first_person, third_person_hold is !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)". binding requires 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 the q.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 the q.item_slot_to_bone_name(c.item_slot) binding and the vanilla bow's wield values 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 in q.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 outside visible_bounds it 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_meshes bone (texture is default, position, rotation, local_pivot, scale, format 1.16.0).
  • The large item template uses the bone rightitem and local_pivot [7,0,7]. A cube geometry missing side pixels was fixed by rebuilding it as a texture mesh.
  • texture_meshes needs 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 when c.owning_entity->v.attack_time > 0.
  • Or edit animation.player.first_person.attack_rotation to query.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_time cannot be used in attachable animations, so make it public in player.entity.json and use c.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:crossbow works 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 leftItem and change the transform with c.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 leftItem is less responsive than rightItem, 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: true of minecraft:block_placer on the item (you cannot place it on air with use_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_transforms had 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 of item_display_transforms in block geometry, and each entry takes translation, rotation, scale, rotation_pivot and scale_pivot (only gui also takes fit_to_frame). Unknown names are silently ignored. The value ranges are -80~80 for translation, -360~360 for rotation and 0~4 for scale. embedded is accepted from geometry format 1.21.110 and shelf from 1.26.40. Vanilla models do not use embedded or shelf. 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 gui is 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 (the rightitem and leftitem bones of the geometry), 5 ground the dropped item entity, 6 fixed the item frame, 7 head the head armor slot (the head bone), 8 embedded appears to be the plant in a flower pot (inferred), and 9 shelf the 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 fixed was drawn on a shelf with the shelf default, not with fixed. 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)
Contexttranslationrotationscale
gui0, 0, 030, 45, 00.625
firstperson_righthand0, 0, 00, 45, 00.4
firstperson_lefthand0, 0, 00, -135, 00.4
thirdperson_righthand0, 2.5, 070, 45, 00.375
thirdperson_lefthand0, 2.5, 070, 45, 00.375
ground0, 3, 00, 0, 00.25
fixed0, 0, 00, 0, 00.5
head0, 0, 00, 0, 01
embedded0, 0, 00, 0, 00.75
shelf0, 0, 00, 0, 00.5
  • The official documentation's default table gives the gui rotation as [30, 225, 0] and the third-person rotation as [75, 45, 0], and has no embedded or shelf. 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_transforms applied 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") and q.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_lighting and hide_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_attachables and held_item_scale 2 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 with hide_held_items on 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) into mark_variant; the animation reads them as query.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 head transform (armor stand head slot) and the ground transform (dropped item) applied. An icon-only item is a flat sprite on the ground. In frames the fixed transform applied, on shelves shelf, and in the third-person hand thirdperson_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, scale of first_person/third_person under main_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 script new ItemStack throws "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)}

PartDecided byChangeable by a pack
Arm pose, map position and tiltvanilla map_hold* in animations/player_firstperson.animation.json, first_person_map in player.animation_controllers.json, variable.map_angle in player.entity.jsonYes, through animation JSON
Map plane (background, picture, icons)the engine's map rendererOnly the textures (textures/map/*)
Player face on the mapthe 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) thenYes, 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_icons atlas, 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_map removes the engine map plane, and whether the map/<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_color and held_item_ignores_lighting of a render controller do not work on attachables. There was no answer on changing an attachable's color with color or overlay_color.
  • A note (2025-10) says uv_anim does not work on attachables, while a note (2026-06) says a flipbook works with uv_anim in 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_lighting does not work on attachables, while another note says it works if you use ignores_lighting together with the material "-defines": ["FANCY"]; they disagree {conflict}.
  • filter_lighting: false is rejected with "Value 'false' not allowed" and only true is accepted. Glow of a held item is the client entity held_item_ignores_lighting (see allay.entity.json in the bedrock-samples Preview), but everything that references held_item excludes 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_hold and so on, reusing the player arm lead locator) or an offset. Other workarounds: computing the offset with minecraft:particle_motion_parametric driven by Molang (relative_position, no collision) or minecraft: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's emitter_local_space position, rotation and velocity to true. Define the identifier in the attachable particle_effects and reference it by short name in the animation's effect.
  • 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' and entity.setProperty.
  • Animate only in third person: the scripts.animate entry {"third_person": "!c.is_first_person"}.
  • State conditions: render controller part_visibility and geometry conditions (for example q.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.armor is old. Use controller.render.armor.v2 (humanoid mobs) and controller.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 .player identifier.
  • 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 sets variable.use_baby_geo = query.is_baby; and the render controller picks variable.use_baby_geo ? Geometry.baby : Geometry.default, so a custom entity without minecraft:is_baby does 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 the textures/models/armor/elytra path, and a resource pack that points elytras at a separate texture path such as textures/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 rightItem after 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_person inside 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.
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
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