1
How to make it so that when players step on a block, it insta kills
I'm making an MC map. And I need to make it so that when the player steps on the bedrock, it insta-kills them. I've tried multiple ways. Unfortunately, none have been successful. Can I have help (I'm not very good so please try it with pictures)?
Create an account or sign in to comment.
5
1
execute as @a at @s if block ~ ~-1 ~ minecraft:bedrock run kill @s should work
1
execute as @a at @s if block ~ ~-1 ~ minecraft:bedrock run kill @s
execute as @a at @s: means executing as the player, at their locationif block ~ ~-1 ~ minecraft:bedrock: should be self explanatory
run kill @s: run a command, for which this one kills the player the command executed as
1
maybe use something like testfor commands (yes sorry i didnt help at all)
2
i really only know the give, kill, gamerule, and gamemode commands
1
there are some tutorials for an execute command, its really helpful for these things.