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

Crafting Recipe's Ingredient MetaData ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-c574e08-37f32da (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
    • Yes

      I'm not sure if this is the place to post this. I did a quick google search and found no information on this. 

      ShapedRecipe.setIngredient(char key, MaterialData ingredient)

      does not implement metadata as it would so suggest

      Tracing the API, it uses deprecated methods that converts MaterialData into a Material object and a raw int. the int never actually gets used in the end, so all your left with is a Material object, thus losing any metadata the ingredient had initially.

      This makes using certain items impossible. For example coding a recipe that requires an Enchanted book, will allow using any enchanted book instead of the specific one that was originally set.

            Unassigned Unassigned
            TrenTech Terrence Monroe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: