How to Make a Damage Type in Minecraft (Mod Maker guide)

Learn how to create a custom Damage type in 9Minecraft Mod Maker right in your browser. Determine how damage is applied to entities and write fun custom death messages.

  1. Open the Studio and your workspace

    Start by opening 9Minecraft Mod Maker in your web browser. You do not need to install anything on your computer to get started.

    Open an existing workspace or create a new one. Make sure your workspace is set to a supported version: NeoForge 26.1.2, NeoForge 1.21.1, Data pack 26.1, or Data pack 1.21.1.

  2. Add a Damage type element

    Look for the green plus button to add a new mod element to your project.

    Find the Data-driven content group and click on Damage type. A Damage type determines how damage should be applied to entities. Give your new element a clear name to begin.

  3. Set the sound and exhaustion

    First, look at the Damage sound effect field. This parameter determines what sounds should be played when receiving damage of this type.

    Next, adjust the Exhaustion amount field. This parameter determines how much exhaustion is applied to the player when the damage is dealt. Higher values deplete the hunger bar more quickly.

  4. Choose how difficulty affects the damage

    Find the field named Does damage scale with difficulty. This parameter determines if the damage dealt should increase with difficulty.

    You have three options to pick from. Choose Never if difficulty does not affect the damage dealt. Choose Always if difficulty always increases the damage dealt, regardless of the source. Choose When caused by living entity (non-player) if difficulty increases the damage dealt only if it is caused by a living entity, such as zombies or spiders.

  5. Write the normal death message

    Now you can write what shows up in chat when someone is defeated. Look for the Normal death message field, which is displayed in chat when a player dies from damage of this type in most situations.

    You can use special tokens in the message. Type <player> to show the name of the player who died, and <attacker> to show the name of the entity that dealt the damage. Note that you should use the second token only if the damage is always caused by a mob.

  6. Write the item and assisted death messages

    Fill in the Item death message field. This message is displayed in chat when a player is killed by an entity holding a named item. You can use the tokens <player> for the player who died, <attacker> for the entity that dealt the damage, and <item> for the name of the item held by the attacker.

    Next, fill in the Assisted death message field. 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 <player> and <attacker> tokens here as well.

  7. Test and export your mod

    Save your new Damage type element. Click on Build & run inside the studio to test how your damage works in the game.

    When you are happy with your custom messages and settings, export your project to share it or use it in your Minecraft worlds.

Tips

Try it in the Studio All damage type fields explained →