We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

1473

NBT tags in custom recipes

86 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 5
    Registered User commented
    Comment actions Permalink

    For real, must have feature. Can't rely on constantly running functions or having "drop on floor" recipes.

  • 7
    Registered User commented
    Comment actions Permalink

    This seems so easy to add! I've seen no good excuses so far.

    {
    "type": "smelting",
    "ingredient": {
    "item": "minecraft:egg"
    },
    "result": "minecraft:yellow_dye",
    "nbt": {display:{Name:'{"text":"Egg Yolk"}'}},
    "experience": 0.1,
    "cookingtime": 200
    }
  • 4
    Registered User commented
    Comment actions Permalink

    yes! although not very useful for adventure maps, as you can just give the player a normally unobtainable item, it would be very useful for datapacks, as trying to use unobtainable items in a datapack can lead to compatibility problems with multiple datapacks using the same item.

  • 3
    Registered User commented
    Comment actions Permalink

    we can add somes customs model in the game we can a some craft and recipes but we cant add some craft of custom model

  • 4
    Registered User commented
    Comment actions Permalink

    As of 1.14.2 this could be implemented in ~3 lines, totaling 152 characters (not including variable names, and not taking the likely similar server code into account, and assuming an unnecessary error that may indicate that this was originally planned is replaced with the aforementioned lines).

  • 5
    Registered User commented
    Comment actions Permalink

    Though I've commented here before, I have since learned a lot about the JSON file format, and have realized why they may not have done this; in JSON, you cannot just do this:

    {
    "type": "smelting",
    "ingredient": {
    "item": "minecraft:egg"
    },
    "result": "minecraft:yellow_dye",
    "nbt": {display:{Name:'{"text":"Egg Yolk"}'}},
    "experience": 0.1,
    "cookingtime": 200
    }

    because the {} must be used correctly, the nbt tag would not work that way. However, (though it may take more work than we might think to implement) it is not impossible to engineer a solution. Personally, I think that this is an endeavor that Mojang should add and focus on in their next update (blank blocks for texture pack makers would be good too as well ;) ) and I would be extraordinarily happy to see this come to the game.

  • 7
    Registered User commented
    Comment actions Permalink

    I think that it wold be easier to pass a NBT string instead

    {
    "type": "smelting",
    "ingredient": {
    "item": "minecraft:egg"
    },
    "result": "minecraft:yellow_dye",
    "nbt": "{display:{Name:'{\"text\":\"Egg Yolk\"}'}}",
    "experience": 0.1,
    "cookingtime": 200
    }

    An other possible solution could be a JSON Object

    {
    "type": "smelting",
    "ingredient": {
    "item": "minecraft:egg"
    },
    "result": "minecraft:yellow_dye",
    "nbt": {
    "display":{
    "Name": "{\"text\":\"Egg Yolk\"}",
    "Lore": [
    "{\"text\":\"Lore line 1\"}"
    ]
    }
    },
    "experience": 0.1,
    "cookingtime": 200
    }

     

  • 4
    Registered User commented
    Comment actions Permalink

    This would be so useful for survival adventure maps.

  • 4
    Registered User commented
    Comment actions Permalink

    Please add this as a datapack creator i need it

  • 5
    Registered User commented
    Comment actions Permalink

    Yea, this needs to be a thing, the amount of stuff you could do with this is insane.

  • 4
    Registered User commented
    Comment actions Permalink

    Without nbt craftings we can't make custom items craftable and we need to use our own Custom Crafters or use the horrible drop craftings. Please! Mods could be replaced by datapacks in lots of fields with this feature and other ones. Minecraft Java would be better than Bedrock.

    Listen players, listen us, listen your community! Thanks

  • 3
    Registered User commented
    Comment actions Permalink

    Even just being able to set the name or custom model data would be great.

    That would allow you to do custom nbt crafting by editing the nbt of any item with the specified name or model data.

  • 2
    Registered User commented
    Comment actions Permalink

    How and why is this not under review still? Such an update could lead to more flexibility in Data pack development.

  • 2
    Registered User commented
    Comment actions Permalink

    Still not added in 1.16, I also am a datapack creator and this would be really useful

  • 2
    Registered User commented
    Comment actions Permalink

    Here is a hack job solution using villagers, although keep in mind that it is still quite limiting in the items required whereas the output can have all the nbt your heart desires. Keep in mind that the durability of the items going into the trade on the left must match the required asking durability. In most cases you may find it best to remove it.

    summon villager ~ ~ ~ {VillagerData:{profession:cleric,level:6},Offers:{Recipes:[{buyB:{id:bow,tag:{Damage:0},Count:1},buy:{id:emerald,Count:16},sell:{id:bow,tag:{Damage:0,Enchantments:[{id:punch,lvl:1}]},Count:1},rewardExp:0b,maxUses:9999999},{buyB:{id:stone_axe,tag:{Damage:71},Count:1},buy:{id:emerald,Count:16},sell:{id:stone_axe,tag:{Damage:11,Enchantments:[{id:knockback,lvl:1}]},Count:1},rewardExp:0b,maxUses:9999999},{buyB:{id:stone_sword,tag:{Damage:101},Count:1},buy:{id:emerald,Count:16},sell:{id:stone_sword,tag:{Damage:71,Enchantments:[{id:knockback,lvl:1}]},Count:1},rewardExp:0b,maxUses:9999999},{buyB:{id:bow,tag:{Damage:0},Count:1},buy:{id:emerald,Count:32},sell:{id:bow,tag:{Damage:0,Enchantments:[{id:power,lvl:1}]},Count:1},rewardExp:0b,maxUses:9999999},{buyB:{id:stone_axe,tag:{Damage:71},Count:1},buy:{id:emerald,Count:32},sell:{id:stone_axe,tag:{Damage:11,Enchantments:[{id:sharpness,lvl:1}]},Count:1},rewardExp:0b,maxUses:9999999},{buyB:{id:stone_sword,tag:{Damage:101},Count:1},buy:{id:emerald,Count:32},sell:{id:stone_sword,tag:{Damage:71,Enchantments:[{id:sharpness,lvl:1}]},Count:1},rewardExp:0b,maxUses:9999999}]}}

  • 5
    Registered User commented
    Comment actions Permalink

    Srsly? This has been a thing now for over 2 Years!? when will it finally be implemented in the game? I mean seriouls,y it can't be that hard to do.... -.-

  • 4
    Registered User commented
    Comment actions Permalink

    Just make the crafting result have the same syntax as a loot table entry or something. My god it would open so many doors!!

  • 3
    Registered User commented
    Comment actions Permalink

    Although we can simulate a system just like vanilla crafting table(even the Shift operation) in datapack,it is rather inconvenient.

  • 3
    Registered User commented
    Comment actions Permalink

    100% Agree.

    My and my friend like to create servers for each other to play on, and see who makes the better one.

    Custom crafting recipes is a big focus, and all the plugins for it are sort of buggy.

    I learned that you can make datapacks with custom crafting recipes, but this should already be in the game.

    I really want to make a datapack with custom crafting recipes so i can put it on other worlds, too!

  • 3
    Registered User commented
    Comment actions Permalink

    It's been over two years and this hasn't been implemented yet... What if the only feature added was Tags:["...", ...] where they are tags that can be detected via commands?

     

    Honestly not sure why this hasn't been implemented yet. Minecraft is a great not only as a game in itself as Survival but as a platform to make games. This is such a key feature in doing that and it really has been overlooked/not given enough attention.

  • 2
    Registered User commented
    Comment actions Permalink

    2020. Don't give up. Minecraft should have this. 

  • 2
    Registered User commented
    Comment actions Permalink

    Still wanting this! It surely can't be that hard to add as a feature. So many other parts of data packs can use NBT tags already. Even if it is difficult to implement for some reason, it would open up so many possibilities for map makers, and it would be an excellent step towards making data packs into a proper modding API like what people have been asking for for years.

  • 2
    Registered User commented
    Comment actions Permalink

    This is a Great idea and i absolutely think it should be added!

  • 1
    Registered User commented
    Comment actions Permalink

    Hi

  • 1
    Registered User commented
    Comment actions Permalink

    That would be amazing for datapacks!

  • 1
    Registered User commented
    Comment actions Permalink

    Yes! Especially as the https://www.curseforge.com/minecraft/mc-mods/nbt-crafting mod exists.

  • 3
    Registered User commented
    Comment actions Permalink

    The point of custom crafting recipes is for data pack creators to have an easy way to be able to craft their custom items. Those custom items are nothing but regular items with extra NBT to make them unique. If there is no NBT then what's the point? To craft uncraftable items?

  • 1
    Registered User commented
    Comment actions Permalink

    This would absolutely revolutionize maps and data packs. Yes please!

  • 0
    Registered User commented
    Comment actions Permalink

    This would be very useful!!

  • 0
    Registered User commented
    Comment actions Permalink

    This would be amazing for anyone who makes servers mod or maps! Kinda a shame they don't already have it.