#How can I respawn the ender dragon with skript.
1 messages · Page 1 of 1 (latest)
effect respawn [ender] dragon in %worlds%:
trigger:
loop exprs-1:
try loop-value.getEnderDragonBattle().initiateRespawn()
requires skript-reflect
then u can do respawn dragon in {_world}
Oh thanks so much!
Should the initiateRespawn() be indented?
K ty
yo so I made a command to test it vb command /testrespawn: trigger: respawn ender dragon in world send "something happened" to player and it sends something happened but doesn't respawn the dragon
can you remove the try from my code then run your command again and see if anything shows in console
so i updated the code to ```vb
effect respawn [ender] dragon in %worlds%:
trigger:
loop exprs-1:
loop-value.getEnderDragonBattle().initiateRespawn()
command /testrespawn:
trigger:
respawn ender dragon in world
send "something happened" to player``` (i removed the try) but no errors and nothing happens
yep
hmm
try this
effect respawn [ender] dragon in %worlds%:
trigger:
loop exprs-1:
set {_battle} to loop-value.getEnderDragonBattle()
{_battle}.resetCrystals()
{_battle}.initiateRespawn()
still not working
I'm still getting something happened
and no error
hmmm according to this thread you need to set the blocks around the portal to crystals and a dragon egg firsg
near the bottom of the thread
u could try that
the 4 needed to regularly respawn?
and do I put the egg at the top?
it works