"Tag not valid: null" when a knowledge book is used
Linked Issues
- Unresolved
intsuc- 11
- 5
- Confirmed
Low
- Platform
- Items Player
- knowledge_book
19w38b - 1.20.2
19w38b 19w42a 19w45b 1.15-pre5 1.15.2 20w06a 20w07a 20w08a 20w09a 20w10a 20w11a 20w12a 20w14a 20w16a 20w17a 20w18a 20w20b 1.16-pre5 1.16.1 1.16.2-pre1 1.16.2 1.16.3 1.16.4-pre1 1.16.4 20w45a 20w46a 20w48a 20w51a 21w03a 1.16.5 1.17.1 21w37a 1.18.1 1.18.2 1.19 1.19.1 1.19.2 22w42a 1.20.2
Created Issue:
Knowledge book is removed when the interaction result is `fail`
When a player uses a knowledge book, the player's interaction hand is emptied regardless of the interaction result.
Steps to reproduce
/replaceitem entity @s weapon.mainhand minecraft:knowledge_book
/replaceitem entity @s weapon.offhand minecraft:knowledge_book
- Use the item.
The items in the player's both hands are removed.
When a player uses a knowledge book, the player's interaction hand is emptied regardless of the interaction result.
Steps to reproduce
/replaceitem entity @s weapon.mainhand minecraft:knowledge_book
/replaceitem entity @s weapon.offhand minecraft:knowledge_book
- Use the item.
The items in the player's both hands are removed.
When a player uses a knowledge book, the player's interaction hand is emptied regardless of the interaction result.
Steps to reproduce
/replaceitem entity @s weapon.mainhand minecraft:knowledge_book /replaceitem entity @s weapon.offhand minecraft:knowledge_book- Use the item.
The items in the player's both hands are removed.
When a player uses a knowledge book, the player's interaction hand is emptied regardless of the interaction result.
Steps to reproduce
/replaceitem entity @s weapon.mainhand minecraft:knowledge_book /replaceitem entity @s weapon.offhand minecraft:knowledge_book- Use the item.
The items in the player's both hands are removed.
When a player uses a knowledge book, the player's interaction hand is emptied regardless of the interaction result.
Steps to reproduce
/gamemode survival /replaceitem entity @s weapon.mainhand minecraft:knowledge_book /replaceitem entity @s weapon.offhand minecraft:knowledge_book- Use the item.
The items in the player's both hands are removed.
When a player uses a knowledge book, the player's interaction hand is emptied regardless of the interaction result.
Stepsto reproduce
/gamemode survival /replaceitem entity @s weapon.mainhand minecraft:knowledge_book /replaceitem entity @s weapon.offhand minecraft:knowledge_book- Use the item.
The items in the player's both hands are removed.
The bug
When a player uses a knowledge book, the player's interaction hand is emptied regardless of the interaction result.
How to reproduce
/gamemode survival /replaceitem entity @s weapon.mainhand minecraft:knowledge_book /replaceitem entity @s weapon.offhand minecraft:knowledge_book- Use the item
→The items in the player's both hands are removed
The bug
When a player uses a knowledge book, the player's interaction hand is emptied regardless of the interaction result.
How to reproduce
/gamemode survival /replaceitem entity @s weapon.mainhand minecraft:knowledge_book /replaceitem entity @s weapon.offhand minecraft:knowledge_book- 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
relates to
The bug
When a player uses a knowledge book,
the player's interaction hand is emptied regardless of the interaction result.How to reproduce
/gamemode survival /replaceitem entity @s weapon.mainhand minecraft:knowledge_book /replaceitem entity @s weapon.offhand minecraft:knowledge_book- 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
Knowledge book is removed when the interaction result is `fail`"Tag not valid: null" when a knowledge book is used.
"Tag not valid: null" when a knowledge book is used.
The bug
When a player uses a knowledge book, an error message is printed.
How to reproduce
/gamemode survival /item replace entity @s weapon.mainhand with minecraft:knowledge_book- Use the item
→The following error message is printed.
Tag not valid: null
Relates to MC-161559

Here's the updated command usage for the second reproduction step:
Can confirm in 1.18.2. This error is logged in both the game output and server consoles.
You do realize that the game output is both the client and server log in singleplayer right? It's only printed in server logs (and as such also game log in singleplayer).
Can confirm in 1.19. user-f2760, yes I do realize that; I was just clarifying