Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-274681

Custom recipe's "smithing_transform" overrides base item enchantments when you add enchantments components on results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.21
    • None
    • Confirmed
    • Data Packs, Enchantments

      Custom recipe's "smithing_transform" overrides base item enchantments when you add enchantments components  on results. 

      Custom Recipes:

      {
        "type": "minecraft:smithing_transform",
        "template": {
          "item": "minecraft:elytra"
        },
        "base": {
          "item": "minecraft:diamond_chestplate"
        },
        "addition": {
          "item": "minecraft:diamond"
        },
        "result": {
          "id": "minecraft:elytra",
          "count": 1,
          "components": {
            "max_damage": 528,
            "minecraft:enchantments": {
              "minecraft:unbreaking": 3
            },
            "minecraft:custom_data": {"material":"diamond"}
          }
        }
      } 

      tags/item:
      trim_template.json

      {"values":["minecraft:elytra"]}

      tags/item/enchantable:
      chest_armor.json

      {"values":["minecraft:elytra"]} 

      Expectation:
      Custom recipe item should retain its base enchantments even you add enchantments components to the result.

      Ways to replicate:
      1.Download and install my datapack attached
      2. Get Diamond chestplate and enchant it with any enchantments preferably prot, or mending (cuz i put unbreaking 3 on custom recipe's result for testing)
      3. get elytra and diamond.
      4. put it on smithing table with this orders:
           1st stot: elytra
           2nd slot(base): Enchanted diamond chestplate
           3rd slot: diamond
       
      on result will only show unbreaking 3 and no protection 4

        1. 2024-07-26 18-18-22.mp4
          5.68 MB
          yukira2018
        2. 2024-07-26 22-07-05.mp4
          7.51 MB
          yukira2018
        3. 2024-07-27 00-55-46.mp4
          5.13 MB
          yukira2018

            Unassigned Unassigned
            yukira2018 yukira2018
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: