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

Knowledge book is removed when the interaction result is `fail`

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 19w38b, 19w42a, 19w45b, 1.15 Pre-release 5, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w14a, 20w16a, 20w17a, 20w18a, 20w20b, 1.16 Pre-release 5, 1.16.1, 1.16.2 Pre-release 1, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4, 20w45a, 20w46a, 20w48a
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Items, Player
    • Mojang Priority:
      Low

      Description

      The bug

      When a player uses a knowledge book, the player's interaction hand is emptied regardless of the interaction result.

      How to reproduce

      1. /gamemode survival
        
      2. /replaceitem entity @s weapon.mainhand minecraft:knowledge_book
        
      3. /replaceitem entity @s weapon.offhand minecraft:knowledge_book
        
      4. Use the item
         The items in the player's both hands are removed and the following warnings are printed
        Tag not valid: null
        Tag not valid: null
        

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              intsuc intsuc
              Votes:
              8 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: