Im trying to set up a command block that gives a effect if your out in the open[aka you have no roof/block over your head], does anyone know how to use a /execute command to do this?
3
/execute at @s if block ~ ~3 ~ air run <command>
thank you, ill try this out and see if it works
You might also want to play around with /execute at @s if blocks (I've never used 'if blocks' but it looks like it might work better. The command I gave you before only tests the block right above the player's head.
