This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Is there any way to make water that instantly kills you when to enter it?
I kind of need step by step directions, but it is ok if you'll just give me the commands!
Lilkxdude4101
You can use /execute's "detect" syntax to run a command based on the detection of a block at the player's location:
/execute @a ~ ~ ~ detect ~ ~ ~ minecraft:water -1 /kill @a[c=1]
For clarification: do not use "@p" in place of "@a[c=1]". @a is the only selector that can target a dead player. If you use @p, the player will die, but will continue to run /kill and the result is every single player on the server being killed.
Minecraft-things: http://skylinerw.com More Minecraft-things: https://sourceblock.net Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Thanks
It is kind of confusing though. Anything else to do? Or is that just it?
Just use Skylinerw's command in a repeating command block and it will kill anyone in water.
My recent creation
- Apocalyptic Disasters - Command block mod
My best Minigame
- Hangman
My best one command creation
- 1.9 Jetpack in minecraft
It worked!
Is there any way to make water that instantly kills you when to enter it?
I kind of need step by step directions, but it is ok if you'll just give me the commands!
Lilkxdude4101
You can use /execute's "detect" syntax to run a command based on the detection of a block at the player's location:
For clarification: do not use "@p" in place of "@a[c=1]". @a is the only selector that can target a dead player. If you use @p, the player will die, but will continue to run /kill and the result is every single player on the server being killed.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Thanks
Lilkxdude4101
It is kind of confusing though. Anything else to do? Or is that just it?
Lilkxdude4101
Just use Skylinerw's command in a repeating command block and it will kill anyone in water.
My recent creation
- Apocalyptic Disasters - Command block mod
My best Minigame
- Hangman
My best one command creation
- 1.9 Jetpack in minecraft
It worked!