Artisan Worktables 1.12

Artisan Worktables 1.12

3M Downloads

[Bug?] JEI not showing staged recipes after earning necessary stage

thephoenixlodge opened this issue ยท 10 comments

commented

As mentioned briefly in issue #22 I can't seem to get JEI to actually show the staged recipes I'm adding, though they are working and able to be crafted in the table.

Mod Versions:
Forge: 2590
Athaneum: 1.3.3
Artisan Worktables: 1.7.12
CraftTweaker: 4.0.12

Script used:

////Imports
import mods.artisanworktables.Worktable;

////Variables
val ironChestPlate = <minecraft:iron_chestplate>;
val ironChestPlateAdv = <minecraft:iron_chestplate>.withTag({AttributeModifiers: [{Slot:"chest",AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:5,Operation:0,UUIDLeast:123,UUIDMost:123}]});
val bsHammer = <ore:blacksmiths_hammer>;
val ingotIron = <ore:ingotIron>;
val plateIron = <ore:plateIron>;



//remove initially
recipes.remove(ironChestPlate);


//Add staged recipe in blacksmith table
Worktable.addStagedRecipeShaped("diagramIronChestBasic", "blacksmith", ironChestPlate, bsHammer, 1, false, [[ingotIron, null, ingotIron],[ingotIron, ingotIron, ingotIron],[ingotIron, ingotIron, ingotIron]]);

Worktable.addStagedRecipeShaped("diagramIronChestAdvanced", "blacksmith", ironChestPlateAdv, bsHammer, 1, false, [[ingotIron, null, ingotIron],[plateIron, ingotIron, plateIron],[ingotIron, ingotIron, ingotIron]]);
commented

What version of GameStages are you using?

commented

Also, what version of JEI?

commented

Attempted to reproduce using these versions:

  • Forge 2590
  • Athaneum 1.3.3
  • Artisan Worktables 1.7.12
  • CraftTweaker 4.0.12.323
  • JEI 4.8.5.146
  • GameStages 1.0.75

Used this recipe script:

////Imports
import mods.artisanworktables.Worktable;

////Variables
val ironChestPlate = <minecraft:iron_chestplate>;
val ironChestPlateAdv = <minecraft:iron_chestplate>.withTag({AttributeModifiers: [{Slot:"chest",AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:5,Operation:0,UUIDLeast:123,UUIDMost:123}]});
val bsHammer = <ore:blacksmiths_hammer>;
val ingotIron = <ore:ingotIron>;
val plateIron = <ore:plankWood>; //<ore:plateIron>; // replaced with vanilla material for testing



//remove initially
recipes.remove(ironChestPlate);


//Add staged recipe in blacksmith table
Worktable.addStagedRecipeShaped("diagramIronChestBasic", "blacksmith", ironChestPlate, bsHammer, 1, false, [[ingotIron, null, ingotIron],[ingotIron, ingotIron, ingotIron],[ingotIron, ingotIron, ingotIron]]);

Worktable.addStagedRecipeShaped("diagramIronChestAdvanced", "blacksmith", ironChestPlateAdv, bsHammer, 1, false, [[ingotIron, null, ingotIron],[plateIron, ingotIron, plateIron],[ingotIron, ingotIron, ingotIron]]);

Steps:

  1. Load MC and world
  2. run command /gamestage add @p diagramIronChestBasic
  3. Hover over Blacksmith's table and press U
  4. Nothing from JEI is shown
  5. Hover over Iron Chestplate and press R
  6. No recipes in JEI are shown for the Blacksmith's table
commented

Attempted to reproduce using the same versions as above, but used a different script:

import mods.artisanworktables.Worktable;

Worktable.addStagedRecipeShaped("one", "carpenter", <minecraft:crafting_table>, <ore:carpenters_hammer>, 3, false, [
    [<minecraft:planks>],
    [<minecraft:planks>],
    [<minecraft:planks>]]);

Steps:

  1. Load MC and world
  2. run command /gamestage add @p one
  3. Hover over Carpenter's table and press U
  4. Recipe is shown in JEI as expected
commented

I used the same recipe as in #24 (comment) but I changed the stage name from one to camelCase and the recipe then failed to show in JEI when it was expected to be shown.

The point of failure lies with the case of gamestage names.

commented

Interestingly enough, running the command:

/gamestage info

Displays:

one, diagramironchestbasic, camelcase

GameStages must .toLowerCase() stage names. I should be able to fix this by ensuring that recipe stage names are stored as their lowercase variant.

commented

Well, would'ya look at that.

commented

image

commented

Fix available in 1.12.2-1.7.13

commented

It turns out that this was also an issue in the new recipe system in my feature branch. Fixed!

Thank you very much for taking the time to make a bug report. :)