Spawner stack + bug

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

elpupper

Member
Mar 22, 2018
4
0
0
  1. on place:
  2. if "%event-block%" is "mob_spawner":
  3. loop all blocks in radius 1 of event-block:
  4. if "%loop-value%" is "mob_spawner":
  5. event-blocks is not loop-value
  6. delete event-blocks
  7. set {_holoid} to name of loop-value
  8. add 1 to {_holoid}
  9. name of loop-value is set:
  10. set {_name} to name of loop-value
  11. replace all "x" with "" in {_name}
  12. set {_name} to "%{_name}%" parsed as a number
  13. add 1 to {_name}
  14. #set name of loop-value to "&c&lx%{_name}%"
  15. #create hologram "&c&lx %{_name}%" at location above event-block for 200000 hours
  16. 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
 
Status
Not open for further replies.