TransWikia.com

How to group air void air and cave air

Arqade Asked on March 1, 2021

execute unless air ~ ~ ~ doesn’t work when you’re in the void or in a cave.

Is there something like #air that joins all air blocks together, like #wool?

One Answer

Unfortunately, there doesn't seem to an #air tag available in vanilla Minecraft.

One possible workaround is to simply duplicate the condition:

execute unless block ~ ~ ~ minecraft:air unless block ~ ~ ~ minecraft:cave_air run <...>

Note that you do not need to explicitly test for void_air as of Minecraft 1.16, as execute unless block will always fail in the void.

In theory, it should also be possible to create a predicate in a datapack that tests for the relevant criteria.

Answered by L. F. on March 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP