Advanced

Something harder than basics I guess.

Feels boring with normal guns? Ok I will show you how to make unique guns and make the game funnier!

1. Gun's Effects

1.1. How to add a new effects?

Effects can be added through 'special' section of any gun

For example:

  special: 
    can-pierce: <false/true>
    effect: <replaceme>
    hit-sound: <replaceme>
    droppable: <false/true>
    can-knockback: <false/true>
    effects:
    - '<replaceme>'
    ...

1.2. How to build an effect?

chevron-rightFormathashtag
<event>:<type>:<target>:<somethingrequired>

1. Event

First, I will introduce about effect's event This help you determine in which situation this effect will be called! Currently available event: ON_HIT, ON_SHOOT, ON_HOLDING

2. Type

This give the target some status, maybe negative, maybe positive!

Requirements (can be added after <target>):

  • Status

  • Duration (in seconds)

Currently available status:

  • FIRE

Example: ON_HIT:STATUS_EFFECT:ENEMY:FIRE:5 Explaination: It will ignite the enemy 5 seconds on bullet hit.

3. Target

The effect will be applied only for player that execute this effect!

circle-info

You cannot skip any effect's argument or that effect will not work!

1.3. Example

You think the guide above is quite complicated to understand? I will provide you some example:

chevron-rightYou want a gun that will slowdown when holding:hashtag
chevron-rightYou want a gun that the farther the bullet flies, the less damage it does:hashtag

Step 1: Set the gun damage to the maximum damage this gun can deal

Step 2: Add this effect

By doing so, if you shoot an enemy 5 blocks away, the damage will be reduced by 45%. And the damage now is 11. If the enemy is so far away and if the damage reduction value exceeds 100%, the damage will be set to 0.

2. Gun's particle (bullet's trail)

Advance particles include: REDSTONE, BLOCK_CRACK, BLOCK_DUST, ITEM_CRACK (all of them were added since BETA-1.0.4!)

These particles require a new option called: particles-option (You can add it below 'particles'!)

Normally you only need 4 argument separated by a space to make it work! Format: 'false <R> <G> <B>' But if you set the first argument to 'true', it require 7: Format: 'true <R1> <G1> <B1> <R2> <G2> <B2>' (Use this if you need transitional particles!)

Example:

circle-info

You can go to this sitearrow-up-right for RGB color

Last updated