#How can I respawn the ender dragon with skript.

1 messages · Page 1 of 1 (latest)

quasi socket
#

So we want to respawn the ender dragon every 3 hours. How could I respawn the ender dragon to use the bossbar as well? We tried summoning in the end crystals but that doesn't work

chrome acorn
#
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}

quasi socket
#

Should the initiateRespawn() be indented?

chrome acorn
#

woops that supposed to be a dot

#

just edited it

quasi socket
#

K ty

quasi socket
# chrome acorn woops that supposed to be a dot

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

chrome acorn
#

can you remove the try from my code then run your command again and see if anything shows in console

quasi socket
chrome acorn
#

nothing in console?

#

are you in the end when running the command?

quasi socket
#

yep

quasi socket
chrome acorn
#

hmm

#

try this

#
effect respawn [ender] dragon in %worlds%:
  trigger:
    loop exprs-1:
      set {_battle} to loop-value.getEnderDragonBattle()
      {_battle}.resetCrystals()
      {_battle}.initiateRespawn()
quasi socket
#

I'm still getting something happened

#

and no error

chrome acorn
#

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

quasi socket
#

and do I put the egg at the top?

#

it works