Help Making death Message

Started by BeastAustin94 on Sat, 06/04/2022 - 15:13

Topic category: Help with MCreator software

Last seen on 19:00, 5. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help Making death Message
Sat, 06/04/2022 - 15:13

so i have this ranged item and i coded it so that it does custom damage and i know you have to type %1$s to represent the person that was killed but i want to represent the person the killed them so for example if john killed bell it would say in chat: bell was killed by john, how do i do this?

Last seen on 16:20, 4. Aug 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Wed, 06/15/2022 - 02:18

a

Last seen on 16:20, 4. Aug 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Wed, 06/15/2022 - 02:41

this

Last seen on 22:06, 9. Aug 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hey Aatreyu_Shau, your way…
Wed, 06/15/2022 - 02:59

Hey Aatreyu_Shau, your way is very smart but there is a better way of doing it. Have your Deal Custom Damage procedure block in your "When Projectile Hits Living Entity" trigger and then in your localization tab make these two entries:

Entries

It is pretty simple, the first one defines the killed person (%1$s) and the second one defines the killer (%2$s), the second localization entry is for if the game gets confused on who killed who. These death messages also work for mobs. Oh by the way make sure to replace "slingshot" with what you put in your Deal Custom Damage procedure block

Last seen on 22:06, 9. Aug 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Btw when I say these work…
Wed, 06/15/2022 - 03:01

Btw when I say these work for mobs it means if the mob uses the ranged item it will say like: "Dev was pelted to death by Skeleton"