Giter VIP home page Giter VIP logo

addgun's Introduction

Add Gun


"People keep telling me to 'Add Gun'. So fine, I'm adding it." -ProgrammerDan

AddGun is a standalone plugin allow you to use an vanilla item as a gun featuring magazine, bullet, repair, loading, aiming, and custom damage! AddGun was made for a Civ server called Devoted which it never carry over to another Civ server since then. I (KingColton1) decided to fork ProgrammerDan's AddGun to continue the project and turn from being "Civ-only plugin" to a standalone, independent plugin where you can use them in any Minecraft servers without needing another plugin to make this work!

Concerning the CombatTag, I plan to have this plugin be flexible with all kind of CombatTag plugins by either; provide ID numbers of items that are used for this plugin or whatsoever. I'll figure out with this later.

v INSTRUCTION / MANUAL v

The Basics


If you enable them in config, players can get guns using the following simple commands:

/gun -- presents a menu with all configured guns

/magazine -- some guns aren't loaded directly, but via "magazines" of bullets, this command brings up a menu to pick 'em

/bullet -- guns need bullets to fire, brings up a menu showing all configured bullets.

Loading


To load bullets into guns or magazines, pick up the bullets. While holding them, right click the magazine, or gun, as indicated.

Pay attention to the lore on the gun / magazine -- it'll tell you if it can hold the bullets you've picked up or not.

To load magazines into guns, pick up the magazine, and right click the gun. If a magazine is already loaded, it will be swapped out with the one you are holding.

If you've "locked" a magazine to a particular bullet type, but the magazine is now empty, right click the magazine with nothing in your hand, to "free it" for other kinds of bullets.

Repair


Guns wear out, and will begin to misfire more often (potentially explosively!) as they are used. If enabled, type /rgun while holding the gun, to fully repair it.

Misfire


Some guns wear out quickly, others won't -- this depends on their health, and the "curve" settings for misfire chances (inflection and smoothness).

Pay attention to the gun, there will be a message in the lore indicating if the gun is wearing out. Some guns are just unreliable, and will come out of the factory with some "wear" visible.

Aiming


Note: this section subject to change.

To aim any gun, a combination of stillness and crouching is necessary. This is to emulate " lining up your shot " in real life. If you don't take the time to line up your shot, you'll likely miss your target -- often by a lot. Some guns have a nasty kick to them. Others are generally easily aimed. Again, this is all controlled by configuration... In any case, crouch, to see a visual indicator of the quality of your aim. Wait for it to go green before shooting, for best results.

Damage


All damage is fully custom and configurable. I'll explain more about that later.

addgun's People

Contributors

programmerdan avatar kingcolton avatar kingcolton1 avatar

Watchers

Clinton Bailiff avatar

addgun's Issues

Inventory Gui Refresh

Currently the inventory gui in /giveselfgun, /giveselfbullet, and /giveselfmagazine commands do not refresh every time you pick up a item from the item list menu. The intended behavior is whenever you pick up a item from there, a new item should appear every time you pick up and put in your inventory.

New Plugin Name

I may want to rename the "AddGun" to something else better, considering the term of "gun" is not okay for Mojang apparently -even though they're very selectively enforced- so to play safe, I will have to rename the plugin. Besides the "AddGun" is named after a popular demand and even memes from DevotedMC community simply by saying "add gun" repeatedly. It's not a good plugin name to be honest, definitely could be named better than that.

Will come back to this after improving and fixing bugs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.