Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-143889

Shapeless recipes only check for number of items and number of occupied slots

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.14
    • Minecraft 19w06a, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5
    • None
    • OS: Windows 10

      Java: 

      java version "1.8.0_201"
      Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
      Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
    • Confirmed
    • (Unassigned)

      The bug

      Shapeless recipes only check for the correct amount of items in general and the correct amount of occupied slots. This however is not sufficient when a recipe requires the same ingredient multiple times, as can be seen in the attached screenshots.
      Either a check for the correct item in each slot, or a general check that no item that is not part of the recipe is included is missing.

      Original Report

      Video of bug in action

      Location of my datapack for testing: 
      https://github.com/SamJBarney/Minecraft-Datapacks/tree/master/Redeye
       

      I have a datapack that I've been working on that includes a bunch of different recipes, and I noticed that my coarse dirt recipe was giving me dirt for some reason.

      Shapeless recipe for dirt: 7 of any crop item (potatoes, carrots, etc), 1 gunpowder, and 1 bonemeal

       

      Shapeless recipe for coarse dirt: 4 of any crop item, 1 gunpowder, 1 bonemeal, 2 bones, and 1 charcoal.

       

      It appears to be tallying up the total number of matching items and using that to select recipes.
       

        1. 2019-04-23_11.52.30.png
          145 kB
          [Mod] NeunEinser
        2. 2019-04-23_11.53.11.png
          146 kB
          [Mod] NeunEinser

            boq [Mojang] Bartosz Bok
            MaskOfLoki Samuel Barney
            Votes:
            4 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: