Basic

A basic guide to make a new gun.

In this page I will show you how to create a new gun in the easiest way. And you won't need to calculate or do any difficult tasks.

Step 1

Copy this template:

#NOTE: you can use "&" or "§"
#Must be unique!
<gun-id>: 
  build:
    Material: <replaceme>
    Name: <replaceme>
    Data <replaceme>
    Lore:
    - ''
    - '§7• Clip Ammo: §a{ammo}'
    - '§7• Damage: §a<replaceme> HP'
    - '§7• Max Clip Ammo: §a<replaceme>'
    - '§7• Fire Rate: §a<replaceme>'
    - '§7• Reload: §a<replaceme>'
    - '§7• Range: §a<replaceme>'
    - ''
    #You can add more or delete this
    #For 1.8.8 users: https://helpch.at/docs/1.8/index.html?org/bukkit/inventory/ItemFlag.html
    #For 1.12.2 users: https://helpch.at/docs/1.12.2/index.html?org/bukkit/inventory/ItemFlag.html
    Flags:
    - <replaceme>
    #You can add more or delete this
    #For 1.8.8 users: https://helpch.at/docs/1.8.8/index.html?org/bukkit/enchantments/Enchantment.html
    #For 1.12.2 users: https://helpch.at/docs/1.12.2/index.html?org/bukkit/enchantments/Enchantment.html
    Enchantments:
    - <replaceme>
  stats:
    damage: <replaceme>
    max-clip-ammo: <replaceme>
    fire-rate: <replaceme>
    reload: <replaceme>
    range: <replaceme>
  special:
    can-pierce: <false/true>
    #For 1.8.8 users: https://helpch.at/docs/1.8.8/index.html?org/bukkit/Effect.html
    #Remember some of them can be sound or not supported by this add-on!
    #For 1.12.2 users: https://helpch.at/docs/1.12.2/org/bukkit/Particle.html
    effect: <replaceme>
    shoot-sound: <replaceme>
    shoot-sound-yaw: <replaceme> #Added since 1.0.0
    shoot-sound-pitch: <replaceme> #Added since 1.0.0
    hit-sound: <replaceme>
    hit-sound-yaw: <replaceme> #Added since 1.0.0
    hit-sound-pitch: <replaceme> #Added since 1.0.0
    droppable: <false/true>
    can-knockback: <false/true>
  shop:
    buyable: <false/true>
    #If set this 'false' you can delete all lines below!
    slot: <replaceme>
    currency: <IRON_INGOT/GOLD_INGOT/DIAMOND/EMERALD>
    amount: <replaceme>
    msgName: <replaceme>
    shop-display:
      Material: <replaceme>
      Name: '{color}<replaceme>'
      Data <replaceme>
      Lore:
      - ''
      - '§7• Clip Ammo: §a<replaceme>'
      - '§7• Damage: §a<replaceme>'
      - '§7• Max Clip Ammo: §a<replaceme>'
      - '§7• Fire Rate: §a<replaceme>'
      - '§7• Reload: §a<replaceme>'
      - '§7• Range: §a<replaceme>'
      - ''
      - '§7Cost: §6{cost} {currency}'
      - ''
      - '{buy_status}'
      Flags:
      - HIDE_ATTRIBUTES

You have to replace <replaceme> with the value you like, replace <value1/value2> with "value1" OR "value2". If the value is not a boolean (true or false). I suggest you putting them in a quote '<value>' to prevent error (don't need if there is already a quote). This template is used for normal guns, If you want any special effect in your gun. Please go to here.

Step 2

Execute "/Armedmode reload data" to reload all guns data include the new gun. Or just restart the server.

That's all, no problem, right? But if you have any problem, feel free to ask me on Discord!

Last updated