Potion Fix
Do you own a PVP server and absolutely hate the 1.6 update because of how overpowered strength potions are? Thinking you might need to completely get rid of the strength effect in your server so it doesn't turn mad? Think again! This plugin will restore the former glory of the strength effect from 1.5. It also restores the old healing and regeneration effects, which is also a nice feature.
How it works
Strength Fix
Let me explain the math behind 1.5 and 1.6 strength.
1.5
- Using ANY sort of weapon(including your bare fists), your damage will be increased at a flat rate of 1.5 Hearts/Level of Strength.
1.6
- Using ANY sort of weapon(including your fancy diamond sword), your damage will be increased by 130%/Level of Strength.
Comparison
Let's just say for a moment that we got this guy with a plain old diamond sword. Nothing fancy, like super enchantments, or anything. In 1.5, if that person drinks a Strength II potion and hits a player/mob with their sword, they will deal 6.5 Hearts of damage to that creature. In 1.6, if that same person drank a Strength II potion and hit a player/mob with their sword, they will deal 14.5 Hearts of damage. What???? 8 Hearts difference?! Are you absolutely kidding me??????? Well, just don't worry about it anymore, this will hopefully fix the stress also.
What the plugin does to restore the old strength
Let me just say, this plugin is pretty simple, but it fixes a complicated problem for server owners. All it does is it detects if someone has strength, if so, the new damage increase will be undone. Then the plugin will add the old strength damage on and that will be the product of a hit. Pretty simple, if you ask me.
Healing Fix
1.5
- Base healing is 3 hearts. Health gained doubles every additional level.
1.6
- Base healing is 2 hearts. Health gained doubles every additional level.
Regeneration Fix
1.5
- 1 heart is gained every 1.25 seconds. Time is cut in half every additional level.
1.6
- 1 heart is gained every 2.5 seconds. Time is cut in half every additional level.
Video
Thanks to PluginPVP for the comparisons!
Questions, comments, or suggestions? Just leave them below! :)
@The_Doctor_
That's your choice. But, if you do ever come up with a fix for regen, lemme know! :)
@Darkbro100
I'm trying to think how I would do that, this plugin is named "Strength Potion Fix." Not "Potion Fix." Unless I created a separate plugin for each and every fix..
@DeathWalking
No problem. :P
@The_Doctor_
Wow, that's really interesting. I've never seen it screw up like that before. Sorry!
@The_Doctor_
Will you fix regeneration potions?
The change in it I wrote below
@DeathWalking
That's not my formula. I don't know if your decompiler did something in the process or what.. The formula used in my code is:
double DamagePercentage = ((Effect.getAmplifier() + 1) * 1.3) + 1;
Yes, I had a problem where the fist base damage did zero damage. So I added that little thing in to prevent that.
Your math is wrong. You have
but you mean
The conditional confuses me as well, and seems unnecessary. Is it to avoid doing less than 1 damage?
@The_Doctor_
Instant Health nerfed by 33% (heals only 4 health points/2 hearts at level I) Regeneration nerfed by 50% (takes 50 ticks/2.5 seconds to restore 1 health point/.5 heart at level I)
@sodafizzle911
The regeneration changed? What is it like now?
Hey is it possible for you to do a regen version of this? alot of my players complain about the regen nerf also :/
@LilmacDev
Could you please give me a description of the glitch? :)
Wow, I didn't even know how to do this. Nice one <3
Hey mate. Its still a bit glitchy. I've been using this on my hardcore server and people are saying sometime it glitches in and out during pvp! Please fix this asap!
@The_Doctor_
I'm actually not, this guy made $2000 off of pogostick because he tricked pogostick29 to making mcpvp's plugins, then he started to sell them.
He'll start selling this probably soon for like $15 because every pvp server complains about strp2.
@MrInspector
Umm, are you just kidding?
Great pugin, but soon a kid named "TechnoPvP" will start selling this plugin and say he coded it.
and change the name to kTechnoStrp2Fix
But great :D I'll use this if i decide to add a pvp server to my hub server.
@Relicum
According to the formula I used, I did not.
Oh you forgot Strength 2, that's 260% increase in damage and strength. Sorry :(
@CommodoreAlpha
Now that I think about it, it may mess with other plugins health-wise, only if you have strength. I'll help this in the next update by changing the priority of the event.
I have untested it with a bow, and it may not work with a bow. Will be fixed in the next update if not already.
May become a possibility in the future. :) This was mainly a quick fix for PVP servers, so I wasn't making the plugin too complicated to start since it needed to be done fast.
So I take it this plugin only changes the "damage points added by the strength potion effect" function? Meaning that a plugin like this won't mess with the base damage, whatever that damage may be (whether it's vanilla or edited by another plugin).
I also take it this plugin only focuses on reverting damage added on by the strength effect when it's caused by a melee hit, as opposed to an arrow from a bow or something else.
And instead of simply "reverting" the amount of damage points that the strength effect adds to 1.5 mechanics, can we specify our own function? Like +30% damage per level?
I'm asking all these questions because I have a setup (made possible by a few other plugins) that completely revamps the health and damage system of Minecraft (like changing the "average" mob health of 20 hp to 100 hp) to allow more flexibility. The 1.5 mechanic of adding a flat amount made strength potions utterly useless, and the new 1.6 made it overpowered (I thought 130% was a typo from 30%). I'm looking for something percentage-based but not overpowered, and this seemed like the ideal place to ask.
@TheMcElitePvP
It actually is finished, the file is just waiting for approval. ;)