BetterDragon: Counter Attacks icon

BetterDragon: Counter Attacks -----

Handle dragon respawn, abilities, statue and more.




Now you can full modify the abilities and create new ones!

Example:

Code (Text):
abilities:
  lightning:
    chance: 0.3
    super_lightning: true
    msg_to_player: "&5Dragon: &7You cant against my power"
    #commands:
    #- maybe a espetacular command?
  dodge:
    chance: 1.0
    msg_to_player: "&5Dragon: &7You failed, you are worth nothing"
    block_damage: true
    sounds:
    - ITEM_SHIELD_BLOCK
  impulse:
    chance: 0.3
    msg_to_player: "&5Dragon: &7Agggggrhh"
    knockback_power: 3
    damage_player: 10
    sounds:
    - ENTITY_ENDER_DRAGON_GROWL
    - ENTITY_PLAYER_ATTACK_SWEEP
  explosion:
    chance: 0.3
    msg_to_player: "&5Dragon: &7Dieeeeee!!"
    make_explosion: true
    sounds:
    - ENTITY_ENDER_DRAGON_GROWL
  ender_attack:
    chance: 0.15
    msg_to_player: "&5Dragon: &7Attack endermans!!"
    ender_attack: true
    sounds:
    - ENTITY_ENDER_DRAGON_GROWL
    effects:
    - BLINDNESS:60:0
  custom1: # Why not create your own ability?
    # You can add any config type here only chance is required
    chance: 0.0
    msg_to_player: "&5Dragon: &7Custom message"
    commands:
    - eco add %player% 1
    - give %player% arrow 1
    #-any awesome command
    sounds:
    - ENTITY_ENDER_DRAGON_GROWL
    block_damage: true
    knockback_power: 3
    damage_player: 10
    create_explosion: true
    super_lightning: true
    ender_attack: true
    effects:
     - NAUSEA:60:0
----------, Dec 12, 2024

A full re-build of the plugin has been made. Updated to 1.21.

Now it has better performance and smoother options.

Some commands and permissions have changed. Please see the homepage to view the new config.

Citizens and SendToDiscord are no longer supported for now.They will be added soon.
The schedule options by days have been temporarily removed.
The statue is now linked to the dragon killer.
Each skill has been slightly improved.

I can share the source code of this version.
A new Discord support server has been added.

Please, if you have some ideas or troubles, contact us.
----------, Oct 18, 2024

Fixed the errors about hardcore mode and bossbar.

The hardcore mode is now more customizable

Code (Text):

hardcore_mode:
  enable: true
  at_percentage: 20.0 #At what percentage of life the dragon will activate its fury
  title: "&5Hardcore! The dragon is fury!"
  spawn_endermans: true
  strike_lightning: true
  launck_fireball: true
  launck_dragon_fireball: true
 
----------, Jan 11, 2022

Added a new option to multiply all the damage that the dragon does.
Added a new option do show the percentage of life of dragon in the bossbar

Added a new hardcore mode.

Please backup and reset your config of update it, you can see it on the main post.
----------, Dec 31, 2021

Added a schedule modes. Now you can change how dragon will spawn. By a cooldown or by days.

The respawn config on your config.yml should be like this. Please update or reset it.

Code (Text):
#Enable the respawn of the dragon
respawn:
  enable: true
#Change chedule mode, between cooldown and custom
schedule:
  mode: cooldown
cooldown:
  time: 86400  # In seconds: 86400 = 1 Day
custom:
  friday:
    time: 20:00:00
  #saturday:
    #time: 21:00:00
* Changed the way abount how te plugin read the respawn location, You must setup it again.
* Fixed a issue about nullpointerexception at EntityDeathEvent
----------, Oct 29, 2021

Added a new debug command /dragon debug
Fixed a issue about cooldown placeholder

Added a new boolean options:
* disable_endcrystal_onbedrock: true

Removed the old one to disable end crystals in worlds
So, the msg was changed to "&cYou cant place end crystal on bedrock."
----------, Oct 2, 2021

This plugin has been moved to a Maven proyect.
Added support for citizens and added a new command /dragon npc. It is linked, to the dragon slayer
----------, Sep 17, 2021

Fixed a small console and leadeboard issue
----------, Sep 15, 2021

* Now the impulse hability cause damage to the player
* Improve the lightning and dodge hability

Added a new option to multiply all the damage that the dragon does

dragon:
name: "& 5Ender Dragon"
health: 400.0
dmg_multiply: 3 # 1 to disable
----------, Sep 15, 2021

Fixed a lag issue about PlayerMoveEvent relative to the dynamic bossbar
----------, Sep 13, 2021

* Fixed a null pointer exception with leadeboards
* Fixed the betterdragon aliase for the dragon command
----------, Jun 15, 2021

Fixed a issue about leaderboard configs
Now the console can spawn the dragon
----------, Jun 11, 2021

I uploaded the previous file wrong, sorry.
----------, May 29, 2021

Now the placeholdersfor for the top are:

%dragon_top_1% to %dragon_top_20%

You can modifiy how it looks like.
You config should be automatically updated.

leaderboard:
prefix: '&c'
suffix: ' &7kills'
separator: ' &7> &e'
----------, May 29, 2021

Fixed a wrong message.
----------, May 29, 2021

Added an option to disable the bossbar when you are too far of the dragon:

max_distance_to_show_bossbar: 255 (Default)
* You config shuould be automatically update now.

Added the others top placeholders
You can use the top 1 to the top 20

Please if you have issues, join to discord. If you like this plugin, leave a positive review (thanks)
----------, May 29, 2021

Added a new ability: Ender attack
Added an option the change the color of the BossBar Possible colors
Added discord integracion, see the main post

So many code changes, if you found a bug please report it on discord, thanks.

Please, restart or edit your config

Code (Text):
options:
  bossbar_color: GREEN # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarColor.html
  namevisible: true

...

abilities:
  counter_attacks:
    lightning:
      chance: 0.30
      msg: "&5Dragon: &7You cant against my power"
    dodge:
      chance: 0.30
      msg: "&5Dragon: &7You failed, your arrows are worth nothing"
    impulse:
      chance: 0.30
      msg: "&5Dragon: &7Agggggrhh"
    explosion:
      chance: 0.30
      msg: "&5Dragon: &7Dieeeeee!!"
    ender_attack:
      chance: 0.15
      msg: "&5Dragon: &7Attack endermans!!"
      radius: 20
----------, May 24, 2021

There are a two new options

dragon_damage_enderman: false
enderman_target_dragon: false

if you don't add it to the config, the default values will be loaded, false in this cases
----------, May 11, 2021

Fixed an issue about the dodge ability

* Check you config and remove the "d" from dodged
----------, May 6, 2021

  • The plugin has now a new reward system, please, modify your config or reset it.
Code (Text):
drops:
  egg: 0.15 #chance to drop = 15%
  head: 0.15
rewards:
  1:
    chance: 1.0
    text: "" # Message to broadcast
    drops:
    - ENDER_EYE
    - BONE
    commands:
    - eco give %player% 100
    - give %player% diamond 4
  2:
    chance: 0.50 #Example: 50%
    text: ""
    drops:
    - BONE
    commands:
    - eco give %player% 100
    - give %player% emerald 4
  3:
    chance: 0.0
    text: "Example: 0%"
    drops:
    - DIAMOND
  • Fixed some errores and many code changes
  • Removed the command /dragon placeholders
  • Added tabcompleter for the commands
  • Added bStats
  • Added a new check if the chunk of the respawnlocation is loaded
----------, Apr 9, 2021

* Added a new message when you use /dragon setstatue
* Changed the messages when you use /dragon reload and /dragon setspawn

Important

* The respawn location was moved to data.yml instead of config.yml. This allow us no need to restart the server when you use/change the /dragon setspawn or edit the config.

So add it to your data.yml or remove/restart your data file and set again the spawn location.

Code (Text):

dragonskiller: none
dragon_id:
deathtime: 0
respawn:
  location:
    world: world_the_end
    x: 0
    y: 100
    z: 0
 
----------, Feb 15, 2021

Added a kill dragon count

So, new placeholderes

%dragon_kills%

and.. for the moment, just the top 1

%dragon_top_name_1%
%dragon_tp`_value_1%

No config changes, the data will be saved in data.yml
----------, Feb 13, 2021

* Fixed a issue about double bossbar in the first running of the plugin

* Added a replacement of the placeholders for when the dragon was alive (showing the time in negative) %dragon_cooldown%

You must edit your config.yml - Options path

Code (Text):

options:
  namevisible: true
  # Can players place end crystal to respawn dragon?
  endcrystal:
    disable_worlds:
    - world_the_end
  # variable of time %t: Example: "%h hours %m min and %s seconds."
  placeholders:
    timeformat: "%hhs %mmin and %sseg.."
    no_dragon_last: "&fNo dragon was killed"
    negative_dragon_cooldown: "&fThe dragon is alive"
 
----------, Nov 27, 2020

Important:

A new file has been created to save data, which allows fixing certain errors, therefore the configuration by default has been modified, you must reset it, make a backup, delete the config.yml and restart your server


* Added a new temporary feature to add a drop items with chance
* Added a new boolean option to disable the automatic respawn
----------, Nov 25, 2020

The dragon could now be spawned in the overworld with no errors, please notice me if you found something.

* Added a new command /dragon tp, to go to a live dragon

The chance for drops will be added this weekend
----------, Nov 20, 2020

Fixed another issue about double bossbar

* Added the id of the dragon - you should not change it
* Added drop options to the rewards

Important

You must edit the config

The rewards path have to be:

Code (Text):

rewards:
  drop:
    egg: 0.15 #chance to drop
    head: 0.15
    items:
    - BONE
    - ENDER_EYE
  # - another items
  commands:
    forced:
    - experience add %player% 10 levels
  # - another forced commands
    randoms:
    - eco give %player% 1000
  # - another random commands
[/COLOR]
 

Remember that you can see the default config on the main post

If you have any problems or error, please contact me on discord
----------, Nov 18, 2020

Updated to spigot 1.16.4

Fixed a double bossbar when the dragon spawns for natural or ender cyrstal reasons
----------, Nov 10, 2020

Atention: You must modify your config.

Forced Rewards Commands Added

The rewards section has to be:

Code (Text):
rewards:
  drop:
    egg: 0.15
    head: 0.15
  commands:
    forced:
    - experience add %player% 10 levels
    randoms:
    - eco give %player% 1000
  # - another random commands[/COLOR]
 
----------, Aug 6, 2020

Removed that the config was getting saved on disable or shutdown the server, please note that reload the plugin with plugman can break it.

Added a Statue as Custom Armor Stand, this is not linked with the dragon killer, are just to decoration, maybe it can be added in the future.

Using /dragon setstatue

This is a the default config example whit PlaceHolder Api, it can be very customizable.

[​IMG]

Important: To udpdate the config you need reset or:
  • Stop the server
  • Add the new paths
  • Startup again
Code (Text):

statue:
  baseplate: false
  gravity: false
  small: false
  customname: false
  name: "Name"
  chestplate: DIAMOND_CHESTPLATE
  boots: DIAMOND_BOOTS
  leggings: DIAMOND_LEGGINGS
  mainhand: DIAMOND_SWORD
  offhand: DRAGON_HEAD
  # You can get the textures from here https://minecraft-heads.com/custom-heads
  head_texture: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzlmZGI0MzRiZjFlN2Y2NzNjNzk1MWFlNGM5NDAyOGRlMzZkY2E3N2ZiODkzMTUwOGIwOGM0NmE2ZGNhMGY2YiJ9fX0="
  # To create more custom ArmorStand o modify this one, use https://haselkern.com/Minecraft-ArmorStand/
  leftarm:
    x: 278
    y: 338
    z: 0
  rightarm:
    x: 290
    y: 338
    z: 100
  rightleg:
    x: 10
    y: 0
    z: 10
  leftleg:
    x: 338
    y: 0
    z: 345
  head:
    x: 10
    y: 350
    z: 0

 
----------, Aug 3, 2020

Fixed a bug relative to the config.


Please if you have any error contact me on discord
----------, Jul 31, 2020

Resource Information
Author:
----------
Total Downloads: 86
First Release: Jul 30, 2020
Last Update: Dec 12, 2024
Category: ---------------
All-Time Rating:
7 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings