#running a command *if* there is a block directly underneath a player
1 messages · Page 1 of 1 (latest)
For the sake of simplicity, running /say Hi if a player is standing above a diamond block
execute as @a at @s if block ~~-1~ diamond_block run say hi
Oh thanks!
You can use this to test if they are standing on any block
/execute as @a at @s unless block ~~-1~ air run say I'm standing on a block