CustomGuns
CustomGuns
CustomGuns allows for - yep, you guessed it - custom guns! With an easily editable config file you can customize your guns to any item, any ammo, any power and much more! Guns will fire arrows where you aim, and if the recoil is a value greater than 0, will send you backwards! An example gun with comments is included in the default configuration. Controls are left-click to fire, right-click to zoom.
Features
- Fully customizable
- Optional recoil
- Right click zoom
- Unlimited guns
- Use items as ammo
- Use items as guns
- Zoom time limit
Commands
The only command at the minute is /cg or /customguns. Reload can be added as an argument (e.g /cg reload) to reload the configuration file. You must be OP to reload the config. At the moment, there are no permissions for /cg (it only lists plugin name and command).
Configuring
To configure the guns, open up the config file in /plugins/CustomGuns/config.yml - this will generate after the plugin is installed and the server is reloaded once. An example gun is included by default, feel free to comment this out by putting hashtags (#) at the start of the lines or just delete it. To make a gun, use the structure of the example gun and call the gun what you want. All of the options for guns are explained at the top of the config prefixed with hashtags to tell the plugin they are comments. Do not remove the hashtags or the plugin will not work. The file is in YAML (Yet Another Markup Language) format and tabs do not work - use spaces instead.
The default config is below;
# YouGotSniped Help # To add a gun, add an entry like the example under "guns". # - Unlimited: Does the gun have unlimited ammo? (true/false) # - Recoil: How much recoil? (number) # - Power: How powerful is the arrow? (number) # - Item: Item ID of the gun. (number) # - Zoom: How much does the gun zoom? (number) # - ZoomDuration: How long can the gun be zoomed for? (number) # - Reload: The time in seconds that it takes to reload (number). # - Ammo: Item ID of ammo to be used. guns: example: unlimited: false recoil: 5 power: 3 item: 284 zoom: 1.5 zoomduration: 3 reload: 1 ammo: 289
Links
Download Note - download link will not work until file is accepted.
I love this plugin but recoil set to 1 is too big and configuration is realy small
Could u add the following futeres?: Fire modes (fully automatic, Semi automatic, 3 round burst) Fire rate (How fast the gun fire) Upward recoil, Not just going a little backwards Change what to shoot, (snowballs, items, tnt etc...)
Hello, I can't change reload to less that 1. ex. 0.5 doesn't work.
If you add that, that'll be wonderful. :D
The inverted controls happen when the zoom is anything past 5. Also, could you try to implement these features:
Is the recoil measured in blocks? How many hearts is 1 power?
will u update dynabutton pls?
and is it possible to make a gun automatic cause i wanna make an ak47 ?
what do i use as the gun ?
@TheRickBoy
Ammo is what is required for it to shoot. What is shot is an arrow.
What does the gun fire out? Is it the ammo inside it or is it snowballs, eggs, etc?
How do I craft a gun?
This is a truly great plugin, but I have a few suggestions myself. 1. Add shotgun 2. Add Fully-Automatic weapons (Click once and hold) 3. Add potion effects that affect the player hit (Poison potions as ammo-Good for blow darts and such) 4. Add knockback to your guns 5. Possibly add permissions (It would be much appreciated :P) 6. Add radius damage (For Bazooka or RPG effect) 7. Add distance the arrow can travel before dipping down (Sniper shots go longer then Blow darts) 8. Add fire arrows
I kinda ran out of ideas. Hope you like them though!
@TheRickBoy
What exactly do you mean by supporting WorldGuard? Currently there is no integration with WorldGuard as I see no reason or use for it with this plugin.
@Kluberge
Thanks for the suggestions, when I finish my current project (Plotty v2) I will probably add these options to the config.
Does this support World Guard?! :D
This plugin would be better if you could have more options in the config like "shotgun: true/false", When set to true it would shoot 10 arrows with the combind damage of the power set. Or like "firerate: (number)" which would control how many arrows it shoots per second.
Thank you very much for the fix~ I can now do Console work without the large nullpointerexception error. =)
Hello! First of all, I would like to thank you for the unique (and fun!) plugin that you have created. I run a military faction on my server and sorting people by their specialities makes things much easier now that we have guns designed to do what they look like they can do.
However, I would like to point out a few areas that could use some improvement: - Like zrocweb has stated below, the Zoom effect doesn't seem to work for my players. Someone has mentioned potion effects, but potions on my server work. Is there an option that I haven't enabled? - Whenever someone punches empty air, Console comes up with an interesting Java error: Could not pass event PlayerInteractEvent to CustomGuns v1.0 org.bukkit.event.EventException > It does nothing in-game wise, but it does bloat up the server log.
Otherwise, a great plugin. Lots of fun. Highly customizable. No Spout dependency. All in all, excellent work and effort. I see high potential for this plugin to be very popular in the future, thank you.
@semmeess
what potion??? And not, nothing that I am aware of. Use potions all the time.
Hmm.