!REPEATING execute if entity @e[tag=c.hide] run effect give @e[tag=c.pig] invisibility infinite 1 true execute if entity @e[tag=c.show] run effect clear @e[tag=c.pig] invisibility kill @e[tag=c.eff]