Custom damage on projectiles
This tutorial requires the premium version of the plugin.
Custom damage for 1 projectile in your item
If want to select a specific amount of damage in your projectiles (any type of projectile) you have to first create this 2 steps (They are already explained in the other tutorials so it won't be explained here.)
Ok so we have the EI that launches the projectile, now to customize it you could check the options of Score (related to velocity of the arrow, explosion radius in fireball, etc) but this isn't the best way, snowball damage couldn't be customized, so, the best way to add damage is:
Create an activator PROJECTILE_HIT_PLAYER
Add on targetCommands -> DAMAGE <AMOUNT> (Example: DAMAGE 5)
And that's it, if want to the same with entities instead of PROJECTILE_HIT_PLAYER create an activator PROJECTILE_HIT_ENTITY and add the commands in entityCommands.
Instead of only adding DAMAGE command you could add lot of things more, use AROUND command, or summon a lightning bolt, or use BURN command, give the target an effect, etc
Custom damage per projectile in the same item
If you have an ExecutableItem that launches 2 different projectiles and want to customize the damage for each one, this is the correct place to learn about, its the same technic before explained but with 1 thing added.
Now following the tutorial above, you create an activator PROJECTILE_HIT_PLAYER | PROJECTILE_HIT_ENTITY and add the command DAMAGE <AMOUNT>, well, since in this case we have 2 projectiles, you have to create 2 activators like this
After having the 2 activators, add a placeholder condition STRING for each one with
%projectile_name% = <thenameofyourprojectile>
So you will have 2 activators related to projectile hit, that each one will work depending on the projectile name that is triggering the activator
If don't understand yet I will create a little summarize right here
Last updated