1
[solved] do something with entitys that have the correct testfor
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!
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!
Create an account or sign in to comment.
1
1
there is a command type that goes
execute <entity> ~ ~ ~ detect ~ ~ ~ <block> <command>
execute <entity> ~ ~ ~ detect ~ ~ ~ <block> <command>