[Question] Written book NBT data broken

Discussion in 'Community Discussion' started by JDHallows, Nov 20, 2024 at 9:15 PM.

  1. Hello! I've ran into a small issue I'm hoping to get some feedback on to help me make a decision.

    I have a "system" that relies on signed books to function. The signed written books are a type of "key" that a redstone system sorts to determine whether certain functions should work. The keys can be acquired through Empire Shop Signs that are tied to each book.

    However, I haven't touched this system in a while, and I've discovered that the NBT data for the signed books has changed based on where the item was stored. This has broken several systems.
    • The Master Original copies were stored in the original author's vault; these still function as expected with my shop signs but not with the redstone systems.
    • All books stored in the redstone systems in chests and hoppers have different NBT data from the Masters, so they no longer work with shop signs but they do still work with the redstone machines.
    • Any books stored by other players in different vaults do not work in shop signs or the redstone machines. These books also have completely different NBT data.
    Since I have no way to fix the NBT data for all books across the server, I have to pick one of the following scenarios:
    1. Replace all books in the redstone systems with new copies of my Master Originals, forcing all players to collect all new books.
    2. Replace Master Originals and shop signs creating copies from the redstone system, forcing all players to collect all new books.
    3. Replace Master Originals, shop signs, and redstone system books with copies from other vault so that all existing player copies work in the system.
    4. (Edit: Tuqueque's suggestion) Replace/redo all books with new books, to ensure all bugs are cleared.
    Any thoughts? Thanks!
  2. 3 isn’t as guaranteed so I would cross it off… if books in vaults from two different players had different nbt tags, it is possible to be the case that every single player has unique nbt tags on their books. you might be placed in the same situation immediately after fixing it

    you could try to collect as many as many erroneous copies and set up buy shop signs, while giving back new copies to any who returned the bugged ones

    If you are going to force everyone to collect new books. I would consider making a new set of books since the Originals and any of its different copies could be bugged . That way you don’t introduce any errors from using a potentially bugged item from the very beginning. That way it stays working as long as possible
  3. This does make sense, though the way I understand books making copies of my Master Originals (which all shop signs still recognize btw) should be the same as starting over. However, my Master Copies were created in MC 1.14/1.15, so there is a point to be made that maybe recreating them now in 1.20 would prevent future NBT issues, assuming future conversions would be smoother from 1.20 versus older versions. I'll have to create a couple new books and see how the NBT compares to my master originals, just to see how different they look.

    Thanks!
    Tuqueque likes this.
  4. Just did some testing - the NBT data for brand new books looks quite different from all of the other ones!

    Based on this, I am inclined to follow Tuq's advice and replace all master copies, redstone system copies, and shop signs to use entirely new books. That will take a lot longer than the other options, but might ensure better longevity into later MC versions.

    Thanks again!
    Tuqueque likes this.