Posted June 25, 20223 yr I'm trying to make a custom death message in my mod. I made my own DamageSource for this thing. However, I have one problem. The DamageSource requires a translation key and my mod is meaned to be runned on a server with vanilla clients. So is there any way to change the death message to a literal death message?
June 25, 20223 yr Author I've found it already. I can just override the getLocalizedDeathMessage method. This is what triggers the DamageSource class to send a translatable death message, and I can just return my own.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.