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

Recipe book doesn't always move items when ingredients in crafting grid are unbalanced

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w08b, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 4, 1.17, 1.17.1 Pre-release 1, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 1.18 Pre-release 7, 1.18.2, 1.19 Pre-release 1, 1.19, 1.19.1 Pre-release 4, 1.19.1, 1.19.3, 23w03a, 23w04a, 23w05a, 23w06a, 23w07a, 1.19.4 Pre-release 3, 1.19.4, 23w13a, 23w14a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20.1, 23w31a, 23w32a, 23w33a, 23w35a, 1.20.2 Pre-release 1, 1.20.2 Pre-release 2, 1.20.2, 23w40a, 23w41a, 23w42a, 23w44a, 1.20.4, 24w03b, 24w04a, 24w05a, 24w11a, 24w12a, 1.20.6, 1.21, 1.21.3
    • None
    • Community Consensus
    • Crafting, UI
    • Normal
    • Platform

      The bug

      The recipe book (correctly) auto-fills items based on the minimum stack size of the ingredients that are already in the crafting grid. However, when determining whether the player is holding enough ingredients to perform this action, the calculation uses the maximum stack size. As a result, ingredients sometimes remain in the player's inventory when a recipe is clicked.

      How to reproduce

      Example 1:

      1. Clear all items from your inventory:
        /clear
      2. Ensure you have unlocked the block of iron recipe:
        /recipe give @s iron_block
      3. Give yourself 27 iron ingots and a crafting table:
        /give @s iron_ingot 27
        /give @s crafting_table
      4. Place the crafting table and open it
      5. In the recipe book, click on the block of iron recipe twice
      6. Remove exactly one iron ingot from the crafting grid and place it back into your inventory
      7. Click on the block of iron recipe once
        The iron ingot that you removed from the crafting grid is sent back into the crafting grid
      8. Completely remove one iron ingot from your inventory:
        /clear @s iron_ingot 1
      9. Open the crafting table and repeat steps 5-7
        The iron ingot that you placed back into your inventory is not sent to the crafting grid

      Example 2:

      1. Ensure you are in Survival or Adventure mode:
        /gamemode survival
      2. Clear all items from your inventory:
        /clear
      3. Ensure you have unlocked the torch recipe:
        /recipe give @s torch
      4. Give yourself 3 sticks and 3 pieces of coal:
        /give @s stick 3
        /give @s coal 3
      5. Open your inventory
      6. In the recipe book, click on the torch recipe twice
      7. Remove exactly one stick from the crafting grid and place it back into your inventory
      8. Click on the torch recipe once
        The stick that you removed from the crafting grid is sent back into the crafting grid
      9. Completely remove one piece of coal from your inventory:
        /clear @s coal 1
      10. Repeat steps 5-8
        The stick that you placed back into your inventory is not sent to the crafting grid

            Unassigned Unassigned
            Darth Cobby [Mod] j_p_smith
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: