Here's an example:
Well be using the command:
/Execute @e[type=drowned] ~ ~ ~ detect ~ ~-1 ~ SOLIDBLOCK 1 kill @e[type=drowned,r=2]
Here is the setup:
A drowned comes out of the water and arrives at a Beach
The command detects the drowned is standing on sand, then the command is triggered, the reason why it triggered is because the drowned is standing on sand, and sand is solid, therefore the command is triggered
Here is another example:
We'll be using the same setup and command but this time the sand is replaced by grass
The drowned comes out of the water and arrives at a forest
The command detects that the drowned is standing on grass, then the command is triggered, Again the reason why it triggered is because the drowned is standing on grass, and grass is solid, then the command is triggered.
For the "Nonsolid" filter, just make it detect nonsolid blocks like air, tall grass, vines and other nonsolid blocks
Sorry for bad grammar xdxd
Please sign in to leave a comment.
0 Comments