KubeJS (Old)

KubeJS (Old)

3M Downloads

Added shapeless recipes do not respect input items nbt

zigman32 opened this issue ยท 2 comments

commented

Minecraft Version

1.18.2

KubeJS Version

1802.5.2-build.428

Rhino Version

1802.1.12-build.171

Architectury Version

4.4.60

Forge/Fabric Version

Forge 40.1.14

Describe your issue

When trying to create a shapeless recipe where one of the input items requires specific nbt, the recipe works regardless of weather or not the item has the specified nbt. Shaped recipes do not have this issue.

Crash report/logs

No response

commented

Can you provide the script snippet you used to create the recipe please? (the entire event handler)

commented

Was able to recreate it:
event.shapeless("minecraft:emerald", ["minecraft:diamond", Item.of('minecraft:wooden_sword', "{Damage:0,display:{Name:'[{\"text\":\"shaped\"}]'}}")])

edit: I just used /kubejs hand to get the item. Which should in theory work.
Edit2: Yeah it's in the docs as-well. The provided doc's don't work for 1.18.2 .

Test output
image
The registered recipe
image