Configuration
Configuration
Every gun, by default has all of the options listed in their files. To make a new gun file, simply copy one of the existing ones, and place it into the guns folder. Open the file with notepad, or any other text editor, and change the values. To make grenades the process is the same, except copy one of the current grenades, and paste it into the projectiles folder. Change the files values after opening it into a text editor.
Here is a list of sounds. Every one of them can be used as the gunSound config
gun reload Types: (PUMP, BOLT, INDIVIDUAL_BULLET, NORMAL)
- If you enable aiming on ANY gun, it will disable the leftclick to fire option. SO, if you want to have aiming on a gun, make sure it can right click fire.
Configuration Options
Option | Input | Description | ||
gunName | string | The name of the gun | ||
lore | String[] | Gun lore | ||
gunType | material | The type of the gun | ||
ammoType | material | The ammo type of the gun | ||
ignoreItemData | boolean | Whether or not to ignore item data | ||
ammoAmtNeeded | integer | The amount of ammo needed to shoot | ||
bulletDelayTime | integer | The amount of time before you can shoot | ||
gunDamage | integer | The damage per bullet | ||
maxDistance | integer | The max distance of the bullet | ||
bulletSpeed | integer | The speed of the bullet | ||
accuracy | double | The accuracy of the gun | ||
accuracy_aimed | double | The accuracy of the gun while aimed | ||
canAim | boolean | Is the gun able to aim? | ||
explodeRadius | double | The radius of the explosion for the bullet | ||
fireRadius | double | The radius of fire created for the bullet | ||
flashRadius | double | The radius in which entities will be flashed | ||
canHeadshot | boolean | Whether or not the gun can headshot | ||
canClickLeft | boolean | Whether nor not the gun can shoot with left click | ||
canClickRight | boolean | Whether or not the gun can shoot with right click | ||
outOfAmmoMessage | string | The message when you are out of ammo | ||
needsPermission | boolean | Whether or not the gun needs permissions | ||
hasClip | boolean | Whether or not the gun uses clips | ||
reloadGunOnDrop | boolean | If the gun has clips, does it reload if dropped? | ||
reloadTime | integer | The amount of time it takes to reload | ||
maxClipSize | integer | Maximum size for a clip | ||
hasSmokeTrail | boolean | Do bullets emit smoke? | ||
explosionDamage | integer | Explosions will use this as their damage value | ||
localGunSound | boolean | Are gun sounds local to the player? | ||
armorPenetration | integer | The damage done to the player ignoring armor | ||
canAimRight | boolean | Is the right mouse used to aim? | ||
canAimLeft | boolean | Is the left mouse used to aim? | ||
canShootLeft | boolean | Is the left mouse used to shoot? | ||
canShootRight | boolean | Is the right mouse used to shoot? | ||
knockback | double | The amount of blocks a player is knocked back | ||
recoil | double | The amount of blocks you are knocked back while shooting | ||
reloadType | reload type | The sound type the gun uses while reloading | ||
canGoPastMaxDistance | boolean | Will bullets not slow down when they hit their max distance? | ||
timeUntilRelease | integer | Bullets will release in this amount of ticks | ||
bulletType | ANY valid Projectile | The type of bullet fired | ||
gunSound | SOUND | The sound that is played when the gun fires | ||
gunVolume | float | How loud the gun sound is | ||
priority | integer | Priority this gun has over guns of the same type |
/swornguns help Displays SwornGuns help /swornguns list Displays all available weapons /swornguns reload Allows the reloading of the plugin swornguns.reload /swornguns toggle Toggles individual firing
These commands are nice and all but how do you actually fire the gun?
@MCTylerPVP
I got it! I updated to the latest version and all is fine! Sry :(
Disabling block break does nothing
setting explosion damage to 0 still does damage. anyone know how to fix this? if i shoot near myself when explosive damage it set to zero it should not kill me.
Ok Excellent Job ! Sorry but i can't figure out how to use the "lore" option. It doesn't work :/
Is it possible for you to change the colour of the trail the gun fires?
Hi!!! This plugin is awesome, BUT guns dont kill. They do damage, but they can never kill a player. What did I do wrong?
@elimusgrove9
That may be something that has to do with WorldGuard or any other plugin. For me, it was MGGungame (whot teh fok mate) look for any plugin that handles death (can be any plugin! (e.g. minigame plugin))
Hi, I cant disable worlds can someone help me thx
Out of ammo message doesn't work. Is this plugin discontinued or is the creator lazy?
I noticed it doesn't include how to choose the type of explosion.
I figured out the code line, and you HAVE to type it under explosionDamage.
It is: explosionType=[type]
In reply to ViperTexas: