1

How to make it so that when players step on a block, it insta kills

Multiplegamesman_YT's Avatar Multiplegamesman_YT7/7/21 7:45 pm
7/8/2021 12:08 pm
Kerzinator_24's Avatar Kerzinator_24
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)?
Posted by Multiplegamesman_YT's Avatar
Multiplegamesman_YT
Level 38 : Artisan Cookie
10

Create an account or sign in to comment.

5

1
07/08/2021 12:08 pm
Level 31 : Artisan Modder
Kerzinator_24
Kerzinator_24's Avatar
execute as @a at @s if block ~ ~-1 ~ minecraft:bedrock run kill @s should work
1
07/07/2021 11:03 pm
Level 52 : Grandmaster Blob
HoboMaggot
HoboMaggot's Avatar
execute as @a at @s if block ~ ~-1 ~ minecraft:bedrock run kill @sexecute as @a at @s: means executing as the player, at their location
if 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
07/07/2021 7:51 pm
Level 56 : Grandmaster Lego Builder
MJ_mcMaster
MJ_mcMaster's Avatar
maybe use something like testfor commands (yes sorry i didnt help at all)
2
07/07/2021 8:00 pm
Level 38 : Artisan Cookie
Multiplegamesman_YT
Multiplegamesman_YT's Avatar
i really only know the give, kill, gamerule, and gamemode commands
1
07/07/2021 8:02 pm
Level 56 : Grandmaster Lego Builder
MJ_mcMaster
MJ_mcMaster's Avatar
there are some tutorials for an execute command, its really helpful for these things.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome