Creating FunCannonModes

Main | Permissions and Commands | Default config.yml | Creating FunCannonModes


Create a new FunCannonMode

Create a new file in "/plugins/FunCannon/modes" with the datatype .yml! .
The name of the File will be the name of the mode.
Copy and paste this code into the file:

Color: '&c'
MatInGUI: DIAMOND
FunCannonProjectile: 'SNOWBALL'
PlayersInvisibleOnHit: true
ParticleEffects:
  - EXPLOSION_NORMAL 0.5 0.5 0.5 0.4 4
  - LAVA 0.5 0.5 0.5 0.2 10
  - FLAME 1.0 1.0 1.0 0.2 15
InteractSounds: 
  - FIZZ 0.5 0.5
HitSounds:
  - EXPLODE 0.5 0.5

An explanation for the code is under this.

Changing FunCannonModes

If you want to change a mode, just open the file and change what you want. Here is an explanation for all the sections in the config:

  • Color - Color of the modename
  • MatInGUI - This will be the material for the item in the gui. A list of all materials is here.
  • FunCannonProjectile - Possible Values are: "ENDER_PEARL, ARROW, SNOWBALL, EGG"
  • PlayersInvisibleOnHit - If "true" the hitted player becomes invisible for the shooter, otherwise nothing happens.
  • ParticleEffects - You need 6 arguments. The first is the ParticleEffect which is going to be displayed. A list can be found here. The second, third and fourth are the offsets (X,Y,Z) of the displayed particles. The fifth argument is the speed of the particles and the last argument is the amount how many particles should be displayed.
  • InteractSounds - You need 3 arguments. The first is the sound which is going to be heared. A list can be found here. The second is the pitch it has to be a float. The third argument is the volume which has to be a float too.
  • HitSounds - It's save same for the InteractSounds.