[TUTORIAL] Custom death messages in MCreator 2020.5

Started by Przemek32767 on

Topic category: User side tutorials

Last seen on 11:20, 3. Sep 2022
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!

Last seen on 12:08, 4. Jan 2021
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 ? 

Last seen on 22:41, 29. Dec 2021
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

Last seen on 22:18, 7. Feb 2022
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?

Last seen on 14:43, 2. Aug 2022
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.

Last seen on 22:18, 7. Feb 2022
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

Last seen on 08:11, 13. Apr 2022
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

Last seen on 16:44, 16. Apr 2023
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?

Last seen on 14:53, 23. Aug 2023
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.

Last seen on 15:51, 16. Jan 2024
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?

Last seen on 08:41, 10. Jul 2022
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?

Last seen on 19:45, 28. Mar 2024
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>"

Last seen on 05:08, 25. Sep 2022
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?

Last seen on 15:31, 19. Mar 2024
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]

Last seen on 06:59, 29. Jan 2023
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"