ArmorWeight
ArmorWeight adds weight to your armor! Heavier armor makes the player more immovable and slower. Decide twice if you want that heavy but strong diamond armor or if that swift leather armor would be better.
Main Features
- Balance armor types! Strong armor now gets nerft by making the player slower and more immovable. Also, this increases the power of horses, as you keep your speed on them.
- More realism! Add realism to fights and duels on your server.
- More strategy! Tanky or good at escaping? Your players will have to decide and makeup strategies!
- No mods / use of potion effects needed!
- Fully configurable! Change every value and message for this plugin!
- Supports Forge items! Just add the mod Material names to the config file and it will just work! Mod armor tutorial
Commands
/weight [player] | Get the weight of a player |
/armorweight<help;reload> | Displays generic plugin help or reloads the plugin |
Showcase Video by Spencer Recor
Configuration
How weight works
- A "normal" Minecraft player weighs 100
- Less weight (e.g. 80) means lighter (= faster)
- More weight (e.g. 120) means heavier (= slower)
- Player weight = normal weight + armor weight
- A "normal" Minecraft horse weighs 500
- Horse weight = normal weight + rider (player) weight + armor weight
# The language chat: language: enUS # The weight of a player / horse wearing no armor playerWeight: 90 horseWeight: 400 # Enable / disable weight for players, horses, enchantments ... weightEnabled: armor: player: true horse: true horseRider: true enchantment: false # Enable / disable the speed (slowness) and knockback effect for players or horses effectEnabled: speed: player: true
playerCreative: false # for creative mode horse: true
amplifier: 1.0 # how strong speed should change
knockback:
player: true
amplifier: 1.0 # how strong knockback should change # A list of all enabled worlds enabledWorlds: - "*" # A star (*) will enable all worlds - "world" - "world_nether" - "world_the_end" armor: # The weight of a full armor for each material type # You may also use any item (e.g. "pumpkin", "player_skull") weight: leather: 10 gold: 40 chainmail: 20 iron: 30 diamond: 50 pumpkin: -10 # The percentage share of a certain piece in total weight of the armor share: helmet: 17 chestplate: 45 leggings: 25 boots: 13 enchantment: # Make sure to enable this in weightEnabled.enchantment if you want to use it # How much every enchantment level adds to the weight of a armor piece weight: # The weight for all enchantments not specified general: 3 protection: 5 unbreaking: 5 weightWarning: # Whether warnings should be displayed when players wear heavier armor (text configurable in lang.yml) enabled: true # How many seconds have to pass until another warning can be displayed cooldown: 10
Permissions
armorweight.weight.armor | Makes your weight be changed by armor |
armorweight.effect.speed |
Makes your movement speed change depending on your weight |
armorweight.effect.knockback |
Changes how you are knockbacked depending on how much you weigh (heavier players are knocked back less, lighter farther) |
armorweight.command.weight.getown | Allows you to display your current weight |
armorweight.command.weight.getothers | Allows you to display the current weight of other players |
armorweight.command.plugin.info | Allows you to display information about ArmorWeight |
armorweight.command.plugin.reload | Allows you to reload the configurations of ArmorWeight |
Source, JavaDoc, Buildserver, Maven, Documentation
You are free to make a plugin that uses ArmorWeight, but you have to credit me and link back to the plugin. Also, feel free to share your creations and send them to me!
Metrics
Since version 0.3.13 this plugin sends statistics data to bstats.org (respectively before 0.3.13 to mcstats.org). To disable this, set the value "metricsEnabled" config.yml to "false".
Cauldron Servers
If you get an exception regarding horse speeds on Cauldron, disable the horse speed effect.
Compatibility
ArmorWeight should work with all plugins that do not change the player or horse speeds. There are known compatibility issues when also having the plugin ZHorse installed. Disable the horse speed effect when using it.
If you encounter a plugin that is not compatible, please leave a comment I and will get to it.
ArmorWeight is compatible with:
- Thirst, making players with heavy armor more thirsty!
- Essentials
- NoCheatPlus
Is it possible for armor weight to be applied to mobs, not just players? i.e. a zombie wearing diamond armor is affected in the same way that a player is.
Looking by the comments and requests of others, I'd like to suggest something. What about a listener for armour lore. If the armour pieces have some lore (configurable in the config) you can apply(or remove) some weight to them(also configurable).
You could add a section in the config for adding in different lores to listen for and the weights to be applied for each of them.
for example a player could have a chestplate with lore going "Feathermail Chestplate" and you can add a config entry to say how much weight that chestplate would then have.
Others could use it as an enchantment with lore like "Lightness I" and cause that to have -x weight. and "Lightness II" with -y weight etc. Would really allow for a lot of customisation and interesting features in RPG style servers.
Thank you once again for this plugin zettelkasten. Been using it since close to a year and its a must have for me. :)
@RhetoricalRabbit
Good suggestion, so I added this right away. Look forward to v0.3.10 uploading right now and take a look at this page on how to use it.
Feel free to send me a message when you incorporated weights for the Slimefun items ;)
@Zettelkasten
Is it possible to make it so that metadata can be used to distinguish weights?
I'm aiming to incorporate various weights for MrCookieSlime's Slimefun items
I have a issue, when the players Tp to an another world , they loose the slowness, They must remove their armor, and wear it again. for recover the slowness. I used sipgot 1.8 , essentials, Multiverse, Worldguard , griefprevention, autosave, thrist , and the last version of the plugin.
Also, nocheatplus will work if you if you also install CompactNoCheatPlus and then edit the config.
@Zettelkasten Could you please add an option for a specific peice of armor to have slowness. An example could be that I renamed a leather helmet to A. Could you possibly put slowness on only the Armor with the name A and is leather?
@MineCraftMyph
@pepper82
Thanks, this is fixed in v0.3.8!
Plugin is not working anymore for me (latest spigot 1.8.7)
throws lots of errors in console:
http://pastebin.com/TtSZQk4T
@Zettelkasten
Bug http://hastebin.com/ugoqohogox.avrasm
It's always nice to see a plugin still kept up.
@Azfaloth
Thanks for the report. This is fixed in v0.3.7.
Hello again Zettelkasten! I updated your plugin on the new 1.8.6 and I get this error when i ride a horse. Probably NMS changes in 1.8.3 since they say no NMS changes have been made after that. I am using the 0.3.6 version. :)
The normal player weight parts work wonderfully as usual. :)
http://pastebin.com/W5Q40mMG
@RhetoricalRabbit
Yes, sure. I'll try to get to add that tomorrow.
@Zettelkasten
Any chance of adding in a feature that has the armour weight affect saturation / hunger?
@ihton
I tried it on my server, and uCars seems to be compatible. Do you want cars to slow down like horses do or what is your concern?
uCars compatibility could be awesome :P
@pepper82
This is an incompatibility issue with Essentials. It is fixed in v0.3.6.
Forget about what I wrote, I'm just stupid :P
Ok there is a bug:
When relogging on the server the weight is gone ... you can run fast as usual.
Maybe because the plugin does only check for armor when a player puts on the armor?