Topic category: User side tutorials
MCreator 2020.5 added the ability to create custom death messages by using the new “deal custom damage” procedure block. However, it's not exactly straightforward, but it's not hard either. Here's how to do it:
- Create the “deal custom damage” procedure block (use the search box to quickly find it). Note the “localized as death.attack.” parameter. Set the string to anything you want.
- In the “Localization” tab, click the “Add localization entry” button.
- Name the key “death.attack.x” where “x” is the string you set in the “deal custom damage” procedure block – for example, if your string is “disintegration”, type “death.attack.disintegration”.
- Set the newly created localization text to your death message. Type “%1$s” where the player's name is supposed to be. For example, “%1$s was disintegrated” will result in “<player name> was disintegrated”.
And that's it. Enjoy creating your mod!