mojira.dev
MC-269324

Book resolved:0b no longer a valid search parameter

Previously an unread written_book had "resolved:0b" parameter that was searchable with commands, now it no longer shows with a data check, even if the give command stated it.
Resolved:1b is searchable with command after book is resolved though.

 

/give @p minecraft:written_book[minecraft:written_book_content={pages:['[{"text":"Page1, "},{"selector":"@s","color":"red"}]'],title:'Anything',author:'Blank',generation:2,resolved:0b}]

 

While holding unopened book using, /data get, you'll be unable to find "resolved:0b"

/data get entity @p SelectedItem

Open the book, repeat the data get command and you'll see it now displays the "resolved:1b".

Another command to prove the point, just change the following {resolved:1b} to "0b" to see that before reading the same search is not possible using the new components system.

/execute if entity @a[nbt={SelectedItem:{components:{"minecraft:written_book_content":{resolved:1b}}}}] run say toot

 

Attachments

Comments 7

What version was the resolved tag present in? I'm unable to use the command in the description on 1.20.4 to check if it was present there.

Please update the description with further clear information on how to reproduce this bug.

The previous update this worked on was 1.20.2

So is the command in the description meant to work in 1.20.4/Latest snapshot? Or is it the bug that it no longer works?

Sorry for my delayed correction to this bug report, {resolved:0b} is not in the normal generation of a written book. {resolved:1b} only generates after a book is read. However in the 1.20.2 version, when adding {resolved:0b} into custom nbt in the /give commands, the read book would replace the '0b' with the '1b' and be able to be identified in data get commands.
With custom NBT move to custom_data, {resolved:0b} can not be placed in a /give command and be detected as changed state because the normal {resolved:1b} is not custom_data and the placement of the {resolved:0b} in the original posts' command is not saved as part of the written_book components.

 

I can confirm in 1.21.1:

[media][media]

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

The written_book_content component predicate can be used to match the resolved field without comparing item NBT 🙂

Pete Frisky

(Unassigned)

Community Consensus

Commands

24w10a, 1.21.1

Retrieved