X

NOTICE

Are you sure you want to report this?

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

801

NBT tags in custom recipes

51 Comments

Post a new comment:

Please sign in to leave a comment.

  • 3
    l33t Cooki3 commented
    Comment actions Permalink

    Yes! This would help datapack makers add custom foods as well. Great idea! I think we've all been waiting for this. Everybody, vote for this; we need it in the game!

  • 2
    Comment actions Permalink

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

  • 2
    Notch100 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
    }
  • 2
    AlonEve 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.

  • 1
    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

  • 2
    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).

  • 3
    l33t Cooki3 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.

  • 2
    BisUm2 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
    }

     

  • 1
    Comment actions Permalink

    This would be so useful for survival adventure maps.

  • 1
    Comment actions Permalink

    Please add this as a datapack creator i need it

  • 2
    LoganatorV commented
    Comment actions Permalink

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

  • 1
    UltroGhastYT 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

  • 1
    seattleowl 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.

  • 0
    Nullmaton 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.

  • 0
    Sponsje3000 commented
    Comment actions Permalink

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

  • 0
    LoopHule 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}]}}

  • 2
    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.... -.-

  • 0
    Stoo3618 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!!

  • 1
    yanwenchao019 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.

  • 0
    Ryan Daniels 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!

  • 0
    RandomGgames 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.