SilentChaos512 / Treasure-Bags

Minecraft mod: Loot bags created with data packs
MIT License
1 stars 5 forks source link

REQUEST shaped and shapless NBT crafting #5

Open hotdog95 opened 4 years ago

hotdog95 commented 4 years ago

REQUEST

I like the fact that there's a way to craft the treasure bags, a nessessary feature because NBT crafting isn't possible, I just thought that it would be interesting to change that up a little and instead of being shaped and shapless bag crafting, be NBT crafting to support more than just the bags, currently only a fabric mod exists like this, and it is something I have totally needed. My solution was to utilise your mod to craft a treasurebag that gave the item with the NBT data on it as a 100% chance item.

Partonetrain commented 4 years ago

I'm pretty sure Forge has this natively. Example meme recipe:

{
    "type": "crafting_shapeless",
    "ingredients": [{
        "item": "minecraft:carrot"
    }, {
        "item": "minecraft:pufferfish"
    }],
    "result": {
        "type": "forge:nbt",
        "item": "minecraft:pufferfish",
        "count": 1,
        "nbt": {
            "display": {
                "Name": "{ \"text\": \"AUGH\" }"
            }
        }
    }
}

"type": "forge:nbt" should work for both ingredients and results.