[SPIGOT-6424] ExactChoice Recipe Book Created: 15/Apr/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: Lee Cook Assignee: Unassigned
Resolution: Unresolved Votes: 3
Labels: spigot
Environment:

openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment 18.9 (build 11.0.10+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.10+9, mixed mode, sharing)


Issue Links:
Duplicate
is duplicated by SPIGOT-6794 Custom ShapedCraft bug when custom in... Open
Version: Spigot-1.16.5-R0.1
Guidelines Read: Yes

 Description   

So ExactChoice works perfectly with shaped recipes but I've run into one small issue. ExactChoice items wont automatically insert into the crafting table when you click the item in your recipe book when you have items needed in your inventory. If you have all the items it also doesn't change from red to white in your recipe book. 

Gif: https://gyazo.com/5c2a185de47b49a95db57517cb6fb1ed

In that gif, emerald armor is normal, redstone sword is exact. Redstone ruby is a reskinned clock with a custom model id and displayname.

if (!exact) recipe.setIngredient(cKey, RecipeMaterials.valueOf(rID).getMaterial());
else recipe.setIngredient(cKey, new RecipeChoice.ExactChoice(RecipeItemStacks.valueOf(rID).getItem()));

 


Generated at Tue Apr 15 09:25:44 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.