Started by
Przemek32767
on
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!
thank you so much
can you tell me pls how to create attack animations ?
Lol it worked the first time but the second time I do it, it dont work
Is there a way to test death messages?
You test them by damaging yourself with the custom damage. Dealing 20 damage means you will die and you will see if the message works as intended.
Of course, thanks
You can use obfuscate
How would I link the message up to an entity's base attack?
Thanks, i felt like: if there is an option to make custom damage with death.attack...it should be continued by a localized death message, but it didn't show up in localization tab. Thanks to you I noticed "add localization entry" button. Seems, now I can even localize messages, that will show up in chat not related to death.
hat about named entity killed by player death message?
For the deal damage block, can it attack the damage even with armor on?
Would there be a way to make it say something along the lines of "<player name> killed <other player name>"
How do connect to a entity feels like I missing a output?
how do you remove the "death.attack." thing at the beginning of the text?
it showed up in game as death.attack.Dev was cut up in barbed wire
This is my procedure
Deal [3] custom damage to [Event/target entity] localized as death.attack.[%1$s was cut up in barbed wire]
You need to localize it in the localization tab, in the "Deal [3] custom damage to [Event/target entity] localized as death.attack.[%1$s was cut up in barbed wire]" set the "[%1$s was cut up in barbed wire]" to "cut". Then, in localization, add a new entry and do "death.attack.cut" Then enter and set the localization to "%1$s was cut up in barbed wire"