I am creating an adventure map in MC Bedrock and need a way to trigger a command 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 so I can then 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.