CustomCrafting 1.7.1.1 (MC 1.16 - 1.17)

Details

  • Filename
    customcrafting-spigot-1.7.1.1f.jar
  • Uploaded by
  • Uploaded
    Jul 20, 2021
  • Size
    789.62 KB
  • Downloads
    1,663
  • MD5
    ba5731fe146a7ba5a0b9799418756004

Supported Bukkit Versions

  • 1.17
  • 1.16

Changelog

This update introduces a new ResultTarget feature for recipe results and fixes a lot of issues regarding Minecraft 1.17.
This update requires Java 16 and the latest WolfyUtilities to work!

ResultTarget

The idea of the Target feature is that you can target specific ingredients of a recipe and use adapters to merge specific ItemMeta/NBT into the resulting ItemStack.
This feature works for crafting, furnace, blast furnace, smoker, and smithing recipes.
Everything works on a modular basis, which means you can select which adapters to use, and you can even code and register your own adapters to merge custom NBT, etc.
More information here: https://github.com/WolfyScript/CustomCrafting-Wiki/wiki/Result-Target

EnchantMergeAdapter
Takes the enchants from the targeted ingredients and adds them to the result.

EnchantedBookMergeAdapter
Takes the enchants from the target enchanted books and adds them to the result.

DamageMergeAdapter
Combines the durability of all the targeted items onto the result.

Fields to customize:
repairBonus — Adds 5% of the max durability (of the result) to the total.
additionalDamage — Adds additional damage to the total (negative = more durability, positive = less total durability).

For example, if you have two custom tools you combine/repair into one, these options would repair them the same as vanilla does:
damage_merge_0.png(Adds both durabilities together, adds the 5% bonus, and applies it to the result)

Or this recipe combining the durability of three swords.
damage_merge_1.png damage_merge_2.png (Adds every durability together, adds the 5% bonus, adds 20 extra durability, and applies it to the result)

PlaceHolderAPIMergeAdapter
Can replace placeholders inside the resulting item (name and lore).
It supports placeholders and bracket placeholders.

Other than the previous adapters, it ignores the targeted slots and directly edits the result, so it's usually used at the end of the adapter chain.
//proxy.spigotmc.org/988239631fade89e877b0bd34cb4240ee014e2df?url=https://i.gyazo.com/f559c41647fbc6dce393cd35e11e2825.png" rel="noopener nofollow" target="_blank">https://proxy.spigotmc.org/988239631fade89e877b0bd34cb4240ee014e2df?url=https://i.gyazo.com/f559c41647fbc6dce393cd35e11e2825.png" alt="[​IMG]" data-url="https://i.gyazo.com/f559c41647fbc6dce393cd35e11e2825.png" />
There are some fields to customize the behavior:
replaceName — looks for placeholders in the name.
replaceLore — looks for placeholders in the lore.
nameBracketPlaceholders — looks for bracket placeholders in the name.
loreBracketPlaceholders — looks for bracket placeholders in the lore.


Conditions

Craft Delay Condition
Allows you to set a delay that players need to wait for, to craft again.
This is very useful to prevent lag when using the 6×6 Elite Crafting Table for example or other complex recipes.

Craft Limit Condition
Allows limiting the number of times a recipe can be crafted.

ItemCreator
The ItemCreator was rearranged and got a new "Save" button, that is displayed if the item being edited and will save the item to their previous saved location.


Further Features
  • Updated to Java 16
  • Added Result Target to Crafting, Furnace, Blast Furnace, and Smithing recipes to allow merging ingredient NBT into the result item.
  • Added Hide Dye flag to the ItemCreator.
  • Rearranged the ItemCreator (more toolbar space at the bottom)

Technical
  • Added separate result item cache for block recipes.
  • Added complete error stack trace in case an Item or a Recipe fails to load.
  • Added MergeAdapter which can be extended and registered using Registry.RECIPE_MERGE_ADAPTERS.register().
  • Added getResult(ItemStack[]), checkCondition(String, Data), and isDisabled() to the ICustomRecipe.
  • Added checkConditions() to ICustomRecipe to check conditions directly.
  • Added Conditions#check to check specific nullable conditions.
  • Added NetworkHandler that receives client requests, verifies them and sends data to a client mod (disabled in production for now).
  • Added method ICustomRecipe to write recipes into a ByteBuf.
  • Renamed Categories#indexCategories to Categories#index
  • Changed Crafting, so it is ignored when the inventory click event is canceled before it.
  • Changed maven groupId and artifactId
  • Combined crafting logic of Elite and Advanced crafting recipes into the specific interface.
  • Replaced ResultExtension#Provider with the new CustomTypeIdResolver.
  • Improved performance of furnaces when using Paper

Bug Fixes
  • Fixed compatibility of Cauldron Recipes with Minecraft 1.17
  • Fixed shaped crafting recipes not constructing shape when saved. (This prevented them from working right after saving them).
  • Fixed #15 — Custom brewing stand recipes can't have a base potion set.
  • Fixed #14, #20, #18 — Spam to the console
  • Fixed Recipes including and saving AIR items.
  • Fixed OutOfBoundsException in RecipeBook, when spam clicking items.
  • Fixed furnace result targets & extensions not working if it only has one single choice.
  • Fixed input of NamespacedKey causing OutOfBoundsException if there is only a single argument.
  • Fixed weights not applying correctly for duplicated result items.
  • Fixed furnace recipe not always picking new result.
  • Fixed cooking/smelting recipes executing extensions when they are not completed.
  • Fixed Furnace random results not always smelting if the result slot already contains an item.
  • Fixed crafting inventory not correctly updating (like disappearing items on cursor etc.)
  • Fixed PacketPlayOutRecipeUpdate not removing all custom recipes.
  • Fixed Ingredient menu Item container not working as intended (shift-click, dragging, etc.).
  • Fixed Result Button not displaying the correct first item.
  • Fixed CauldronListener causing NullPointer onDisable.
  • Fixed Recipe Book changes only applying after two reloads (/cc reload).
  • Fixed Recipe Book showing disabled or hidden recipes
  • Fixed RecipeBookEditor not resetting cached id.
  • Fixed possible error when crafting, while the grid matrix is empty.