Skip to content

API Additions & Config Changes

Compare
Choose a tag to compare
@2008Choco 2008Choco released this 01 Feb 22:07
· 357 commits to master since this release

Overview

Now that I'm satisfied with the equations, I've decided to take a break from that and work on some API changes that I intended on creating for those that wish to listen for specific instances of the dragon respawn implementation. Of course, I have also received tons of feedback from you all using the plugin, and I've been listening! Feature requests, bug reports, and plenty more! I'm loving the support I've gotten for taking over this project, and I don't regret it for a second! I appreciate it more than anything, so please do keep up the bug reports and feature requests ❤️

This is a rather small release, but that's alright because you don't need large releases to benefit the community! I hope you all enjoy this update, especially developers

Changelog

  • Separated the "respawn" configuration value into "respawn-on-join" and "respawn-on-death" (You will have to add these to your configuration file manually). See below for the new configuration file
  • Fixed the "chest-spawn-chance" configuration value having 1 / 100th of its configured value
  • API: Added a new "BattleState" enum containing the various states of the Ender Dragon battle
  • API: Added a new BattleStateChangeEvent to allow developers to listen for various state changes during the Ender Dragon battle
  • API: Added a #getEnderDragonBattle(Object) method to the NMSAbstract interface to get the Ender Dragon associated with a specific EnderDragonBattle object.

New Configuration File Options:

Particles:
    egg-start-y: 180.0
    type: 'FLAME'
    amount: 4
    extra: 0
    x-offset: 0.001
    y-offset: 0.001
    z-offset: 0.001
    speed-multiplier: 1
    stream-count: 6
    interval: 1
    Advanced:
        preset-shape: 'OPEN_END_HELIX'
        x-coord-expression: 'cos(theta)'
        z-coord-expression: 'sin(theta)'

lightning-amount: 4
drop-type: egg

chest-spawn-chance: 20
loot-chest-title: 'Loot Chest'
min-loot: 2
max-loot: 6

egg-name: ''
egg-lore: []

respawn-on-join: false
join-respawn-delay: 60

respawn-on-death: true
death-respawn-delay: 300

announce-respawn: true
announce-color-one: '&6'
announce-color-two: '&e'

dragon-names:
- '&aEndy'
- '&bFalcor'
- '&cHaiku'
- "&dMylanth"
- "&eKelarth"
- "&1Mnerolth the Insane"
- "&2Verioth the Chosen"
- "&3Barroth the Gentle"
- "&4Bassilith, Lord of Ice"
- "&5Inilth, Lord of Fire"
- "&6Nveryioth, Lord of Light"
- "&8Tilenth, Lord of Death"