CustomCrafting v2.16.6

Details

  • Filename
    customcrafting-spigot-2.16.6.0-f.jar
  • Uploaded by
  • Uploaded
    Dec 22, 2021
  • Size
    886.10 KB
  • Downloads
    4,700
  • MD5
    5d8759dd5be7650d82d8ab709ffea741

Supported Bukkit Versions

  • 1.18.1
  • 1.18
  • 1.17
  • 1.16

Changelog

This update requires WolfyUtilities v2.16.2!! Make sure to update WolfyUtilities, or it won't work!

 

Commands

  • Added the @s target to give command. (So you don't have to type in your name to get an item)
  • Added an error message if an invalid namespaced key is typed in, which should clear up how to correctly type it in.
  • Added a mention of the /wui command into the input message of namespaced keys.
  • Improved feedback for give command (Like invalid usage, etc.).
  • Added invalid usage to database command.

 

Recipes & Crafting changes

  • Added new Smithing Recipe setting to only change the material of the item.
  • Added the possibility of empty ingredients in shapeless recipes. (This is meant for recipes that would otherwise require many variations, like the firework recipe)
  • Added option to recipes, to view them inside the vanilla recipe book. NBT data is only supported for the result, for ingredients they are not supported (This includes the autocompletion!)
  • Deprecated Elite Crafting Table 5x5, and 6x6 grid sizes (#25)
  • Added MergeAdapters support for Anvil recipes.
  • Added Player parameter to CraftingRecipe.removeMatrix

 

Conditions

  • Added ConditionAdvancement that allows you to set required advancements a player must have to craft a recipe.

 

Result Extensions

Added a brand new Advancement Result Extension that allows you to give players a specific advancement.

Added a new optional property to the ResultExtension called executionType.
Property:
"ONCE" (default) - The extension is always executed just once per completed craft.
"BULK" - The extension might be called multiple times in a row. E.g. shift crafting in the crafting table.

 

Result Merge Adapters

Added DisplayNameMergeAdapter.
Added FireworkRocketMergeAdapter to set power levels depending on gunpowder count in the grid.

 

Registry

Similar to the changes in WolfyUtilities, the Registry structure changed.
Instead of accessing the CCRegistry and CCClassRegistry, you need to get the Registries from the CustomCrafting instance.

CCRegistries registries = CustomCrafting.inst().getRegistries();
registries.getRecipes();
registries.getRecipeConditions();
registries.getRecipeMergeAdapters();
registries.getRecipeResultExtensions();
registries.getItemCreatorTabs();

Registering instances and types still works the same for all the registries.

 

Misc Changelog

  • Added improved FurnaceStartSmeltEvent for 1.17 servers to more efficiently block invalid recipes. (Important: Recipes that fail to smelt will not automatically start smelting again! This can only happen when a condition is not met. The ingredient must be taken out and placed back in to restart the process).
  • Removed old particle system effect settings.
  • Added workstation filter to the Recipe List.
  • Implemented recipe caching into the registry, that should improve the performance of crafting and recipe list. (This includes recipes by result, namespace, type, and group)
  • Replaced custom serializer/deserializer of Categories with annotations.
  • Improved custom furnace fuel.
  • Removed ParticleEffect settings from the in-game GUI.
  • Removed ItemCreator Tab for particle animations.
  • Updated recipes writeToBuf methods, so they use the new MCByteBuf#writeCollection.
  • Recipes send to the client via plugin messages are now split into separate packets. Each recipe will first send a head packet, that contains the length of bytes and amount of slices.
  • Added CraftManager.MatrixData#getItems which will return a list of non-Air items from grid.
  • Removed ButtonMetaIgnore buttons from ItemCreatorTabs
  • Updated to not-relocated Jackson package, because of WU change. (Using the libraries feature available since Spigot 1.17)

 

Bug Fixes

  • Fixed #74 - Dupe Items Glitch with Elite Crafting Table.
  • Fixed - Shift + right-clicking on ingredients will put the items into your inventory (and then open the ingredient settings).
  • Fixed #77 - Exp being used in anvil, then being refunded as soon as new exp from external source is given.
  • Fixed - DataHandler isn't setting the save destination to database, if used.
  • Fixed - DataHandler isn't checking if localStorage loader exists.
  • Fixed - Crafting Creator doesn't allow ingredients with just tags.
  • Fixed - CraftManager#calculateClick uses the result ItemStack from the CraftingInventory and causes some NBT to be converted.
  • Fixed - If an item with craft remain (bucket, bowl, etc.) is stacked, the material of the whole stack is edited.
  • Fixed - If a custom recipe cannot be added to Bukkit it will crash the plugin.
  • Fixed - Unable to save Cauldron recipes without hand item set.
  • Fixed - Too many recipes prevent clients from connecting to the server. (Requires ProtocolLib as it will modify the RecipeUpdatePacket to "fix" the MC-185901 issue).
    Recipes that are set to be visible in the vanilla recipe book (If they are not disabled or hidden) are still allowed through that filter. All other recipes are removed from the packet. That also means that players won't be able to view your recipes with mods like JEI.
  • Fixed MMOItems IllegalStateException when placing items into the GUI.
  • Fixed - MMOItems items don't work in the ItemCreator.
  • Fixed - #21 Anvils makes you lose materials.
  • Fixed - icon for hide recipe button displays wrong state.
  • Fixed - Recipe slot of crafting recipes is not correctly passed into RecipeData. (They are meant to represent the slots inside the recipe, but are representing the slots inside the inventory).
  • Fixed - AbstractRecipeShapeless#check doesn't check all the possible variations of ingredient placements, causing the recipe to not get detected if items are placed in the wrong order.
  • Fixed - Recipe Book saves hidden fields ("sortedCategories", etc.) into config.
  • Fixed - ItemCreator workstation buttons for custom fuel are not displaying their correct state.
  • Fixed - NPE in RecipeList when toggling the filter button.
  • Fixed - OutOfBoundsException when having more categories in the recipe book than allowed.
  • Fixed - NPE of the WorldTimeCondition, in the edge case that the block is null.
  • Fixed UnsupportedOperationEx in the "recipes toggle" command.
  • Fixed disabled vanilla recipes not listed in Recipe List
  • Fixed recipes edit command not opening GUI.
  • Fixed condition causing error in recipe book menu.
  • Fixed UnsupportedOperationEx in ResultExtension#getEntitiesInRange
  • FixedWolfyScript/CustomCrafting-Wiki#43
  • Fixed Anvil recipes durability mode not working.
  • Fixed anvil recipe creator "Block repair" button changing block enchant setting.
  • Fixed anvil recipe not accepting empty result when using "durability" or "none".
  • Fixed anvil recipes not actually blocking repairing items.
  • Fixed stonecutter creator not applying settings to the recipe.
  • Fixed Furnace recipes outputting incorrect amount of items.