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

Books with more than 100 pages get cut off when upgraded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.5 Pre-Release 1
    • 24w10a, 24w11a, 24w12a
    • None
    • Community Consensus
    • Datafixer, Items
    • Important
    • Platform

      When upgrading an older world with a book that has more than 100 pages to version 24w09a+, any pages after #100 are deleted.

      The expected behavior would be for the book to keep all its pages and be upgraded properly.

      How to reproduce:

      1. Create a world in version 1.20.4.
      2. Type the following command in a command block, and power it to give yourself a written book with 105 pages:
        /give @p minecraft:written_book{title:"105",author:"test",pages:["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "100", "101", "102", "103", "104", "105"]}
      1. Upgrade the world to the latest snapshot.
      2. Notice how the book now only has 100 pages.

            gegy1000 [Mojang] Gegy
            Ellivers Ellivers
            Votes:
            9 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: