
execute as @e[type=piglin] run data merge entity @s {IsImmuneToZombification:1b}

execute as @e[type=piglin_brute] run data merge entity @s {IsImmuneToZombification:1b}

execute as @e[type=hoglin] run data merge entity @s {IsImmuneToZombification:1b}

schedule function piglinimmune:check 1s