1

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

1 emeralds5 replies46 views
Multiplegamesman_YT started 7/7/21 7:45 pm
Kerzinator_24 replied 7/8/2021 12:08 pm
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 avatar
Multiplegamesman_YT
Level 27 : Expert Cookie
5

Create an account or sign in to comment.

5 replies

1
07/08/2021 12:08 pm
Level 28 : Expert Modder
Kerzinator_24
Kerzinator_24 avatar
execute as @a at @s if block ~ ~-1 ~ minecraft:bedrock run kill @s should work
1
07/07/2021 11:03 pm
Level 46 : Master Blob
HoboMaggot
HoboMaggot 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 48 : Master Lego Builder
MJ_mcMaster
MJ_mcMaster avatar
maybe use something like testfor commands (yes sorry i didnt help at all)
2
07/07/2021 8:00 pm
Level 27 : Expert Cookie
Multiplegamesman_YT
Multiplegamesman_YT avatar
i really only know the give, kill, gamerule, and gamemode commands
1
07/07/2021 8:02 pm
Level 48 : Master Lego Builder
MJ_mcMaster
MJ_mcMaster avatar
there are some tutorials for an execute command, its really helpful for these things.
Planet Minecraft

Website

© 2010 - 2022
www.planetminecraft.com

Welcome