#
# 		Data pack by IJAMinecraft
# 		@ ijaminecraft.com
# 		@ youtube.com/user/IJAMinecraft
#


execute as @s[scores={ija-a004xb=1..146}] at @s align xz positioned ~0.5 ~ ~0.5 run summon minecraft:silverfish ~ ~2 ~ 

execute as @s[scores={ija-a004xb=147..292}] at @s align xz positioned ~0.5 ~ ~0.5 run summon minecraft:cave_spider ~ ~2 ~ 

execute as @s[scores={ija-a004xb=293..438}] at @s align xz positioned ~0.5 ~ ~0.5 run summon minecraft:vex ~ ~2 ~ 

execute as @s[scores={ija-a004xb=439..585}] at @s align xz positioned ~0.5 ~ ~0.5 run summon minecraft:skeleton_horse ~ ~2 ~ 

execute as @s[scores={ija-a004xb=586..731}] at @s align xz positioned ~0.5 ~ ~0.5 run summon minecraft:skeleton ~ ~2 ~ {HandItems:[{id:"minecraft:bow",Count:1},{}],ArmorItems:[{},{},{},{id:"minecraft:leather_helmet",Count:1}]}

execute as @s[scores={ija-a004xb=732..877}] at @s align xz positioned ~0.5 ~ ~0.5 run summon minecraft:phantom ~ ~2 ~ {ActiveEffects:[{Id:12,Amplifier:0,Duration:2147483647}]}

execute as @s[scores={ija-a004xb=878..1024}] at @s align xz positioned ~0.5 ~ ~0.5 run summon minecraft:zombie_horse ~ ~2 ~ 

scoreboard players set @s ija-a004xb 0