[SPIGOT-6794] Custom ShapedCraft bug when custom ingredients Created: 15/Nov/21 Updated: 06/Dec/21 |
|
Status: | Open |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Kolight | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 2 |
Labels: | None |
Attachments: |
![]() ![]() |
||||||||
Issue Links: |
|
||||||||
Version: | 1.17 | ||||||||
Guidelines Read: | Yes |
Description |
Hello, i found a bug when creating a ShapedRecipe and using RecipeChoice.ExactChoice.
If you use Itemstack with custom ItemMeta as ingredients, your craft will work, but the "preview craft" in the craft book will not.
I recommend you to watch the video attached to better understand. Minecraft_2021.11.11_-_13.07.25.09.DVR_Trim.mp4
I don't know from where it can came.
Edit : Another basic example with a video in attachment too. Minecraft 2021.11.15 - 10.55.43.04.DVR_Trim.mp4
final ItemStack item = new ItemStack(Material.STICK); final NamespacedKey key = new NamespacedKey(main, "testttt"); final ShapedRecipe recipe = new ShapedRecipe(key, item); recipe.shape(" E ", " E ", " E "); final ItemStack ingredient = new ItemStack(Material.STICK); final ItemMeta itemMeta = ingredient.getItemMeta(); itemMeta.setDisplayName("test"); ingredient.setItemMeta(itemMeta); final RecipeChoice.ExactChoice choice = new RecipeChoice.ExactChoice(ingredient); recipe.setIngredient('E', choice); Bukkit.addRecipe(recipe); |
Comments |
Comment by Kolight [ 28/Nov/21 ] |
Is this problem from client side or from spigot ? |
Comment by Doc [ 27/Nov/21 ] |
Yeah... the autocrafting in vanilla was intended for work with simple items and all materials are stacked then the system avoid add custom items because when finally check for put items use all items in a "big" stack.
Maybe any person can make a PR for support this.. but like i see this require a lot of work for make work only with custom recipes... |
Comment by Kolight [ 26/Nov/21 ] |
Are you saying that this is not a bug and that it is not intended for? |
Comment by Doc [ 26/Nov/21 ] |
Hmmm the issue here is the process when click the recipe... this process in vanilla avoid put items with name or enchanted or damaged... in this cases only find the correct material in teory... |
Comment by Kolight [ 25/Nov/21 ] |
Up |