Dragon Events

Dragon Events Tutorial

During Dragon game certain events will run while ender dragon still alive, they follow an order and have specific configurations.

Event Types:

  • DRAGON_FIREBALLS - Dragon will throw purple fireballs to all players

  • FIREBALLS - Dragon will throw classic fireballs to all players

  • LIGHTNING - Dragon will throw strikes to all players

  • GUARDIANS - Dragon Guardians (Custom mobs) will appear in the map

/plugins/TheDragon/events.yml
# ================================
#        Dragon Events      
# ================================
events:
  ancient_dragon:
    dragon-event-map:
      1:
        general-settings:
          event-type: DRAGON_FIREBALLS
          seconds-duration: 2
          keep-dragon-afk: false
          dragon-speed-amplifier: 0
          repeat-event-after-seconds: 5
        dragon-fireball-settings:
          dragon-fireballs-per-second: 3
        fire-balls-settings: null
        lightning-settings: null
        guardian-settings: null
      2:
        general-settings:
          event-type: FIREBALLS
          seconds-duration: 2
          keep-dragon-afk: false
          dragon-speed-amplifier: 0
          repeat-event-after-seconds: 5
        dragon-fireball-settings: null
        fire-balls-settings:
          fireballs-per-second: 3
          fireball-damage: 100.0
          show-particle: true
        lightning-settings: null
        guardian-settings: null
      3:
        general-settings:
          event-type: LIGHTNING
          seconds-duration: 2
          keep-dragon-afk: false
          dragon-speed-amplifier: 0
          repeat-event-after-seconds: 5
        dragon-fireball-settings: null
        fire-balls-settings: null
        lightning-settings:
          lightning-damage: 100.0
        guardian-settings: null
      4:
        general-settings:
          event-type: GUARDIANS
          seconds-duration: 10
          keep-dragon-afk: false
          dragon-speed-amplifier: 0
          repeat-event-after-seconds: 5
        dragon-fireball-settings: null
        fire-balls-settings: null
        lightning-settings: null
        guardian-settings:
          guardians:
          - id: epic_zombie
            chance: 100
            mythic-mob-level: 0
            is-from-mythic-mobs: false
          guardians-amount: 10
  • As you seen in the example file above, all events are configured per each dragon, and the number in the key "1", "2", "3" or "4" is the order that will follow (min to max) you can add as much event as you want.

All Events should have "general-settings"

general-settings:
    event-type: GUARDIANS #The Type of event that will ocur
    seconds-duration: 10 #The Amount of seconds that will last this event
    keep-dragon-afk: false #If its false the dragon will fly around map else it will be afk
    dragon-speed-amplifier: 0 #Speed amplifier for dragon velocity
    repeat-event-after-seconds: 5 #Amount of times that the event will happen during the "seconds-duration"

Events also should have specific settings depending of the type of event you setup.

  • GUARDIANS:

general-settings:
    event-type: GUARDIANS
    seconds-duration: 10
    keep-dragon-afk: false
    dragon-speed-amplifier: 0
    repeat-event-after-seconds: 5
guardian-settings:
    guardians:
    - id: epic_zombie #The id of the Guardian (Check Setting Up Guardians to know how to create guardians) 
      chance: 50 #The Chance of this guardian to appear
      mythic-mob-level: 0 #This is the level of the mob from mythic mobs (only if option below it's true)
      is-from-mythic-mobs: false #If the Guardian is a mob from MythicMobs
      guardians-amount: 10 #The amount of guardians that will appear
    - id: monster_zombie
      chance: 50
      mythic-mob-level: 0
      is-from-mythic-mobs: false
      guardians-amount: 10
  • FIREBALLS:

general-settings:
    event-type: FIREBALLS
    seconds-duration: 10
    keep-dragon-afk: false
    dragon-speed-amplifier: 0
    repeat-event-after-seconds: 5
fire-balls-settings:
    fireballs-per-second: 3 #The amount of fireballs that dragon will throw per sec
    fireball-damage: 100.0 #The amount of damage fireball will do
    show-particle: true #If particles will appear while dragon be throwing fireballs
  • DRAGON_FIREBALLS:

general-settings:
    event-type: DRAGON_FIREBALLS
    seconds-duration: 10
    keep-dragon-afk: false
    dragon-speed-amplifier: 0
    repeat-event-after-seconds: 5
dragon-fireball-settings:
    dragon-fireballs-per-second: 3 #The amount of fireballs that dragon will throw per sec
  • LIGHTNING:

general-settings:
    event-type: LIGHTNING
    seconds-duration: 10
    keep-dragon-afk: false
    dragon-speed-amplifier: 0
    repeat-event-after-seconds: 5
lightning-settings:
    lightning-damage: 100.0 #Amount of damage lightning will make

Last updated