tellraw @a[team=P] ["",{"text":"Pants Attack!","color":"dark_red","italic":true}]

tag @e[tag=K,type=zombie] add PantsAttackRep
tag @e[tag=K,type=skeleton] add PantsAttackRep
tag @e[tag=K,type=zombified_piglin] add PantsAttackRep
tag @e[tag=K,type=creeper] add PantsAttackRep
tag @e[tag=K,type=enderman] add PantsAttackRep
#tag @e[tag=K,type=Slime] add PantsAttackRep
tag @e[tag=K,type=spider] add PantsAttackRep
tag @e[tag=K,type=cave_spider] add PantsAttackRep
tag @e[tag=K,type=stray,name=!"Cadeyrn the Wretched",tag=!CadeyrnTP] add PantsAttackRep
tag @e[tag=K,type=husk] add PantsAttackRep
execute at @e[tag=PantsAttackRep] run summon zombie ~ ~ ~ {PersistenceRequired:1,Tags:["RemovePersist","GKNameTag","GKQMARK","NoMobMent"],ArmorItems:[{},{id:"minecraft:leather_leggings",Count:1b},{},{}],ActiveEffects:[{Id:14b,Amplifier:6b,Duration:90000}],Attributes:[{Name:generic.movement_speed,Base:.33}]}
tp @e[tag=PantsAttackRep] ~ ~-500 ~
#playsound entity.witch.ambient hostile @a ~ ~ ~ 1 0.8 1

