Hello everyone, so i am trying to create a stackedspawners skript but it hasn't been goining pretty good.
I'll show you the code and some images in-game, i get no errors upon loading.
(I have not made the on break yet)
But i was testing on placing down the spawners and then this happend:
Its supposed to stack any spawners that get placed down around a spawner in radius of 3? Could anyone fix this and help me get started?
I'll show you the code and some images in-game, i get no errors upon loading.
code_language.skript:
on place of mob spawner:
if name of player's tool is "&eBlaze &fSpawner":
loop all blocks in radius 3 around event-block:
if {loc.%loop-block%.spawner.blaze} is true:
cancel event
add 1 to {loc.%loop-block%.amount.blaze}
delete holo object "%location of loop-block%"
create holo object "&6&lBlaze Spawner &7(%{loc.%loop-block%.amount.blaze}%x)" with id "%location of loop-block%" at block above loop-block
stop
else:
set {loc.%event-block%.spawner.blaze} to true
set {loc.%event-block%.amount.blaze} to 1
create holo object "&6&lBlaze Spawner &7(%{loc.%event-block%.amount.blaze}%x)" with id "%location of event-block%" at block above event-block
stop
on break of mob spawner:
delete {loc.%event-block%.spawner.blaze}
delete {loc.%event-block%.amount.blaze}
delete holo object "%location of event-block%"
But i was testing on placing down the spawners and then this happend:
Its supposed to stack any spawners that get placed down around a spawner in radius of 3? Could anyone fix this and help me get started?