execute as @e[type=zombie,tag=jjc_copperfish_tamer] at @s unless entity @e[type=silverfish,tag=jjc_copperfish,distance=..40] run kill @s

execute as @e[type=zombie,tag=jjc_copperfish_tamer,predicate=colosseum_of_fools:ss/player] at @s on target run tag @s add jjc_copperfish_tamer_t
tag @e[type=zombie,tag=jjc_copperfish_tamer,nbt=!{active_effects:[{id:"minecraft:luck",amplifier:98b}]},nbt={OnGround:1b},predicate=colosseum_of_fools:ss/player,predicate=colosseum_of_fools:nov] add jjc_copperfish_tamer2


tag @e[type=zombie,tag=jjc_copperfish_tamer30,nbt={OnGround:1b}] add jjc_copperfish_tamer3
tag @e[type=zombie,tag=jjc_copperfish_tamer30,nbt={OnGround:1b}] remove jjc_copperfish_tamer30
tag @e[type=zombie,tag=jjc_copperfish_tamer2] add jjc_copperfish_tamer30
execute if entity @e[type=zombie,tag=jjc_copperfish_tamer3] run function colosseum_of_fools:ss/copperfish/tamer/4

execute if entity @e[type=zombie,tag=jjc_copperfish_tamer,tag=jjc_copperfish_tamer2] run function colosseum_of_fools:ss/copperfish/tamer/3
tag @e[tag=jjc_copperfish_tamer_t] remove jjc_copperfish_tamer_t
