Extended Crafting

Extended Crafting

34M Downloads

JEI compat breaks on sub-3x3 shaped recipe patterns

Seraphaestus opened this issue ยท 0 comments

commented

Describe the bug
Minecraft has shaped recipe patterns which, less than 3x3 in size, can fit in various positions/orientations on the crafting grid. An example of this is an axe's recipe. When such a recipe is added to the Ender Crafter, the recipe is correctly processed and can be crafted as intended, but JEI parses the recipe naively. Attempting to craft the recipe as JEI displays does not work.
For example:

["AA",
 "BB",
 "CC"]

is displayed in JEI as:

["AAB",
 "BCC",
 "   "]

This also renders the JEI auto-fill unusable.

When hovering over the progress arrow, JEI also incorrectly lists the time for Ender Crafter crafts as "N ticks" when it is actually N seconds.

To Reproduce
Add a recipe, for example, for the Ender Crafter with the pattern ["XX", "X ", "X "]. I don't know if the problem occurs with other types of crafter.

Script

{
  "type": "extendedcrafting:shaped_ender_crafter",
  "pattern": [
    "XX",
    "X ",
    "X "
  ],
  "key": {
    "X": {
      "tag": "forge:ingots/gold"
    }
  },
  "result": {
    "item": "minecraft:apple"
  }
}

Versions (please complete the following information):

  • Minecraft: 1.16.5
  • Forge: 36.1.0
  • Cucumber: 1.16.4-4.1.9
  • Extended Crafting: 1.16.4-3.1.5