
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