Guns Tutorial

This page will teach you the ins an outs of creating a top of the line Gun Library with tons of examples and pictures!

Where do I Start?

That is a great question! To start creating your own guns you must first have the Nugun plugin installed it has been ran once. Now you put all your guns in the plugins/Nugun/library.txt file. (The path separator is changed depending on your operating system.)

How do I Create my First Gun?

Once you have opened the library.txt file you can start creating your first gun! All the guns are made with a bunch of arguments separated by a space. This is the same way you put in a Minecraft command without the / in front. Here is all the arguments you need to create a gun.

<name> <type> <speed> <clip size> <item> <craft item (7)> <ROF> <burst> <span>

  1. name is the name of the gun. If you want a space in the name you use the '_' character. This will be replaced with a space.
  2. type is what is shot out of the gun. This can either be 0 (Snowball), 1 (Egg), or 2 (Arrow).
  3. speed is how fast the round is shot from the gun.
  4. clip size is how many rounds can fit inside the gun at one time.
  5. item is the gun item which is what you hold in your hand when you shoot. This can only be a tool.
  6. craft item is the item it takes to craft the gun. The (7) means that there needs to be seven items. If you wish to not have seven items you can just put a 0 to represent nothing.
  7. ROF is the rate of fire in milliseconds.
  8. Burst is how many rounds are shot out at once.
  9. Span is how many time span between bursts in ticks.

Here is an example of an arrow gun.

Arrow_Gun 2 2.5 64 270 262 0 0 0 0 0 0 500 3 2

If you would like to have more guns just put the next gun on the next line. We will be referencing the gun above to show you other concepts


Comments

Posts Quoted:
Reply
Clear All Quotes