HeavyArmor
This small mod allows the admin of the server to set weights for different types of armor. Players consume more food while sprinting if their armor is heavy.
This plugin was requested by Haha71687
Install
You can set the weight of each armor item in the config file:
The foot exhaustion is calculated with this formular on every tick:
exhaustion += weight * sprint_exhaustion_per_tick_per_weight sprint_exhaustion_per_tick_per_weight is a setting you can set in the config file (a double value). The whole thing is additional to the default sprint exhaustion. It's not possible to disable exhaustion completely with this plugin at the moment
If you enable the debug setting, the server ouputs the current values of the player at each tick. This way you can easly balance the plugin for your needs. While debugging "Na" is the name, "We" the armor weight, "Ex" the exhaustion, "Sa" the saturation and "Fo" the food level of the player. For more informations on how these values influence the Hunger, look here.
<font color="red">The default balance isn't realy usefull.</font> The values are very high. If somebody has a better balance, add it in the comments. Permissions
The plugin only need one permission:
- Put the jar into the plugin folder.
- Run the plugin once to generate the default config file of the plugin.
- Setup the config, see Configuration for details.
You can set the weight of each armor item in the config file:
- armorweights.pumpkin_helmet - The weight of the item, as a double
- armorweights.leather_helmet - The weight of the item, as a double
- armorweights.gold_helmet - The weight of the item, as a double
- armorweights.chain_helmet - The weight of the item, as a double
- armorweights.iron_helmet - The weight of the item, as a double
- armorweights.diamond_helmet - The weight of the item, as a double
- armorweights.leather_chestplate - The weight of the item, as a double
- armorweights.gold_chestplate - The weight of the item, as a double
- armorweights.chain_chestplate - The weight of the item, as a double
- armorweights.iron_chestplate - The weight of the item, as a double
- armorweights.diamond_chestplate - The weight of the item, as a double
- armorweights.leather_leggings - The weight of the item, as a double
- armorweights.gold_leggings - The weight of the item, as a double
- armorweights.chain_leggings - The weight of the item, as a double
- armorweights.iron_leggings - The weight of the item, as a double
- armorweights.diamond_leggings - The weight of the item, as a double
- armorweights.leather_boots - The weight of the item, as a double
- armorweights.gold_boots - The weight of the item, as a double
- armorweights.chain_boots - The weight of the item, as a double
- armorweights.iron_boots - The weight of the item, as a double
- armorweights.diamond_boots - The weight of the item, as a double
The foot exhaustion is calculated with this formular on every tick:
exhaustion += weight * sprint_exhaustion_per_tick_per_weight sprint_exhaustion_per_tick_per_weight is a setting you can set in the config file (a double value). The whole thing is additional to the default sprint exhaustion. It's not possible to disable exhaustion completely with this plugin at the moment
If you enable the debug setting, the server ouputs the current values of the player at each tick. This way you can easly balance the plugin for your needs. While debugging "Na" is the name, "We" the armor weight, "Ex" the exhaustion, "Sa" the saturation and "Fo" the food level of the player. For more informations on how these values influence the Hunger, look here.
<font color="red">The default balance isn't realy usefull.</font> The values are very high. If somebody has a better balance, add it in the comments. Permissions
The plugin only need one permission:
- heavyarmor.enabled - True for everyone by default, if true the plugin is enabled for this player
@fuzzysgirl
Wont work with 1.7.2
@fuzzysgirl
Hi fuzzygirl, you need to update this plugin?
Anyone know if this works with 1.7.9? :)
Will this ever be updated or is that near impossible now?
Is it possible to make this affect other actions as well, like breaking blocks and swimming?
Make the same thing when you hold a Axe, bow or swords
sprint_exhaustion_per_tick_per_weight: 0.01
debug: false
armorweights:
pumpkin_helmet: 0.1
leather_helmet: 1.0
gold_helmet: 4.0
chain_helmet: 2.0
iron_helmet: 3.0
diamond_helmet: 3.6
leather_chestplate: 3.0
gold_chestplate: 9.0
chain_chestplate: 6.0
iron_chestplate: 7.5
diamond_chestplate: 8.0
leather_leggings: 3.0
gold_leggings: 9.0
chain_leggings: 6.0
iron_leggings: 7.5
diamond_leggings: 8.0
leather_boots: 1.0
gold_boots: 4.0
chain_boots: 2.0
iron_boots: 3.0
diamond_boots: 3.6
(+) = slightly more than that
the #'s = the amt of blocks.
- The way this works out is
In diamond armor you can run for 145
In Iron 250(+)
In Chain 300(+)
Leather 800(+)
No armor 1000(+)
Gold 110
@welknair
Why do I need to update the plugin? Did it stopped working?
Is this going to be updated anytime soon? Looking at using it for my new RP server.
I fixed the issue after reexamining the server. One of the other admins had removed our permissions plugin. Sorry about bugging you, but thank you for the prompt response.
Cheers,
Remlap
@RemlapVII
I don't know what your problem is? Works fine for me (With the 1.3 dev build).
Hey mate just wondering if you could either release the source code for this mod or update it. A lot of the players on my server are interested in this mod on the server.
Cheers,
Remlap
I don't use this mod on my own server. I'm not sure if it works fine with the latest bukkit version, message me if you have any problems.
A great MoD thx!
@Varunax Thank you for your help!
Here are the presets I use if you don't want to configure it. It seems to be balanced for the most part.
You are THE MAN.