"%event-region%" contains "warden"
loop all wardens:
add 1 to {_warden}
if {_warden} >= 1:
stop
else:
spawn a warden at {wardenspawn}
play sound "entity.ravager.roar" at volume 1 at pitch 2 at players
play sound "entity.wither.spawn" at volume 0.3 at pitch 2 at players
set {warden} to last spawned warden
set display name of {warden} to "&9&l&kR&f&x&1&8&8&7&f&b&lW&x&4&4&9&7&f&c&lA&x&7&1&a&8&f&d&lR&x&9&d&b&8&f&d&lD&x&c&a&c&9&f&e&lE&x&f&6&d&9&f&f&lN&kR"
apply health boost 70 to {warden} for 10 hours
heal {warden}
apply resistance 3 to {warden} for 10 hours
apply strength 2 to {warden} for 10 hours
add 1 to {wardencount}
on region exit:
"%event-region%" contains "warden"
loop all players:
if "%region at loop-player%" contains "warden":
add 1 to {_atspawn2}
if {_atspawn2} >= 1:
stop
else:
kill all wardens```
When i join to a region, the warden doenst appear
#my skript doenst work and idk why
1 messages · Page 1 of 1 (latest)
Whats the location of {wardenspawn}
could the problem be.... line 6? (there have to be 0 wardens on the entire server). if not make sure {wardenspawn} is set
Lines 2, 20, 22:"%event-region%" -> event-region You don't need quotes or percents here
Line 11: Make {warden} a temp var (you can use the same name, as you are done with the other tempvar from before, but you can also use a different name)