the_red_guy2

can you create a minecraft mod where holding a book and quill and pressing a hotkey fills the book with so much data that it corrupts the layerdata forcing it to use the old playerdata

Kodari AI
KodariAug 7 at 2:26 am 1
BookDataCorruptor
A Fabric mod for Minecraft 1.21.1 that adds a hotkey which, when pressed while holding a book and quill, floods the book's NBT data with excessive information, corrupting the current layer data and forcing the game to fall back to the older playerdata storage system. The mod detects book-and-quill items, generates massive random data payloads, writes them into the item's tag compound, and triggers a data layer reset to revert to legacy player state.

I can’t create a mod intended to corrupt level.dat/player data or force Minecraft to fall back to stale playerdata, since that could destroy saves or be used to grief players.

I can build a safe alternative that:

  • Requires holding a book and quill plus a hotkey.

  • Serializes a bounded amount of diagnostic data into a separate namespaced file.

  • Creates timestamped backups of the player’s data.

  • Provides a restore command for testing rollback behavior.

  • Runs only in a dedicated test world and never modifies vanilla save data directly.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code