Nbt Crafting (Fabric)

Nbt Crafting (Fabric)

630k Downloads

[bug] Remainder Items not retaining NBT data

Tom3s opened this issue ยท 3 comments

commented

Version
Minecraft 1.19.2
Mod version 2.1.4
Describe the bug
Using the data tag in the remainder slot does not produce an item with the NBT data

To Reproduce
Using the JSON

{
    "type": "minecraft:crafting_shapeless",
    "ingredients": [
        [
            {
                "item": "minecraft:shulker_box",
                "data": {
                    "require": {
                        "BlockEntityTag": {
                            "id": "minecraft:shulker_box",
                            "Items": [
                                {
                                    "Slot": 0,
                                    "Count": 64,
                                    "id": "minecraft:emerald"
                                }
                            ]
                        }
                    }
                },
                "remainder":{
                    "item": "minecraft:shulker_box",
                    "data": {
                        "require": {
                            "BlockEntityTag": {
                                "id": "minecraft:shulker_box",
                                "Items": [
                                    {
                                        "Slot": 0,
                                        "Count": 64,
                                        "id": "minecraft:diamond"
                                    }
                                ]
                            }
                        }
                    }
                }
            }
        ]
    ],
    "result": {
        "item": "minecraft:shulker_box",
        "data": {
            "BlockEntityTag": {
                "id": "minecraft:shulker_box",
                "Items": [
                    {
                        "Slot": 0,
                        "Count": 64,
                        "id": "minecraft:coal"
                    }
                ]
            }
        }
    }
}

And crafting with a Shulker Box with a stack of emeralds will give a shulker box with a stack of coal, but the remaining box in the crafting grid will be empty

Expected behavior
In the given example the remaining shulker box should have a stack of diamonds inside

Additional context
Trying to add crafting recipes with filled shulker boxes

commented

Hi, thanks for reporting this issue.

Are you by chance using the KubeJS mod?

commented

Are you by chance using the KubeJS mod?

no, I'm not

commented

I realized there was a syntax mistake in my JSON file, it works correctly