I'm trying to figure out how to execute (for example /say hi) when there's Yellow Terracotta in a certain radius or field, however I can't figure out how to do it. Anyone knows?


I provided some thoughts in your thread on stackoverflow, but I came up with (for mc1.16):

execute at @p[distance=..3] if block ~ ~-1 ~ minecraft:yellow_glazed_terracotta run say hi

This sort of achieves what you are looking for. When a button is on the command block, the player must press the button, be within 3 blocks of the command block, and the terracotta must be under the player. Then it shall run "say hi."

  • 1
    Thank you for your answer, but I don't think this will help me. I want to have some sort of Lava Spleef system, where each block gets calculated and seen for how long it exists. – BjornGmr Jan 13 at 18:06
  • @BjornGmr In your other thread, I mentioned that it is possible to check an individual location for a block. If you string these together in a function (to check several locations), you could constantly tick the function and perhaps each command could do something to a scoreboard... It's very rudimentary and not efficient. But that is all I can think of. – emmit Jan 13 at 23:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.