Started by
BeastAustin94
on
Topic category: Help with MCreator software
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?
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:
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
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"