1
Trigger Command After Specific Death Message
Hello. I am looking for a way to trigger a command in MC Bedrock when a player dies a certain way. For example, if a player is on Level 4 (tracked by a scoreboard), if they die by “hitting the ground too hard” a repeating command block will increment the scoreboard to Level 5, teleport the player and set their spawn point to a new location.
The part I can’t figure out is how to detect the specific death message to check the level and trigger the other automated actions. I do NOT need custom death messages—I am trying to evaluate the vanilla death messages in the chat to see if they match the message I want in order to trigger the other actions.
Any ideas how I can accomplish this? Thank you!
The part I can’t figure out is how to detect the specific death message to check the level and trigger the other automated actions. I do NOT need custom death messages—I am trying to evaluate the vanilla death messages in the chat to see if they match the message I want in order to trigger the other actions.
Any ideas how I can accomplish this? Thank you!
