GregTechCEu Modern

GregTechCEu Modern

6M Downloads

.addMaterialInfo in kube-js does not work with tags

Pyritie opened this issue ยท 0 comments

commented

Checked for existing issues

  • I have checked for existing issues, and have found none.

Tested latest version

  • I have checked that this occurs on the latest version.

GregTech CEu Version

gtceu-1.20.1-7.1.2-SNAPSHOT+20250804-144009-ee0cf6a

Minecraft Version

1.20.1 Forge

Recipe Viewer Installed

EMI

Environment

Singleplayer

Cross-Mod Interaction

No

Other Installed Mods

TerraFirmaGreg

Expected Behavior

If I have a shaped/machine recipe that uses tag ingredients (like 1x #forge:plates/steel, I expect to see that ingredient reflected in the recycling recipes via .addMaterialInfo(...).

Actual Behavior

Inputs that use the 1x #forge:plates/steel format are ignored when generating recycling recipes.
Using Ingredient.of('#forge:plates/steel', 1) does work, as does ChemicalHelper.get(...).

Steps to Reproduce

Make a recipe like this:

    event.recipes.gtceu.shaped('minecraft:dirt', true, [
        'BAB',
        'AAA',
        'BAB'
    ], {
        A: '#forge:plates/steel',
        B: '#forge:rods/steel'
    })

See that the recipe shows up fine, but there is no recycling recipe.
Change the inputs to one of the other two above formats, then see that there is a recycling recipe.

Additional Information

https://discord.com/channels/701354865217110096/1089296351906504835/1402048583938605197