summon item_display ~ ~ ~ {Passengers:[{id:"minecraft:slime",HandItems:[{},{id:"minecraft:totem_of_undying",Count:1b,tag:{CustomModelData:8360000}}],Tags:["nucleus.entity","manic.entity","manic.tick","manic.keeper","manic.keeper.slime","smithed.entity","nucleus.hostile","nucleus.smite_damage","nucleus.smite_damage.reduced","sanguine.claw_trap_immune.speed"],Health:1000f,Attributes:[{Name:generic.max_health,Base:1000}],active_effects:[{id:"minecraft:invisibility",amplifier:0b,duration:-1,show_particles:0b},{id:"minecraft:fire_resistance",amplifier:0b,duration:-1,show_particles:0b},{id:"minecraft:water_breathing",amplifier:0b,duration:-1,show_particles:0b}],Silent:1b,NoAI:1b,Size:8,CustomName:'{"translate":"entity.manic.keeper"}',PersistenceRequired:1b}],item:{id:"minecraft:stone",Count:1b},Marker:1b,Invisible:1b,Tags:["nucleus.entity","nucleus.display_entity","manic.entity","manic.tick","manic.second_clock","manic.keeper","manic.keeper.display","manic.keeper.invulnerable","manic.keeper.spawning","smithed.entity","smithed.strict"],item:{id:"minecraft:leather_boots",Count:1b,tag:{CustomModelData:8360024,Damage:46}},CustomName:'{"translate":"entity.manic.keeper"}',teleport_duration:1.15}
execute as @e[type=minecraft:item_display,tag=manic.keeper,sort=nearest,limit=1] at @s run function manic:entity/keeper/spawn/as_display
playsound manic:entity.keeper.awaken hostile @a[distance=..32] ~ ~ ~ 2

bossbar set manic:keeper value 8000
bossbar set manic:keeper players @a[distance=..48]
