3D Models & Bedrock Add-On Dev

How to Build a Minecraft Bedrock Gun Add-On (Attachables, Shooters and Cooldowns)

Build a complete Minecraft Bedrock gun add-on from scratch using Behavior Pack item components (minecraft:shooter, minecraft:use_modifiers, minecraft:cooldown), Resource Pack 3D attachables, and clean .mcaddon packaging.

Behavior Pack and Resource Pack Structure

Every Bedrock gun add-on consists of two paired packs: a Behavior Pack (BP) that defines the gun item, ammunition, firing behavior, cooldowns, and projectiles, and a Resource Pack (RP) that provides the 2D hotbar icon, 3D Blockbench geometry, textures, animations, and sounds. While developing on Windows, place unpacked folders inside com.mojang/development_behavior_packs/ and com.mojang/development_resource_packs/ so changes reload quickly.

Both packs require a root manifest.json using "format_version": 2 and distinct v4 UUIDs for the header and every module. Add the RP's header UUID inside the BP's dependencies array so activating the Behavior Pack reminds players of its matching Resource Pack.

// Minimal Behavior Pack manifest.json (generate fresh UUIDs for your own pack)
{
  "format_version": 2,
  "header": {
    "name": "Tactical Carbine BP",
    "description": "Custom Bedrock firearm behavior pack",
    "uuid": "11111111-2222-4333-8444-555555555551",
    "version": [1, 0, 0],
    "min_engine_version": [1, 21, 0]
  },
  "modules": [
    {
      "type": "data",
      "uuid": "11111111-2222-4333-8444-555555555552",
      "version": [1, 0, 0]
    }
  ]
}

Defining the Gun and Ammo Items in the Behavior Pack

Modern Bedrock items (format_version 1.20.50 or newer, such as 1.21.10) support native ranged firing without requiring experimental toggles. The gun item file goes in items/<gun_id>.json and combines four key components: minecraft:shooter (what ammo it consumes and how it charges), minecraft:use_modifiers (mandatory for minecraft:shooter to trigger; replaced legacy chargeable in 1.20.50), minecraft:cooldown (controls fire cadence in seconds across shared category names), and minecraft:durability (note that shooter items only lose durability when firing, not on melee hits).

Your ammunition item (items/<ammo_id>.json) must include minecraft:projectile pointing to either a vanilla projectile entity or a custom bullet entity defined in entities/.

// BP/items/carbine.json
{
  "format_version": "1.21.10",
  "minecraft:item": {
    "description": {
      "identifier": "myguns:carbine",
      "menu_category": { "category": "equipment" }
    },
    "components": {
      "minecraft:max_stack_size": 1,
      "minecraft:icon": "myguns:carbine",
      "minecraft:display_name": { "value": "Tactical Carbine" },
      "minecraft:use_modifiers": {
        "use_duration": 0.15,
        "movement_modifier": 0.85
      },
      "minecraft:cooldown": {
        "category": "myguns_rifle",
        "duration": 0.25
      },
      "minecraft:shooter": {
        "ammunition": [
          {
            "item": "myguns:ammo_556",
            "use_offhand": true,
            "search_inventory": true,
            "use_in_creative": true
          }
        ],
        "max_draw_duration": 0.15,
        "scale_power_by_draw_duration": false,
        "charge_on_draw": false
      },
      "minecraft:durability": { "max_durability": 500 }
    }
  }
}

// BP/items/ammo_556.json
{
  "format_version": "1.21.10",
  "minecraft:item": {
    "description": {
      "identifier": "myguns:ammo_556",
      "menu_category": { "category": "items" }
    },
    "components": {
      "minecraft:max_stack_size": 64,
      "minecraft:icon": "myguns:ammo_556",
      "minecraft:projectile": {
        "minimum_critical_power": 0.0,
        "projectile_entity": "myguns:bullet_556"
      }
    }
  }
}

Wiring 3D Attachables, Geometry and First/Third-Person Views

By default, a Bedrock item renders as a flat 2D sprite in the player's hand. To render a 3D Blockbench firearm, create an attachable JSON file inside RP/attachables/carbine.attachable.json whose identifier matches your BP item (myguns:carbine). Point geometry.default to your Blockbench model in RP/models/entity/carbine.geo.json and textures.default to your PNG in RP/textures/items/carbine.png (without the .png extension).

Inside models/entity/carbine.geo.json, bind the root gun bone to the player's hand using "binding": "q.item_slot_to_bone_name(context.item_slot)". Then use scripts.animate in the attachable to switch between your first-person and third-person holding animations via context.is_first_person == 1.0 and context.is_first_person == 0.0. Finally, register the 2D inventory sprite inside RP/textures/item_texture.json under the same key (myguns:carbine).

// RP/attachables/carbine.attachable.json
{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "myguns:carbine",
      "materials": {
        "default": "entity_alphatest",
        "enchanted": "entity_alphatest_glint"
      },
      "textures": {
        "default": "textures/items/carbine",
        "enchanted": "textures/misc/enchanted_item_glint"
      },
      "geometry": {
        "default": "geometry.myguns_carbine"
      },
      "animations": {
        "hold_fp": "animation.myguns_carbine.first_person",
        "hold_tp": "animation.myguns_carbine.third_person"
      },
      "scripts": {
        "animate": [
          { "hold_fp": "context.is_first_person == 1.0" },
          { "hold_tp": "context.is_first_person == 0.0" }
        ]
      },
      "render_controllers": [ "controller.render.item_default" ]
    }
  }
}

Native JSON Shooter vs Script API Firearms

JSON-only minecraft:shooter guns are fast to build, work across every Bedrock platform with zero script maintenance, and suit semi-auto pistols, sniper rifles, and flare guns cleanly. However, JSON alone cannot hold down a trigger for smooth 800 RPM full-auto fire, track magazine counts separately from reserve ammo, or apply precise ADS zoom and camera recoil.

Most advanced Bedrock gun packs add a JavaScript module under BP/scripts/ powered by @minecraft/server to handle rapid-fire loops, raycast or high-velocity projectile spawning, magazine reload states, and dynamic action-bar ammo counters.

FeaturePure JSON (minecraft:shooter)JSON + Script API (@minecraft/server)
Semi-auto firing & cooldownsBuilt-in via use_modifiers + cooldownFull custom RPM and burst control
True hold-to-fire full autoLimited by draw/release cycleSmooth tick-based firing while holding use
Separate mag + tactical reloadNot native (consumes inventory directly)Tracked via item dynamic properties or lore
Update stability across patchesVery high (stable components)Must target stable @minecraft/server releases

Testing, Validating and Packaging as .mcaddon

To share your add-on cleanly, zip the contents of your Behavior Pack (with manifest.json at the root) as carbine_bp.mcpack and your Resource Pack as carbine_rp.mcpack. Then place both .mcpack files (or both pack folders) side by side inside a single archive and rename .zip to carbine.mcaddon.

Before importing into a world, drop your .mcaddon into /viewer/ to verify that the 3D attachable geometry, texture, and animations load cleanly, and run /tools/validator/ to catch missing geometry IDs, broken textures, or missing manifests. In-game, spawn your firearm with /give @s myguns:carbine 1 0.

  1. Create two paired folders with unique UUIDs in each manifest.json: one Behavior Pack (BP) for item definitions and scripts, and one Resource Pack (RP) for models, textures, and sounds.
  2. Define the gun item JSON under BP/items/ and link its icon, 3D attachable geometry (.geo.json), and render controller inside RP/attachables/.
  3. Add Script API firing logic (or projectile triggers) in BP/scripts/ using @minecraft/server to handle raycasts, cooldowns, ammo tracking, and recoil sound cues.
  4. Zip both packs into a single .mcaddon archive and verify models, textures, and manifests in /viewer/ and /tools/validator/.

Common Mistakes & Fixes

  • Adding minecraft:shooter Without minecraft:use_modifiers: In Bedrock 1.20.50+, minecraft:shooter silently fails to fire unless minecraft:use_modifiers is present on the same item. Always pair both components and set use_duration to match your intended draw/fire time.
  • Forgetting minecraft:projectile on the Ammunition Item: Listing an item inside minecraft:shooter.ammunition is not enough. The ammo item itself must define minecraft:projectile with a valid projectile_entity identifier, otherwise clicking use does nothing.
  • Omitting the Hand Bone Binding in .geo.json: If your gun renders stuck at the player's feet or world origin instead of following the right hand, add "binding": "q.item_slot_to_bone_name(context.item_slot)" to the main bone in models/entity/<gun>.geo.json.
  • Reusing the Same UUID in Both manifest.json Files: Bedrock identifies packs and modules strictly by UUID. Generate four brand-new v4 UUIDs (BP header, BP data module, RP header, RP resources module) or Bedrock will throw a duplicate pack import error.

Frequently Asked Questions

Do I need Experimental toggles enabled for minecraft:shooter and minecraft:use_modifiers?

No. Both components are stable in Bedrock 1.20.50 and newer when your item JSON declares a current format_version such as 1.21.10. You only need Beta APIs if your add-on imports an unreleased -beta script module.

Why does my gun look 3D in my hand but show a purple-black square in the hotbar?

The 3D attachable texture is separate from the 2D inventory icon. Check that minecraft:icon in the BP item matches an entry inside RP/textures/item_texture.json, and that the referenced PNG exists at that path.

Can I combine multiple guns inside one Behavior Pack and Resource Pack?

Yes. Put each gun and ammo JSON in BP/items/, each attachable in RP/attachables/, and register every icon inside the same RP/textures/item_texture.json.

Can I inspect my Bedrock attachable 3D model without launching Minecraft?

Yes. Drag your .mcaddon, .mcpack, or zipped RP folder into /viewer/ to orbit the model, inspect textures, and scrub through its referenced animations.

Related Tools & Guides