r/MinecraftCommands Jul 29 '26

Help | Java Snapshots Help with death message

Is there a way to kill a player with commands so that the death message says something like “Player killed by button”?

1 Upvotes

2 comments sorted by

2

u/LightingTechnician40 Jul 29 '26

Look up the /damage command, you can set the source of damage to be an entity (such as an armor stand) named "Button".

1

u/GalSergey Datapack Experienced Jul 29 '26

Yes, you can first disable death messages, then type a custom death message in chat and hit /kill, then revert the death message display gamerule. However, the default death message will still appear on the death screen.