#spider progression
execute at @s[scores={DayQ=4..}] run effect give @e[tag=K,type=spider,tag=!GKNameTag] speed 5000 0
execute at @s[scores={DayQ=7..}] run effect give @e[tag=K,type=spider,tag=!GKNameTag] resistance 5000 0
execute at @s[scores={DayQ=8..},tag=HardMode] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run attribute @s minecraft:generic.movement_speed modifier add 1611-8043-1223111-5-1164 Speed10 .10 multiply
execute at @s[scores={DayQ=12..19}] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.knockback_resistance,Base:.25}]}
execute at @s[scores={DayQ=14..}] run effect give @e[tag=K,type=spider,tag=!GKNameTag,tag=!NoInvis] invisibility 5000 0
execute at @s[scores={DayQ=21..}] run effect give @e[tag=K,type=spider,tag=!GKNameTag] resistance 20000 1
execute at @s[scores={DayQ=9..}] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run attribute @s minecraft:generic.attack_damage modifier add 24232-23478-98942-00386-23028 2ADKYU 2 add
execute at @s[scores={DayQ=19..}] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run attribute @s minecraft:generic.attack_damage modifier add 24232-23478-98942-00386-23029 2ADKYUv2 2 add
execute at @s[scores={DayQ=29..},tag=!HardMode] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run attribute @s minecraft:generic.attack_damage modifier add 24232-23478-98942-00386-23030 2ADKYUv3 2 add
execute at @s[scores={DayQ=29..},tag=HardMode] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run attribute @s minecraft:generic.attack_damage modifier add 24232-23478-98942-00386-23030 3ADKYUv4 3 add
execute at @s[scores={DayQ=20..26}] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.knockback_resistance,Base:.375}]}
execute at @s[scores={DayQ=27..},tag=!HardMode] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.knockback_resistance,Base:.500}]}
execute at @s[scores={DayQ=27..},tag=HardMode] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.knockback_resistance,Base:.700}]}


#heal? maybe just do absorption instead
execute at @s[scores={DayQ=24..30}] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.max_health,Base:20}]}
execute at @s[scores={DayQ=31..}] run execute as @e[tag=K,type=spider,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.max_health,Base:22}]}

execute at @s[scores={DayQ=24..30}] run effect give @e[tag=K,type=spider,tag=!GKNameTag] minecraft:regeneration 3 2 true
execute at @s[scores={DayQ=31..}] run effect give @e[tag=K,type=spider,tag=!GKNameTag] instant_health 1 0 true

#creeper progression
execute at @s[scores={DayQ=1..2}] run execute as @e[type=creeper,tag=K,tag=!GKNameTag,tag=!NoFuseChange] run data merge entity @s {Fuse:28}
execute at @s[scores={DayQ=3..5}] run execute as @e[type=creeper,tag=K,tag=!GKNameTag,tag=!NoFuseChange] run data merge entity @s {Fuse:25}
execute at @s[scores={DayQ=4..}] run execute as @e[tag=K,type=creeper,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.movement_speed,Base:.30}]}
execute at @s[scores={DayQ=6..10}] run execute as @e[type=creeper,tag=K,tag=!GKNameTag,tag=!NoFuseChange] run data merge entity @s {Fuse:23}
execute at @s[scores={DayQ=7..}] run execute as @e[tag=K,type=creeper,tag=!GKNameTag] run data merge entity @s {Health:25f,Attributes:[{Name:generic.max_health,Base:25}]}
execute at @s[scores={DayQ=10..}] run execute as @e[tag=K,type=creeper,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.knockback_resistance,Base:.25}]}
execute at @s[scores={DayQ=12..}] run execute as @e[type=creeper,tag=K,tag=!GKNameTag,tag=!NoFuseChange] run data merge entity @s {Fuse:21}
execute at @s[scores={DayQ=13..},tag=HardMode] run execute as @e[tag=K,type=creeper,tag=!GKNameTag] run attribute @s minecraft:generic.movement_speed modifier add 1611-8043-1223111-5-1164 Speed10 .10 multiply
execute at @s[scores={DayQ=15..17},tag=HardMode] run execute as @e[type=creeper,tag=K,tag=!GKNameTag,tag=!NoFuseChange] run data merge entity @s {Fuse:18}
execute at @s[scores={DayQ=18..},tag=HardMode] run execute as @e[type=creeper,tag=K,tag=!GKNameTag,tag=!NoFuseChange] run data merge entity @s {Fuse:15}

execute at @s[scores={DayQ=17..}] run execute as @e[tag=K,type=creeper,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.knockback_resistance,Base:.5}]}
execute at @s[scores={DayQ=19..}] run execute as @e[type=creeper,tag=K,tag=!GKNameTag,tag=!NoFuseChange,tag=!NoExplodeChange] run data merge entity @s {ExplosionRadius:4}
execute at @s[scores={DayQ=20..}] run execute as @e[tag=K,type=creeper,tag=!GKNameTag] run data merge entity @s {Health:32f,Attributes:[{Name:generic.max_health,Base:32}]}
execute at @s[scores={DayQ=22..},tag=HardMode] run execute as @e[tag=K,type=creeper,tag=!GKNameTag] run data merge entity @s {Attributes:[{Name:generic.knockback_resistance,Base:.650}]}
execute at @s[scores={DayQ=25..},tag=HardMode] run execute as @e[type=creeper,tag=K,tag=!GKNameTag,tag=!NoFuseChange,tag=!NoExplodeChange] run data merge entity @s {ExplosionRadius:5}



execute at @e[tag=K,type=creeper] run scoreboard players add @e[distance=..4,type=creeper,tag=!NoMobMent] MobMent 1
execute at @e[type=creeper,scores={MobMent=4..}] run scoreboard players set @e[type=creeper,distance=..10,tag=!NoMobMent] MobMent 4
execute at @e[type=creeper,scores={MobMent=4..}] run scoreboard players set @e[type=creeper,distance=..10,tag=!NoMobMent] MobMent 4
execute as @e[scores={MobMent=4..},type=creeper,tag=!NoMobMent] run data merge entity @s {Fuse:0}
scoreboard players set @e[type=creeper] MobMent 0

scoreboard players set @e[type=spider] MobMent 0
tag @a remove NoSpiderMobMent
execute as @a[tag=K,gamemode=!spectator,tag=!NoSpiderMobMent] run execute at @s run function zzzzdonotuse:mobment/spiderscorefromplayer


execute as @e[type=spider,tag=BuffSpider] run function zzzzdonotuse:7sec/champspiders
execute as @e[type=cave_spider,tag=BuffSpider] run function zzzzdonotuse:7sec/champspiders




execute at @e[type=creeper] if block ~ ~-1 ~ netherrack run execute as @e[tag=!Frenzy2,distance=..1] run data merge entity @s[tag=!NoExplodeChange,tag=!NoFuseChange] {Fuse:15,ExplosionRadius:6}
execute at @e[tag=K,type=creeper] if block ~ ~-1 ~ soul_sand run execute as @e[tag=!Frenzy2,distance=..1] run data merge entity @s[tag=!NoExplodeChange,tag=!NoFuseChange] {ExplosionRadius:6,Fuse:15}