1

[solved] do something with entitys that have the correct testfor

ManTheWell's Avatar ManTheWell9/3/17 4:35 pm history
1 emeralds 140 1
9/3/2017 5:06 pm
ManTheWell's Avatar ManTheWell
I need a way to kill players that are over a certain block type (sandstone), however I do not know a way to kill only they players that are above sandstone while using
execute @a ~ ~ ~ testforblock ~ ~-1 ~ sandstone

is there a way to give them a tag, or in some other way tag them? anything written after the testfor is disregarded by the command block

thank you!
Posted by ManTheWell's Avatar
ManTheWell
Level 1 : New Miner
0

Create an account or sign in to comment.

1

1
09/03/2017 5:06 pm
Level 1 : New Miner
ManTheWell
ManTheWell's Avatar
there is a command type that goes
execute <entity> ~ ~ ~ detect ~ ~ ~ <block> <command>
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome