Mojira Archive
MC-80959

execute detect air at Y coordinates > 256 and < 0

When running any of these commands, you see a message in the chat, meaning the block detection is successful.

/execute @a ~ ~ ~ detect ~ 500 ~ air 0 say a
/execute @a ~ ~ ~ detect ~ -1 ~ air 0 say b
/execute @a ~ ~ ~ detect ~ ~300 ~ air 0 say c

But since the detection is made outside of the world it should not confirm the detection and not execute the say command. Others commands like testforblock, blockdata just return an error message :

/testforblock ~ 300 ~ air
=>The number you have entered (300.0) is too big, it must be at most 256

/testforblock ~ -1 ~ air
=>The number you have entered (-1.0) is too small, it must be at least 0

Works As Intended

mrpingouin1

[Mojang] Searge (Michael Stoyke)

2015-06-04, 10:58 AM

2015-12-02, 03:56 PM

2015-12-02, 03:56 PM

0

5

Confirmed

Minecraft 1.8.6, Minecraft 15w45a

-