[TUTORIAL] Custom death messages in MCreator 2020.5

Started by Przemek32767 on

Topic category: User side tutorials

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[TUTORIAL] Custom death messages in MCreator 2020.5

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:

  1. 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.
  2. In the “Localization” tab, click the “Add localization entry” button.
  3. 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”.
  4. 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!

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you so much  can you…
Tue, 12/29/2020 - 14:57

thank you so much 

can you tell me pls how to create attack animations ? 

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Lol it worked the first time…
Wed, 01/27/2021 - 20:42

Lol it worked the first time but the second time I do it, it dont work

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to test death…
Tue, 03/16/2021 - 16:56

Is there a way to test death messages?

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You test them by damaging…
Tue, 03/16/2021 - 17:46

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.

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Of course, thanks
Tue, 03/16/2021 - 17:47

Of course, thanks

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use obfuscate
Thu, 03/25/2021 - 21:51

You can use obfuscate

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I link the message…
Wed, 04/28/2021 - 14:36

How would I link the message up to an entity's base attack?

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, i felt like: if…
Wed, 04/28/2021 - 15:22

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.

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hat about named entity…
Sun, 06/27/2021 - 15:38

hat about named entity killed by player death message?

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For the deal damage block,…
Fri, 07/08/2022 - 23:43

For the deal damage block, can it attack the damage even with armor on?

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Would there be a way to make…
Tue, 09/13/2022 - 03:50

Would there be a way to make it say something along the lines of "<player name> killed <other player name>"

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do connect to a entity…
Fri, 09/23/2022 - 09:02

How do connect to a entity feels like I missing a output?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do you remove the "death…
Fri, 10/21/2022 - 15:55

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]

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to localize it in…
Mon, 11/28/2022 - 02:08

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"