config/Damages

Damages

Were you looking for Projectiles?

All damage nodes are: damages.WORLD_NAME.ITEM_NAME_OR_ID: DAMAGE_DONE

There is a special world, "default", which will handle the damage dealt if the world does not specify the damage for that item OR if the world is not specified in the config.

There is a special item, "default", which specified per world and defines all items that are not defined. If you don't wish to affect other items, make this field "-1" or do not add it.

Any damage values of "-1" are interpreted as "use the MineCraft value, not the default value"

For example,

  • we have a world called "OP" where we want all players to be overpowered.
  • Diamond swords will do 200 damage (100 hearts), air (fists) will deal 100 damage (50 hearts), and the damage from any other item will be 20 damage (50 hearts).
  • In all other worlds, such as the default world, "world", we want players to deal 10 damage with diamond swords and everything not specified will default to MineCraft's values.

Sample

This is how we do it:

damages:
    OP:
         DIAMOND_SWORD: 200
         0: 100
         default: 20
    default:
         DIAMOND_SWORD: 10
         default: -1

To learn how to change projectile damage, look here.


Comments

Posts Quoted:
Reply
Clear All Quotes