ChangeDamage
ChangeDamage by FalseVacuum
NOTE: I don't play MineCraft anymore. Please don't ask for new features. They're not going to happen.
Sorry guys, updates are *very* slow! I don't play MineCraft, and I'm super busy with other things. I do enough coding every day.... I would be thrilled to have someone to which to pass on the torch!
Up for takeover! PM me for details.
Features
- Item/weapon damage
- Arrow damage
- Critical damage
- Strength effect
- Weakness effect
- Separate world configurations for damage output (all of the above features)
- Armor protection
- Fall damage (including armor protection during falling)
- Permission to decide if item/weapon damage changes based on the dealer. This also affects critical damage and the weakness and strength effects.
- Ability to configure item/weapon damage output for PvP only or for both PvP and PvE
- Default configuration so that you can avoid playing with things you don't understand yet.
- Responsive development team—I usually get back to you within 24 hours, and I get right on to bug reports.
- Open source
Overview
ChangeDamage is a plugin which allows you to change the damage an item does or the amount armor protects you. For example, you may want to make diamond swords more overpowered than they already are, increasing damage output to 20 (10 hearts). Or maybe you may want to nerf those OP diamond swords, so you decrease the damage output to 5 (2.5 hearts). Maybe, just for grins and giggles, you want the flower to do 200 damage. However you want it, that's how you can do it. You can also change the damage points of a piece of armor. You could buff the unobtainable chain armor, whilst nerfing the overpowered diamond armor!
So what ChangeDamage does is it allows you to change the damage output of any item. You can choose if this applies to PvP only or if this works for PvE. EvP will not be affected (for example, Zombie Pigmen's gold sword's damage output will be constant). It also changed the damage points of a piece of armor.
Commands
The current commands are:
- /changedamage reload - Reload the plugin
- /changedamage release - Disable the plugin (unload it, so you can remove it/replace it)
Future commands may include options to modify damage output of weapons from commands instead of from the text file
Config
- pvponly - true/false - If false, ChangeDamage will affect player versus entities (PvE) in addition to PvP. If true, ChangeDamge will only affect PvP
- verbose - true/false - If true, ChangeDamage will send you all sorts of useless spam messages that help me debug issues. Don't set this to true unless you know what you are doing.
- research - true/false - If true, ChangeDamage will occasionally print out some notes for me. Please report these notes if you get them. They will be marked "[ChangeDamage] [Research]" and will appear in the console. This is to investigate the possibility of adding critical hit support.
- damages - See "Damages", then see "Projectiles"
- armor - See "Armor Points"
- damages.expressions - Allows you to input an equation for how much damage a critical hit does. Variable 'n' is the amount of damage done by the player, rounded down to the nearest even number. Use the subnodes of "damages.expressions" "strength", "weakness", and "critical" to affect damage output for strength effect, weakness effect, and critical damage, respectively. See "Expressions"
- fall - Allows you to decide fall damage. Only activated when the player falls more than 3 blocks. Variable 'd' is the distance fallen, rounded down to the nearest integer. Variable 'a' is the total armor points of the player. Use node "fall.expression" to specify damage. See "Expressions"
Permissions
The permissions nodes for this plugin are:
- vacuum.changedamage - Gives access to /changedamage
- vacuum.changedamage.damage - Default enabled. Disable to make damage output changes not be affected for this player.
Upcoming features
Color scheme:
- In progress
- Suggested
- Completed
These are features I want to add but have not yet done so:
- Change durability
- Armor color
- Mob effects when wearing certain armors (maybe)
- Automatic updating
- Modify enchantment power
- Change potion power
- Potion effect when attacking
PLEASE make suggestions. If it's something easy, you can be sure to find it in the next update!
Bugs
Color scheme:
- Unresolved
- Resolved but not in the current version
- Resolved
Bugs:
- ClassCastException caused by killing Ender Crystals
- Cannot use non-armor pieces as armor (causes an error when falling)
- NPE in arrow calculation
- Arrow permissions weren't working
- Critical damage didn't work
- When performing a critical hit, damage output was reducing
- The fall damage expression was being read from the wrong node
Download
To download the Bukkit approved version, click the "Download" link on the top right hand side of the page.
To download stable versions click here.
-
View User Profile
-
Send Message
Posted Jul 5, 2012@oopomopoo
The problem is that durability is hardcoded into the client. Changing what affects durability isn't, though.
That is, I can fulfill your request, just give me a day. I'm playing SCII right now! (and work tomorrow)
-
View User Profile
-
Send Message
Posted Jul 5, 2012@falsevacuum
Okay, thanks! That's what I was wondering.
And I've been looking for one that allows me to change durability to increase it or change the use consumption (so hoes actually take damage from attacking mobs) but no luck so far. All the ones I've seen either just allow a full repair of it or make it infinite use. People say it's really hard to do.
-
View User Profile
-
Send Message
Posted Jul 5, 2012@oopomopoo
Durability will be a tricky one, because I have to decide how to go about that one. I've been putting that off for forever.
Half of an icon is considered 1; there are no decimals. Remember that this is "server-side". That means the number of armor icons won't change. Don't worry, your armor really does protect you more!
-
View User Profile
-
Send Message
Posted Jul 5, 2012Thanks again for this mod, I love it. Can't wait til you add in the ability to change item durability.
Quick question about armor though; many items only give half an armor bar. Such as a leather helmet only gives what looks like half of the icon for armor.
My question is; is half of the icon considered "1" or is it considered "0.5" in the text values?
-
View User Profile
-
Send Message
Posted Jul 5, 2012Finally got something through >.>
They were complaining about some unused code that didn't do anything. *sigh*
-
View User Profile
-
Send Message
Posted Jul 5, 2012Well i'm downloading it from the link you send before, thanks man and good luck with the aproval :)
-
View User Profile
-
Send Message
Posted Jul 5, 2012Now it's being rejected for downloading from an external source...
Edit: I'm petitioning it. Hopefully it will go through!
-
View User Profile
-
Send Message
Posted Jul 5, 2012@Mayhem777
I always put the most recent build under
http://vacuum-changedamage.googlecode.com/svn/trunk/resources/jars/stable/
Just right-click, save as. If it saves as a .zip, change the extension to .jar.
-
View User Profile
-
Send Message
Posted Jul 5, 2012Sometimes bukkit is a bit slow for that, you can upload the files in other site meanwhile :)
-
View User Profile
-
Send Message
Posted Jul 4, 2012@Gemil01
I uploaded the bug fix, because I just can't quite seem to get potions to work.
Get 1.7.4 when it comes out. (I'm surprised 1.7.3 hasn't been approved yet)
-
View User Profile
-
Send Message
Posted Jul 4, 2012I'll wait for 1.7.3, thanks again:)
-
View User Profile
-
Send Message
Posted Jul 4, 2012@oopomopoo
The client doesn't actually know the armor has changed; although the armor will be handled properly on the server, the client won't know their armor protection has been changed. Are you checking client-side?
Also, the console will send all sorts of output, although the armor stuff doesn't have very many calculations. I don't think it will be helpful, come to think of it.
-
View User Profile
-
Send Message
Posted Jul 4, 2012@falsevacuum
ohai I'm back! So the weapon damage alteration works, but the armor doesn't. What am I suppose to copy for you with Verbose set to true?
The current stats I have for Armor are
" armor: America: LEATHER_HELMET: 0.5 CHAINMAIL_HELMET: 1 IRON_HELMET: 1.5 GOLD_HELMET: 2 DIAMOND_HELMET: 2.5 LEATHER_CHESTPLATE: 2 CHAINMAIL_CHESTPLATE: 9 IRON_CHESTPLATE: 4 GOLD_CHESTPLATE: 5 DIAMOND_CHESTPLATE: 6 LEATHER_LEGGINGS: 1 CHAINMAIL_LEGGINGS: 1.5 IRON_LEGGINGS: 2 GOLD_LEGGINGS: 2.5 DIAMOND_LEGGINGS: 3 LEATHER_BOOTS: 0.5 CHAINMAIL_BOOTS: 1 IRON_BOOTS: 1.5 GOLD_BOOTS: 2 DIAMOND_BOOTS: 2.5 "
I have chainmail set to 9 just to test. It still only shows 2.5 armor. And yes the server is America. Have I written something down wrong?
-
View User Profile
-
Send Message
Posted Jul 4, 2012@Gemil01
Alright, I'll have to add a handler for that in the next update. Probably coming up within the next few hours.
EDIT: I looked at the bug. It doesn't actually cause a misfunction, just spam. I won't release an immediate fix; I want to get more bug fixes/updates in there.
@Mayhem777
Download 1.7.3 when it comes up. Hunting with snowballs is so fun :D
-
View User Profile
-
Send Message
Posted Jul 4, 2012Yes, some people wear a Pumpkin on the server. Only a few wear other blocks with the plugin Blockhat. The configuration is the default one.
-
View User Profile
-
Send Message
Posted Jul 4, 2012@Mayhem777
It might be a while, because with the next update, I want to get potions out, but I will add the code right away. If you want a special build, I can send you one.
-
View User Profile
-
Send Message
Posted Jul 4, 2012Thanks man, i want to use the snowballs for my arenas :D
-
View User Profile
-
Send Message
Posted Jul 4, 2012@Gemil01
I think the error is in your config. Can you post it, please? I believe you have one of the armor pieces set as an item.
Edit: wait, do you have people wearing non-vanilla armor or pumpkins?
-
View User Profile
-
Send Message
Posted Jul 4, 2012@falsevacuum
I feel really stupid now haha, I got it. I just noticed after rereading it for the 20th time that pvponly was set to true. Thanks for replying so fast though. ^.^
-
View User Profile
-
Send Message
Posted Jul 4, 2012Hi, i use 1.6.6 and get this error: http://pastebin.com/ijMJmBwM
MyPlugins:
Vault, Multiverse-Core, MobBountyReloaded, ColoredTablist, dynmap, DisguiseCraft, Nethrar, EnchantShops, DragonTravel, Votifier, Citizens, EnderdragonsPlus, VirtualPack, Multiverse-Inventories, Spout, PermissionsEx, TerrainControl, mcore3, LevelsPlus, ChangeDamage, ScrollingMenuSign, iConomy, pvparena, BKCommonLib, vampire, ScheduledAnnouncer2, HideDeathMsg, Modifyworld, MonsterBox, ButtonWarp, WorldBorder, Multiverse-Portals, BlockHat, StatsAndAchievements, LWC-Spout, NoLagg, MobArena, ChatManager, WorldEdit. LWC, Train Carts, MobHealth, CommandBook, HawkEye, WorldGuard, Factions, HomeSpawnPlus, Dynmap-WorldGuard, Dynmap-Factions, ChestShop, SimpleRegionMarket