dagasil233-netizen

Build a minecraft mod a gun for the bedrock edition (mobile)

Kodari AI
KodariAug 21 at 3:26 pm 1

Place the two folders in the Bedrock world’s development-pack directories:

  • development_behavior_packs/kodari_gun

  • development_resource_packs/kodari_gun

Activate both packs on a world, then craft:

  • Pistol: iron ingots, flint, and redstone

  • Bullets: iron nugget + gunpowder, producing 8 bullets

Kodari can make mistakes. Review important code before using.
Files
behavior_packs
resource_packs
Code
13 326
behavior_packs/kodari_gun/recipes/kodari_pistol.json
{
  "format_version": "1.20.10",
  "minecraft:recipe_shaped": {
    "description": {
      "identifier": "kodari:pistol"
    },
    "tags": [
      "crafting_table"
    ],
    "pattern": [
      "IFI",
      " RI",
      "  I"
    ],
    "key": {
      "I": {
        "item": "minecraft:iron_ingot"
      },
      "F": {
        "item": "minecraft:flint"
      },
      "R": {
        "item": "minecraft:redstone"
      }
    },
    "result": {
      "item": "kodari:pistol",
      "count": 1
    }
  }
}