execute as @a if items entity @s container.* apple[minecraft:custom_data={tree_parasite:1b}] run function main:mechanics/artifacts/id/blue/id1/apple
execute as @a if items entity @s container.* apple[minecraft:custom_data={tree_parasite:1b}] run clear @s apple[minecraft:custom_data={tree_parasite:1b}]