mojira.dev
MC-269320

Books with more than 100 pages get cut off when upgraded

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.

Comments 1

Ellivers

gegy

Community Consensus

Platform

Important

Datafixer, Items

24w10a, 24w11a, 24w12a

1.20.5 Pre-Release 1

Retrieved