tag @e[type=pa:huggy_wuggy] remove is_ai

execute @e[type=pa:huggy_wuggy] ~ ~ ~ detect ~ ~2 ~ air 0 tag @s add is_ai

execute @e[type=pa:huggy_wuggy] ~ ~ ~ detect ~ ~2 ~ air 0 tag @s remove is_air

execute @e[type=pa:huggy_wuggy,tag=!is_ai] ~ ~ ~ playanimation @s animation.pa_huggy_wuggy.look23

tag @e[type=pa:huggy_wuggy] remove is_air

execute @e[type=pa:huggy_wuggy] ~ ~ ~ detect ~ ~3 ~ air 0 tag @s add is_air

execute @e[type=pa:huggy_wuggy,tag=!is_air,tag=is_ai] ~ ~ ~ playanimation @s animation.pa_huggy_wuggy.look22