- on place:
- if "%event-block%" is "mob_spawner":
- loop all blocks in radius 1 of event-block:
- if "%loop-value%" is "mob_spawner":
- event-blocks is not loop-value
- delete event-blocks
- set {_holoid} to name of loop-value
- add 1 to {_holoid}
- name of loop-value is set:
- set {_name} to name of loop-value
- replace all "x" with "" in {_name}
- set {_name} to "%{_name}%" parsed as a number
- add 1 to {_name}
- #set name of loop-value to "&c&lx%{_name}%"
- #create hologram "&c&lx %{_name}%" at location above event-block for 200000 hours
- execute console command "summon armor_stand ~ ~0.5 ~ {CustomName:""&c&lx test"",Invulnerable:1,NoGravity:1,Invisible:1,CustomNameVisible:1}"
What I'm trying to get here is to be able to set a hologram above the mob_spawner to display how many spawners are there. I've been searching for tons of things online but can't find anything that will help me. There are no errors in this code but, whenever I brake the spawner there is an invisible pig spawner and if i placed a different type of spawner next to a spawner it will be invisible. For example: Skeleton spawner placed then Iron golem spawner placed, the iron golem spawner will disappear yet still spawn iron golems.
I have the following addons:
Skrayfall
SkQuery
Skellet
SkUtilities