Better Mending
1.0.7-1.19.3-paperA plugin that allows players to repair their items with experience points, with customizable repair amounts and costs.
1.0.7-1.19.3-paperlatestBetter Mending 1.0.7-1.19.3-paper dont useJan 9, 2023 - Fixed a syntax error in the code - Problem: There was no opening parenthesis afterelse ifand the semicolon at the end of the line was terminating theifstatement prematurely. - Solution: Added the missing parenthesis and removed the semicolon at the end of the line.1.0.6-1.19.3-paperBetter Mending 1.0.6-1.19.3-paperJan 8, 2023 Changes
- Replace the following block of code:
with the following code:List<String> allowedEnchantments = getConfig().getStringList("allowedEnchantments"); for (Enchantment enchant : enchantments.keySet()) { if (!allowedEnchantments.contains(enchant.getName())) { // Enchantment is not allowed, cancel the event interactEvent.setCancelled(true); return; } }
This change modifies theif (enchantments.isEmpty()) { // Item has no enchantments, cancel the event interactEvent.setCancelled(true); return; } List<String> allowedEnchantments = getConfig().getStringList("allowedEnchantments"); boolean hasAllowedEnchantment = false; for (Enchantment enchant : enchantments.keySet()) { if (allowedEnchantments.contains(enchant.getName())) { hasAllowedEnchantment = true; break; } } if (!hasAllowedEnchantment) { // Item does not have any allowed enchantments, cancel the event interactEvent.setCancelled(true); return; }onPlayerInteractmethod to check if the item being repaired has at least one allowed enchantment, rather than checking if all of its enchantments are allowed. If the item has at least one allowed enchantment, the player is allowed to use experience points to repair the item. If the item does not have any allowed enchantments, the event is cancelled and the player is not allowed to use experience points to repair the item.1.0.5-1.19.3-paperBetter Mending 1.0.5-1.19.3-paperJan 8, 2023 - Fix issue with enchantment in config not working1.0.4-1.19.3-paperJan 7, 2023 Changed
- Forgot to include permission in plugin.yml - Optimize code1.0.3-1.19.3-paperJan 7, 2023 Added
- Config options for messages:noPermissionMessage, itemAlreadyRepaired, itemDoesNotHaveMending, mendingNotAllowed, insufficientXP, durabilityLeftMessage, repairsNeededMessage. -/bm reloadcommand to allow users with thebettermending.reloadpermission to reload the plugin's config. -/bm statuscommand to allow users to check how many xp cost and durability repair.1.0.2-1.19.3-paperJan 7, 2023 Added
- Configuration optionallowedEnchantmentsto allow players to choose which enchantments they want to use with the repair feature. The plugin will only use enchantments from this list for repair.Changed
- Event handler to use thecontainsKeymethod of theMapclass to check if anItemStackhas the MENDING enchantment, and thecontainsmethod of theListclass to check if the MENDING enchantment is in the list of allowed enchantments. - Dependency on bStats library to the latest version to fix a compilation error. - Configuration optionxpCostto 1. The amount of experience points required to repair 1 durability point is now 1. - Configuration optionrepairAmountto 2. The amount of durability points repaired per use is now 2.Removed
- Unusedmetricsvariable from theonEnablemethod.1.0.1-1.19.3-paperJan 7, 2023 Added bstats to project for plugin analytics1.0.0-1.19.3-paperJan 7, 2023 Initial release of BetterMending Repair amounts and costs are configurable
Similar projects
Plugin →VeinMiner
Mine the whole vein on mining a single ore/block. Make the tedious mining experience to something satisfying and fun! FTB Ultimine alternative
99.3MSueta
Simple Voice Chat
A working voice chat in Minecraft!
76.8MSueta
Chunky
Pre-generates chunks, quickly and efficiently
18.4MSueta
VeinMiner Enchantment
Veinminer Addon - Adds vineminer enchantment to enchanting tables. Only tools with the enchantment can veinmine
18MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
WorldEdit
A Minecraft Map Editor... that runs in-game! With selections, schematics, copy and paste, brushes, and scripting. Use it in creative, or use it temporarily in survival.
11.6MSueta