Skip to main content


Friendly Fire

Allows teammates to kill each other. Arrows will be absorbed if they hit a teammate.

<friendlyfire>on</friendlyfire> <!-- Defaults to off -->

Refunds arrows blocked by teammates from non-infinity bows.

<friendlyfirerefund>off</friendlyfirerefund> <!-- Defaults to on -->


The difficulty level can be set to peaceful, easy, normal, or hard. The default is hard.

<difficulty>easy</difficulty> <!-- Defaults to hard -->


Specify if a player can starve to death, usually used with the difficulty setting.
This can also be accomplished with the naturalRegeneration gamerule.


Damage Filtering

This module is used to filter when or if damage is applied to entities. Its contents can be a filter or combination of filters. It doesn't have to be <allow> and <deny> at the top level but that's usually what you want. Regions can also be used since they are filters that filter for a location.


<!-- Deny damage events where the attacker is on the red team -->
<!-- Deny fall damage for players using the Eagle class -->

Disable Damage

Use this module to disable damage from specific causes.

While almost every form of damage can be disabled safely, it is recommended that you do not disable VOID damage.

Disable Damage Element

<disabledamage> </disabledamage>Node containing the disabled damage types.
<damage> </damage>The damage type that is disabled.Damage Cause


<!-- Disable fall damage -->

Block Explosion Attributes

The BLOCK_EXPLOSION damage cause has several extended attributes to customize who/what gets damaged. Only attributes with false as the value need to be explicitly defined since all attributes default to true.

allyDamage to players on the same team as the person that caused the explosion.true/falsetrue
selfDamage to the person that caused the explosion.true/falsetrue
enemyDamage to players not on the same team as the person that caused the explosion.true/falsetrue
otherAny other damage caused by the explosion.true/falsetrue


<!-- TNT damages enemies and self, but not teammates -->
<damage ally="true" self="false" enemy="false" other="false">block explosion</damage>

Damage Causes

The following damage causes can be used in the disable damage module. These causes do not need to be capitalized or contain underscores, i.e., FIRE_TICK and fire tick will both work.

CONTACTDamage caused when an entity contacts a block such as a Cactus.
ENTITY_ATTACKDamage caused when an entity attacks another entity.
PROJECTILEDamage caused when attacked by a projectile.
SUFFOCATIONDamage caused by being put in a block.
FALLDamage caused when an entity falls a distance greater than 3 blocks.
FIREDamage caused by direct exposure to fire.
FIRE_TICKDamage caused due to burns caused by fire.
MELTINGDamage caused due to a snowman melting.
LAVADamage caused by direct exposure to lava.
DROWNINGDamage caused by running out of air while in water.
BLOCK_EXPLOSIONDamage caused by being in the area when a block explodes.
ENTITY_EXPLOSIONDamage caused by being in the area when an entity, such as a Creeper, explodes.
VOIDDamage caused by falling into the void.
LIGHTNINGDamage caused by being struck by lightning.
SUICIDEDamage caused by committing suicide using the command /kill.
STARVATIONDamage caused by starving due to having an empty hunger bar.
POISONDamage caused due to an ongoing poison effect.
MAGICDamage caused by being hit by a damage potion or spell.
WITHERDamage caused by Wither potion effect.
FALLING_BLOCKDamage caused by being hit by a falling block which deals damage.
THORNSDamage caused in retaliation to another attack by the Thorns enchantment.
CUSTOMCustom damage.

Copied from: bukkit docs - Damage Cause