How to Create a Death Zone (Kill Zone) in Minecraft with Command Blocks
Minecraft Java 1.21+ / 26+ – Instant Kill Area Command Tutorial
In this tutorial, you will learn how to create a Death Zone (Kill Zone) in Minecraft using command blocks.
This command creates an instant kill area, where any player who enters the defined radius will automatically die.
It works in Minecraft Java Edition 1.21+ and newer versions like 26+, making it perfect for adventure maps, PvP arenas, minigames, and custom server systems.
The command is very simple — it basically detects if a player is within a specific coordinate area.
The distance parameter defines the detection radius on the x, y, and z axes; in this case, it expands the detection range around those coordinates.
execute as @a run execute if entity @s[x=61,y=22,z=-850,distance=..2] run kill @s
As soon as a player enters this small radius, the kill command will be executed only by that player, instantly killing them.
You can also change it to a teleport command, for example, if you want to create an exclusive area instead.