Reequip
What it does
If an item breaks (Tools or Armor) or you run out of blocks while placing Reequip will search your inventory for a suitable replacement and automatically equip it for you. No more accessing the inventory during a fight because your sword broke or while farming cobble with a stone pickaxe!
How it works
Supported are any Tools and all placeable blocks (main and off hand). Reequip is automatically disabled as long as the player is in creative mode.
Tools & Armor
If a tool or an armor of yours breaks, any tool/armor of the same type will be automatically equipped, preferencing the material that you had previously equipped but not limiting to it. So for instance your stone pickaxe breaks and you have another one in your inventory it will be equipped. If you don't have a stone pickaxe but a diamond and an iron one, the diamond one will be equipped. The order of replacement is
- Previously equipped material
- Diamond
- Iron
- Gold
- Wood (Armor: Leather)
- Chainmail (Armor only)
- Turtle (Helmet only)
Items without materials (Lighters, Shields, etc.) will ignore the material and simply search for the same item type.
Blocks
Upon placing the last block of a stack, your inventory will be searched for any stacks of the same material and equip one (searched by the order of your inventory).
Permissions
- reequip: Parent for all Reequip permissions. Grants all of them
- reequip.use: Allows the usage of the reequip function. Give/Take this to enable players using this plugin
- reequip.toggle: Allows players to toggle the reequip function on and off. Give/Take this to allow players the usage of the /reequip command
Commands
- /reequip: Toggles the reequip function on/off for the player that sent the command
Github
https://github.com/Shmobi/Reequip
Special thanks for help during plugin development go to b8148263
Its nice, but it would be cool if the permission nodes to reequip armor and items were separated. Thanks for posting it an for making it open source! When you can, please add a liscense!
I will add further nodes down the permission tree to separate the functions and also add commands.
Currently im working on support for projectiles and consumables + some additional fixes. I will put it all in one version. Just short on time atm.In reply to imtile:
I've been looking so long for an autoEquip plugin for 1.14 and this one works amazing! Literally just made an account to say this :)
Thank you.
EDIT: After looking through the source code, i tried rewritting the getSuitableMaterials function to be more efficient.
I have added a merge request to see what you think.
In reply to b8148263:
Released a new rewritten version of the plugin (1.1) and updated git as well. Thanks for the help. If you want to you can stress test the plugin for any more bugs. All previously addressed issues are fixed and tested :)