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

Knowledge Books no longer function properly with a stack size of 1 in survival/adventure mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w21a
    • 24w19a, 24w20a
    • None
    • Community Consensus
    • Crafting
    • Important
    • Platform

      In a recent snapshot, a bug was fixed where knowledge books in a stack of more than 1 would consume the entire stack at once upon use. It seems that by fixing that bug, something else broke in the case of a stack-size of 1: they just no longer work at all.

      Here's an example of the observed behavior:

      1. Type /give @s knowledge_book[recipes=["minecraft:flint_and_steel"]]
      2. Making sure you don't have the flint_and_steel recipe unlocked already, go to survival mode and use the knowledge book. The recipe won't be unlocked.
      3. Now give yourself another one, go to Creative mode, and use it. It WILL unlock the recipe.
      4. Type /give @s knowledge_book[recipes=["minecraft:flint_and_steel"],max_stack_size=2] 2
      5. Revoke the recipe, go back to survival, and use the book. This time the recipe will be unlocked.

      It seems like there's an issue with the case where the stack no longer exists after using the book (ie, the stack only has a size of 1, and the book is consumed, so you must not be in creative mode).

       

      Thanks to roseprose for originally pointing this out!

            Dat12 [Mojang] etanaratsastaja
            stormconure Conure
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: