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
OS: Windows 10
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)
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.
Location of my datapack for testing:
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.