Damage type

Damage type determines how damage should be applied to entities.

NeoForge 26.1.2NeoForge 1.21.1Data pack 26.1Data pack 1.21.1

Step-by-step guide: how to make damage type →

Fields you fill in

Damage sound effect

This parameter determines what sounds should be played when receiving damage of this type

Exhaustion amount

This parameter determines how much exhaustion is applied to the player when the damage is dealt.

Higher values deplete the hunger bar more quickly.

Item death message

This message is displayed in chat when a player is killed by an entity holding a named item.

You can use the following tokens in the message:

  • <player>: the name of the player who died
  • <attacker>: the name of the entity that dealt the damage
  • <item>: the name of the item held by the attacker
Normal death message

This message is displayed in chat when a player dies from damage of this type, in most situations.

You can use the following tokens in the message:

  • <player>: the name of the player who died
  • <attacker>: the name of the entity that dealt the damage

NOTE: Use the second token only if the damage is always caused by a mob.

Assisted death message

This message is displayed in chat when a player dies from damage of this type, but was recently hurt by another entity.

You can use the following tokens in the message:

  • <player>: the name of the player who died
  • <attacker>: the name of the entity that dealt the damage
Does damage scale with difficulty

This parameter determines if the damage dealt should increase with difficulty.

  • Never: difficulty doesn't affect the damage dealt
  • Always: difficulty always increases the damage dealt, regardless of the source
  • When caused by living entity (non-player): difficulty increases the damage dealt only if it's caused by a living entity

(such as zombies or spiders)