TransWikia.com

How do you kill a player standing on a specific block?

Arqade Asked by Alex Y on February 24, 2021

I’m making a Parkour Map and I need to know how to execute
/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:grass 0 /kill @p[c=1] in 1.13.
It doesn’t work for me, because this code was used in version 1.9 or thereabouts.
I’m playing on PC.

How do you do execute this command in 1.13?

2 Answers

execute as @a at @s if block ~ ~-1 ~ minecraft:grass run kill @s

This selects all players, individually checks each player to see if the block beneath them is grass, then kills off the player if it is.

A good place to look up what you can do with the execute command is on the Minecraft Wiki

Answered by SamJBarney on February 24, 2021

how to kill someone when standing on a block in minecraft pc 1.13

execute as @a[distance=..1] run kill @s

use that command in pc it works in 1.13

Answered by Ares on February 24, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP