Updated:

Show death messages game rule (show_death_messages)

The "Show death messages" rule is called show_death_messages in Java 1.21.11 and later, and showDeathMessages in 1.21.10 and earlier. Controls whether death messages are shown in chat.

Basic data

NameShow death messages
Rule name (Java 1.21.11+)show_death_messages
Old name (Java 1.21.10 and earlier)showDeathMessages
Bedrock nameshowdeathmessages
Value typetrue / false
Defaulttrue

Commands you can copy

Turn off (false)

/gamerule show_death_messages false

Reset to the default (true)

/gamerule show_death_messages true

Check the current value

/gamerule show_death_messages

Java 1.21.10 and earlier

/gamerule showDeathMessages false

Bedrock Edition

/gamerule showdeathmessages false

Notes

Questions

Typing showDeathMessages gives an error

In Java 1.21.11 and later the rule is called show_death_messages. Write /gamerule show_death_messages … instead. Worlds on 1.21.10 and earlier keep the old name.

How do I check the current value?

Run /gamerule show_death_messages without a value. The current value is shown in chat.

Other game rules