How to make a custom death message with the player's name

Started by eagle_skull14 on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 months ago
Joined Sep 2022
Points:
308

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
How to make a custom death message with the player's name

Hi! I am working on a mod, and have a death message called "death.attack.telepod" and the message being "was ripped apart at a molecular level." I need the players name to be at the front, like "eagle_skull14 was ripped apart at a molecular level." or "Dev was ripped apart at a molecular level." How do I do add the killed player's name? Thank you!

Active 1 month ago
Joined Dec 2022
Points:
287

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 41
use %1$s to represent the…
Thu, 07/27/2023 - 14:02

use %1$s to represent the player

Active 6 months ago
Joined Aug 2022
Points:
295

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
does it work with fabric?  
Mon, 11/27/2023 - 13:32

does it work with fabric?