Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-163716

Cannot craft dispenser using recipe book if inventory contains enchanted bow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.0.20 Preview, 1.19.80.21 Preview, 1.19.40, 1.19.50, 1.21.21 Hotfix, 1.21.43 Hotfix
    • Survival
    • Confirmed
    • Multiple
    • 935648

      When there is an enchanted bow inside the inventory hotbar, player cannot craft a dispenser using the recipe book even though required items are available in inventory.

      Crafting a dispenser manually seems to work fine by placing blocks into crafting table space without using recipe book.

      Steps to reproduce:

      1. Place an enchanted bow in in your hotbar. (Which enchantment/s doesn't matter.)
      2. Place an unenchanted bow in the next slot to the right, or in any slot of main inventory.
      3. Place 7 cobblestone and 1 redstone anywhere in your inventory.\
      4. Enter survival mode.
      5. Open the crafting table UI and click on the dispenser recipe in the recipe book. Note that the recipe slot has a red background indicating that it cannot be crafted.

      Observed result:
      The slot in the recipe book has a red background to indicate that it cannot be crafted. The crafting grid shows a red background behind the bow to indicate that the ingredient was not found in inventory.

      Expected result:
      The enchanted bow is ignored. The dispenser is crafted using the unenchanted bow.

      Additional information and root cause analysis:
      Note that if you swap the positions of the enchanted and unenchanted bows, the item can be crafted using the recipe book.

      The problem occurs because the recipe book logic scans inventory for any bow but cannot craft the item with an enchanted bow. If it finds an enchanted bow first, it accepts it as a match and stops searching, but then disqualifies it when trying to craft. It should instead skip enchanted bows while searching, just as Java Edition does.

      Note that this behavior is the result of a patch applied in the 1.16.0.51 Beta release of 12/Feb/2020. It was listed on the changelog as "Enchanted bows are no longer consumed when auto-crafting dispensers".

      Workaround

      This issue can be easily circumvented by ensuring that an unenchanted bow is found before the enchanted bow. The simplest way is to swap the positions of the two bows before using the recipe book. The enchanted bow can be restored to its original position after crafting.

        1. bow.png
          15 kB
          DNS Crypt
        2. no_craft.png
          87 kB
          DNS Crypt
        3. yes_craft.png
          141 kB
          DNS Crypt

            dnscrypt DNS Crypt
            Votes:
            15 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: