DragonEggRespawn

DragonEggRespawn

This plugin enables the spawning of multiple dragon eggs. Each time an enderdragon is killed, the DragonEggFormEvent is triggered without getting canceled.

The source code

@EventHandler
    public void onDragonEggForm(EnderDragonChangePhaseEvent e) {
        DragonBattle db = e.getEntity().getDragonBattle();
        if(db == null)
            return;
        db.setPreviouslyKilled(false);
    }

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    984609
  • Created
    Mar 8, 2024
  • Last Released File
    Mar 8, 2024
  • Total Downloads
    277
  • License

Categories

Members