TransWikia.com

In Minecraft 1.16 I can’t figure out how to check if an entity isn’t in the air

Arqade Asked by That Falco001 on July 10, 2021

This is the command I used which isn’t working:

execute as @e[type=husk,tag=remake] run execute at @s unless block ~ ~-1 ~ air run tag @s add looted

This command is adding a tag called looted to the entity when they are no longer in the air that is what I want to happen

One Answer

I'm not sure if I'm missing something pretty obvious but you should just be able to do:

execute as @e[type=husk,tag=remake] if data entity @s {OnGround:1b} run tag @s add looted

This adds the tag looted to any husk with the tag remake if they are not touching the ground

Answered by Jam on July 10, 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