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

Smithing table GUI issue with custom recipes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w31a
    • 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 6
    • None
    • Confirmed
    • Crafting, Items
    • Normal
    • Expansion A

      There is an inconsistency with the behavior of shift+click in smithing table gui when a datapack adds a recipe that uses a trim material item (eg: gold ingot, iron ingot, amethyst shard...) as the smithing template (as in a recipe that uses, f.e., a gold ingot as the smithing template, and something else in the third slot). This does not apply to other items, which behave as expected.

      Observed Behavior:

      Shift+click on the item in the inventory will not put the item in the template slot, when the materials slot (third slot) is empty the item will be put in there, when the material slot is already occupied by something else shift+click on the item will not move it at all.

      You can manually drag the item in the template slot with the mouse and it will work.

      Expected behavior:

      To keep consistency with other workbenches, when shift+click is used the item should be put in the materials slot, and if it's already occupied it should be automatically transported to the template slot. The reverse would also work.

      How to reproduce:

      • Download the attached datapack (it adds two new recipes for the netherite axe, both using a diamond axe in the second slot and netherite ingot in the third slot, but one uses a gold ingot as the smithing template and the other uses a dirt block).
      • Create a test world with said datapack.
      • Get a gold ingot, a dirt block and a netherite ingot in your inventory
      • Open a smithing table
      • Shift+click on the dirt block --> It gets placed in the template slot, as expected
      • Shift+click on the gold ingot --> It gets placed in the third slot, as expected
      • Now place the netherite ingot in the third slot
      • Shift+click on the gold ingot --> It will not be placed in the template slot, contrary to what happens with the dirt block (this is the issue)
      • Try placing the gold ingot in the template slot manually --> this works as expected

      As you can see there is an inconsistency with the behavior of shift+click depending if the item is considered an armor trim material or not. This should be fixed as shift+click in any other workbench's gui will place the item in its next available slot if one of them is already occupied (eg: blaze powder in brewing stands, which can go in both the fuel and ingredient slots).

       

            elvendorke [Mojang] elvendorke
            ArrotinoD ArrotinoD
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: