
execute if score @s ultris_illusioner matches 1001 run data merge entity @s {NoAI:1b}

execute if score @s ultris_illusioner matches 1001 at @s run tp @s ~ ~ ~ ~ -45
execute if score @s ultris_illusioner matches 1001 run particle minecraft:poof ~ ~1.2 ~ .4 .7 .4 .08 27 force @a[distance=..64]

execute if score @s ultris_illusioner matches 1001 run playsound minecraft:entity.illusioner.cast_spell ambient @a[distance=..20] ~ ~ ~ 1 .5



execute if score @s ultris_illusioner matches 1010 run playsound entity.villager.work_librarian hostile @a[distance=..20] ~ ~ ~ 1 .8

execute if score 5tick ultris_clock matches 1 if score @s ultris_illusioner matches 1010..1999 positioned ~ ~1 ~ run function 1_splatus:ultris/illusioner/book/summon


execute if score @s ultris_illusioner matches 1050.. run scoreboard players set @s ultris_illusioner 100
