Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6424

ExactChoice Recipe Book

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • 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)

    • Spigot-1.16.5-R0.1
    • Yes

      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()));

       

            Unassigned Unassigned
            SirGoldman Lee Cook
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: