GregTechCEu Modern

GregTechCEu Modern

6M Downloads

kjs can't input item with nbt in recipe

gjmhmm8 opened this issue · 4 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

build 615

Recipe Viewer Installed

None

Environment

Singleplayer

Cross-Mod Interaction

Yes

Other Installed Mods

dev

Expected Behavior

.

Actual Behavior

can‘t input item with nbt by kubejs

Steps to Reproduce

.itemInputs(Item.of('gtceu:tempered_glass', "{RepairCost:0,display:{Name:'{"text":"test"}'}}"))

Additional Information

commented

I believe that by default KubeJS ignores NBT inputs in recipes.

commented

try doing .strongNBT() at the end?

commented

what exactly is there to "fix" here?

commented

what exactly is there to "fix" here?

KubeJS is unable to add items with NBT data as materials.