HomeJavaModsLaser guns v1.0
Laser guns

Well, this plugin adds simple laser guns with much customization.

<3 Laser guns with particle effects.
<3 Play sound while shooting.
<3 Lasers aren't going trough blocks.
<3 Simple hitboxes with leg ,chest and headshot damage.
<3 Play sounds on headshots.
<3 Give your gun a cooldown.
<3 Custom name's and items.
<3 Add your own gun trough the config.


Spoiler: How to install!
Simple drop&drag the downloaded plugin to your server.plugins folder, restart or reload. DONE

No additional plugins needed.

Spoiler: Config
Code (Text):

guns:
  count: 0 // see below
gun0:
  item: BREWING_STAND_ITEM //Item the weapon is using
  itemname: "\xa76SparkleGun"   //Custom name of the gun
  usesound: NOTE_PLING           // Sound playing while using the gun
  usesoundvolume: 10.0               // The sounds volume
  usesoundpitch: 1.0                     // The sounds pitch
  range: 25                                    // the maximum range of the laser
  gbthitchecks: 0.1                        // hitbox-checks every 0.1 Blocks (Higher nummer = better performance but less better hitbox)
  gbtparticles: 0.5                          // Particle display every 0.5 blocks
  particle: FIREWORKS_SPARK  // The particle that gets desplayed
  particledata1: 0                           // Particle data
  particleoffx: 0.1                           // the x offset of the particle
  particleoffy: 0.1                           // the y offset of the particle
  particleoffz: 0.1                           // the z offset of the particle
  particlespeed: 0.1                       // the particle speed
  particlecount: 5                           // how many particles get spawned
  dmgtype1: 1                                // Damage received on leg hit
  dmgtype2: 1                                // Damage received on chest hit
  dmgtype3: 2                                // Damage received on headshot
  headshotsoundeffect: NOTE_BASS  // Sound played on headshot
  headshotsoundeffectvolume: 3.0       // Sound's volume
  headshotsoundeffectpitch: 1.0           // Sound's pitch
  ticksbetweenshots: 10                 //cooldown between shooting (ticks)
 


Spoiler: How to add your own gun in the config
-Simply copy everythink below&including "gun0:"
-paste it under the last code in a new line
-rename it to "gun1:"
-set the "count" one higher!

Example:
Code (Text):

guns:
  count: 1
gun0:
  item: BREWING_STAND_ITEM
  itemname: "\xa76SparkleGun"
  usesound: NOTE_PLING
  usesoundvolume: 10.0
  usesoundpitch: 1.0
  range: 25
  gbthitchecks: 0.1
  gbtparticles: 0.5
  particle: FIREWORKS_SPARK
  particledata1: 0
  particleoffx: 0.1
  particleoffy: 0.1
  particleoffz: 0.1
  particlespeed: 0.1
  particlecount: 5
  dmgtype1: 1
  dmgtype2: 1
  dmgtype3: 2
  headshotsoundeffect: NOTE_BASS
  headshotsoundeffectvolume: 3.0
  headshotsoundeffectpitch: 1.0
  ticksbetweenshots: 10
gun1:
  item: BREWING_STAND_ITEM
  itemname: "\xa76SparkleGunTheSecond"
  usesound: NOTE_PLING
  usesoundvolume: 10.0
  usesoundpitch: 1.0
  range: 25
  gbthitchecks: 0.1
  gbtparticles: 0.5
  particle: FIREWORKS_SPARK
  particledata1: 0
  particleoffx: 0.1
  particleoffy: 0.1
  particleoffz: 0.1
  particlespeed: 0.1
  particlecount: 5
  dmgtype1: 1
  dmgtype2: 1
  dmgtype3: 2
  headshotsoundeffect: NOTE_BASS
  headshotsoundeffectvolume: 3.0
  headshotsoundeffectpitch: 1.0
  ticksbetweenshots: 10
 
Now you can edit you gun stats!

Remember to save at the end :D

Spoiler: Commands|Permissions|How to get your gun ingame

Commands:

/lasergungetitem GUNNUMBER // (see config gunX , X = gunnumber)
Spawns your gun from the config in your first inventory slot!
WARNING overwrites the first item in your inventory.

Permissions:
"laserguns.get" Permissions to spawn weapons.

Spoiler: Tips and Resources
Want you custom name colored? add "\xa7 COLORCODE " in your Custom name

List of color codes and formatting

List of particles (Maybe not all will work.)


List of soundeffects (Maybe not all will work.)


Thanks for reading <3

btw i know that the word "weapon" also exist
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Laser guns v1.0 is a free Minecraft Java mod. Compatible with Minecraft 1.8. Downloaded 336 times (via Spigot). Download it and open it directly in the game.

Explore more