#running a command *if* there is a block directly underneath a player

1 messages · Page 1 of 1 (latest)

fair yoke
#

Usually this would be easy, but I'm more used to using command blocks as opposed to function files. It would involve /execute, and /testforblock, I assume.

#

For the sake of simplicity, running /say Hi if a player is standing above a diamond block

mint sigil
#

execute as @a at @s if block ~~-1~ diamond_block run say hi

fair yoke
#

Oh thanks!

small sparrow