Damage Potion Effects 2.0.1

Introduce Potion Effects as a consecuence of Damage!

  1. OnyxianSoul
    Native Minecraft Version:
    1.17
    Tested Minecraft Versions:
    • 1.16
    • 1.17
    [​IMG]
    Ever wanted to add some more danger to minecraft mobs? Ever suspected Steve of being a cyborg when he just keeps running right after loosing 95% of his health from a fall?

    DamagePotionEffects to the rescue! Increse your server depth, add potion effects as consequences of damage!



    [​IMG]
    - Add unlimited potion effects as a consequence from damage
    - Define unlimited damage causes, with damage source, required damage, & affected entities
    - Define unlimited potion effects (Type, Intensity, Length, Particles...)
    - Plug And Play! : The plugin comes with a reasonable configuration, to get you started in the process of making your server awesome!

    [​IMG]
    This plugin has been tested and works without issues on Spigot & Paper, and it is likely to work on any server jar that is a fork of CraftBukkit.

    The plugin has been tested on 1.16 & 1.17, it is likely that it works on any server version, BUT, you might need to change the configuration on older versions, since some potion effects & entity types didn't exist in older versions and others were called differently.

    To my knowledge, this plugin doesn't conflict with any other plugins, and it's highly unlikely that it ever will.


    [​IMG]
    - Drop the plugin inside the plugin folder

    - Start the server

    - Configure the plugin to your wish, adding your own awesome effects, or tweaking/removing existing ones.

    - Profit ;D

    Code (YAML):

    #Hey there, welcome to the config of DamagePotionEffects, please configure it to your hearts content :)!
    #-------------------------------------------------------------------------------------------------------------------------------------------------------------
    #If you get any errors or something doesn't work as expected, please check the console and please make sure there aren't any problems with the yaml formatting
    #You can check YAML formatting with this page https://yaml-online-parser.appspot.com/
    #If the plugin is still acting up, please reach out at the plugin discussion and I'll give you a hand :)
    #${project.url}
    #-------------------------------------------------------------------------------------------------------------------------------------------------------------

    #This is how to use the config:
      #On the file "Potion Effects.yml" you define potion effects. (ie: Slow, of duration of 100 ticks, without particles)
      #On the file "Damage Triggers.yml" you define damage triggers (ie: what type of damage will cause a reaction, the amount of damage required, the mobs that will suffer the reaction etc).
      #Then, on the "damage reactions" section you just define which triggers should apply which effects.

    #The list of the reactions ( = what triggers should cause what effect). You can create as many as you like.
    #To disable one, just delete it or add a # in front of each line that defines it.
    damage reactions
    :
     #The name of the reaction. It can be anything you want.
      Projectile Slow
    :
       #The list of the valid causes that will trigger it (using their name from the Damage Triggers.yml)
        damage triggers
    : Projectile Hit
        #The list of the effects that will be applied once its triggered. (using their name from the Potion Effects.yml)
        potion effects
    : [Short Intense Slow,Long Mild Slow]
     
      Fall Shock 1
    :
        damage triggers
    : Mild Fall
        potion effects
    : Short Mild Slow
     
      Fall Shock 2
    :
        damage triggers
    : Intense Fall
        potion effects
    : [Short Intense Slow,Long Mild Slow]
     
      Fall Shock 3
    :
        damage triggers
    : Severe Fall
        potion effects
    : [Paralizing Slow, Grounding]
     
      High Damage Bloodloss
    :
        damage triggers
    : High Damage Shock
        potion effects
    : [Long Mild Slow,Short Intense Slow,Long Intense Nausea]
     
      Explosion confusion 1
    :
        damage triggers
    : Mild Explosion
        potion effects
    : Short Mild Nausea
     
      Explosion confusion 2
    :
        damage triggers
    : Severe Explosion
        potion effects
    : Long Intense Nausea

      Spider Venom
    :
        damage triggers
    : Spider Bite
        potion effects
    : Short Mild Poison

      Zombie Infection
    :
        damage triggers
    : Zombie Scratch
        potion effects
    : [Short Mild Wither,Short Mild Slow]
     
      SpiderMan
    :
        damage triggers
    : Cave Spider Bite
        potion effects
    : [Short Intense Jump Boost,Short Mild Glowing]
     
      Jellyfication
    :
        damage triggers
    : Jelly Attack
        potion effects
    : [Short Intense Jump Boost,Short Mild Poison]

      Cubification
    :
        damage triggers
    : MagmaCube Attack
        potion effects
    : [Short Intense Jump Boost,Short Mild Fire Resistance]

      Frenzy of the Nether Zombie
    :
        damage triggers
    : Damaged Pigzombie
        potion effects
    : [Short Intense Strength,Short Intense Swiftness,Short Mild Glowing]

      Adrenaline
    :
        damage triggers
    : Slightly Combat Damaged Player
        potion effects
    : [Short Mild Swiftness,Short Mild Strength]

      Villager Panic
    :
        damage triggers
    : Damaged Villager
        potion effects
    : Short Intense Swiftness With Particles

      Hot Floor Motivation
    :
        damage triggers
    : Hot Feet
        potion effects
    : [Short Intense Jump Boost, Short Mild Swiftness]
     
      Cover of the Void
    :
        damage triggers
    : Damaged Enderman
        potion effects
    : Short Invisibility
     

    #Should bStats remain enabled? bStats sends annonymous data about the server, helping us feel motivated and make more informed decisions about the plugin's future. You can find all the information collected here : https://bstats.org/plugin/bukkit/DamagePotionEffects/10197
    bStats
    : true

    #Should the plugin should send extended console messages? Intended mostly for developer use.
    debug
    : false
     

    Code (YAML):

    #The full list of up to date damage causes:
    #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
    #The full up to date list of entity types:
    #https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html

    #All the damage triggers that can cause potion effects to be applied. You can define as many as you'd like.
    damage triggers
    :

      #The name of this trigger. It can be anything you want.
      Spider Bite
    :
        damage required
    : 1
        #The types of damage that can generate a potion effect reaction
        damage causes
    : Entity_attack
        #The type of entity that needs to have dealt the damage in order to trigger an effect.
          #In most cases, its an invalid setting.
          #On "Entity_attack" damage cause (AKA direct attacks, such as punchs), it means the mob who attacked, ie: zombie
          #On "Projectile" damage cause, it means the projectile type, ie: arrow
        attacker entities
    : Spider
        #The type of entity that needs to have suffered the damage in order to trigger an effect.
        affected entities
    : Any

      High Damage Shock
    :
        damage required
    : 16
        damage causes
    : Any
        affected entities
    : Any

      Projectile Hit
    :
        damage required
    : 2
        damage causes
    :
       - Projectile
        affected entities
    : Any

      Mild Fall
    :
        damage required
    : 0
        affected entities
    : Player
        damage causes
    : Fall
     
      Intense Fall
    :
        default from
    : Mild Fall
        damage required
    : 10

      Severe Fall
    :
        default from
    : Mild Fall
        damage required
    : 17
     
      Mild Explosion
    :
        damage required
    : 0
        affected entities
    : Any
        damage causes
    : [Entity_Explosion,Block_explosion]
     
      Severe Explosion
    :
        default form
    : Mild Explosion
        damage required
    : 16

      Cave Spider Bite
    :
        damage required
    : 1
        attacker entities
    : cave_spider
        affected entities
    : Player
     
      Zombie Scratch
    :
        damage required
    : 1
        attacker entities
    : Zombie
        affected entities
    : Player

      Jelly Attack
    :
        damage required
    : 1
        damage causes
    : Entity_attack
        attacker entities
    : Slime
     
      MagmaCube Attack
    :
        default from
    : Jelly Attack
        attacker entities
    : Magma_Cube

      Damaged Pigzombie
    :
        damage required
    : 0
        damage causes
    : ANY
        affected entities
    : zombified_piglin

      Slightly Combat Damaged Player
    :
        damage causes
    : [Entity_attack,Entity_sweep_attack,Entity_Explosion,Projectile,Thorns,Dragon_Breath]
        damage required
    : 4
        affected entities
    : Player

      Damaged Villager
    :
        damage required
    : 0
        damage causes
    : ANY
        affected entities
    : Villager

      Damaged Enderman
    :
        affected entities
    : Enderman
        damage required
    : 1

     

    Code (YAML):

    #Full up to date list of all the potion effect types.
    #https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html

    #The potion effects that can be applied to damage events. You can define as many as you'd like.
    potion effects
    :
     #The name of this trigger. It can be anything you want.
      Short Mild Slow
    :
       #The type of potion effect.
        effect type
    : slow
        #The level of the effect (for example, speed 3 makes you run faster than speed 1)
        intensity
    : 1
        #How long the effect should last (in ticks). There are 20 ticks per second if the server isn't lagging. So you should calculate how many seconds you want the effect to last and multiply that number by 20
        duration
    : 60
        #Whether the effect should also apply the potion particles or not (if skipped from the config it will default to false).
        show particles
    : true
        #Whether the particles should be a bit more transparent (if skipped from the config it will default to false).
        transparent particles
    : false
        #All this parameters have default values which will apply if you don't specify one of the lines. This are: Intensity = 1, Duration = 60, showParticles= false, transparentParticles = false.

      Long Mild Slow
    :
        default from
    : Short Mild Slow
        duration
    : 100

      Short Intense Slow
    :
        default from
    : Short Mild Slow
        intensity
    : 3

      Short Mild Nausea
    :
        effect type
    : confusion
        intensity
    : 2
        duration
    : 120
     
      Long Intense Nausea
    :
        effect type
    : confusion
        intensity
    : 3
        duration
    : 220
     
      Paralizing Slow
    :
        effect type
    : slow
        intensity
    : 100
        duration
    : 60
     
      Grounding
    :
        effect type
    : levitation
        intensity
    : -100
        duration
    : 60

      Short Mild Poison
    :
        effect type
    : poison
        intensity
    : 1
        duration
    : 60

      Short Intense Jump Boost
    :
        effect type
    : jump
        intensity
    : 2
        duration
    : 60
     
      Short Mild Glowing
    :
        effect type
    : glowing
        intensity
    : 1
        duration
    : 80
        show particles
    : true
     
      Short Mild Wither
    :
        intensity
    : 1
        #Wither 1 does 1 half heart of damage every 20ticks
        duration
    : 60
        effect type
    : wither

      Short Mild Fire Resistance
    :
        effect type
    : fire_resistance
        intensity
    : 1
        duration
    : 60
        show particles
    : true

      Short Mild Strength
    :
        effect type
    : increase_damage
        intensity
    : 1
        duration
    : 80
        show particles
    : true
     
      Short Mild Swiftness
    :
        effect type
    : speed
        intensity
    : 1
        duration
    : 80
        show particles
    : false

      Short Intense Strength
    :
        default from
    : Short Mild Strength
        intensity
    : 2
     
      Short Intense Swiftness
    :
        default from
    : Short Mild Swiftness
        intensity
    : 2

      Short Intense Swiftness With Particles
    :
        default from
    : Short Intense Swiftness
        show particles
    : true
     
      Short Invisibility
    :
        effect type
    : invisibility
        intensity
    : 1
        duration
    : 60
     

    [​IMG]

    Need help, found a bug or have suggestions?
    Reach out on the plugin discussion I'd be happy to help!

    [​IMG]
    Click on the logos to go the plugin discussion! :)


    About to leave a review? Awesome :love: ! Feedback really helps!
    It lets me know what I did well, and what I need to do better.

    But Please, Report bugs & Ask for features in the discussion, NOT on plugin reviews
    There, it is possible to :
    Insert images and formatting in the answer, making it easier to understand
    Ask for additional information that might be necessary to help you out
    Make the answer permanently available to anyone who might encounter the same problem

    [​IMG]
    By downloading the plugin, you agree to this terms of usage:
    • You are granted permission to use the plugin in any of your servers.
    • You are granted permission to decompile & modify the plugin to adapt it to your servers
    • You are forbidden from redistributing this plugin or any part of it, incluiding code obtained via decompilation of this plugin.
    • You are forbidden from claiming this plugin as your own.
    • This Plugin uses bStats in order to provide anonymous usage information, helping me stay motivated, and make more informed decisions (for example whether or not to mantain support for a server version). You can disable it via the plugin config, if you desire.
    • I reserve all rights to the Headers, Logo, and Plugin Icon . You are forbidden from using them without my permission.
    • The plugin is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software

Recent Updates

  1. About 1.18
  2. Updated to 1.17!
  3. Java 16 & News about 1.17

Recent Reviews

  1. Gustavo_Player
    Gustavo_Player
    5/5,
    Version: 2.0.1
    THIS PLUGIN IS AMAZING, PLEASE KEEP UPDATING IT! :3
  2. Rban
    Rban
    5/5,
    Version: 1.0.1
    Great Plugin I Downloaded it today and its great has no issues and thats all i got to say.
    1. OnyxianSoul
      Author's Response
      Thanks a lot for the review! I'm glad you like it :)