Open adumbrali opened 9 months ago
1.19.2, 1.20.1
Fabric 1902.6.2-build.15, Fabric 2001.6.3-build.47
Fabric 1902.2.2-build.272, Fabric 2001.2.2-build.6
v6.5.85, v9.1.12
Fabric 43.3.0, Fabric 0.14.22
Create simple shapeless recipes that include NBT. I tried with 1.19.2 and 1.20.1, but both do not include NBT when using Fabric.
ServerEvents.recipes(event => { event.shapeless( Item.of('minecraft:stone_sword', '{Damage:20}').strongNBT(), [Item.of('minecraft:wooden_sword', '{Damage:20}').strongNBT()] ) })
Using .weakNBT() instead did not change the recipe.
No response
I looked into why this happens, it seems to be that the ShapelessRecipe's static function for getting an ItemStack from Json does not read NBT tags when they are present in the result.
Minecraft Version
1.19.2, 1.20.1
KubeJS Version
Fabric 1902.6.2-build.15, Fabric 2001.6.3-build.47
Rhino Version
Fabric 1902.2.2-build.272, Fabric 2001.2.2-build.6
Architectury Version
v6.5.85, v9.1.12
Forge/Fabric Version
Fabric 43.3.0, Fabric 0.14.22
Describe your issue
Create simple shapeless recipes that include NBT. I tried with 1.19.2 and 1.20.1, but both do not include NBT when using Fabric.
Using .weakNBT() instead did not change the recipe.![2023-09-27_04](https://github.com/KubeJS-Mods/KubeJS/assets/88441637/9c5aceaa-c69e-478a-bd72-28b8db08ea80)
Crash report/logs
No response