PaperMC / PaperMC/Paper

Putting NBT Storage in Written Books doesn't work

Open
#12,280 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage version: 1.21.4
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

Really cool vanilla feature that is used a lot in mapmaking doesn't seem to work with Paper:
Putting NBT storage inside of a Written/Writable Book makes the NBT storage appear inside the book.

Observed/Actual behavior

Putting NBT storage inside of a Written/Writable Book gives you a blank book.

Steps/models to reproduce
  • Run the command: /data modify storage numbers 123 set value '["123"]'
  • Run the command: /give @p written_book[written_book_content={title:"",author:"",pages:['{"nbt":"123","storage":"numbers","interpret":true}']}] 1
Plugin and Datapack List

Plugins:
WorldEdit

Paper version

This server is running Paper version 1.21.4-209-main@f0388e2 (2025-03-12T10:27:34Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.4-12-c17ef64 (MC: 1.21.4)

Other

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the /data modify storage and /give commands in the report, then trace Paper's written/writable book handling for NBT storage and interpreted pages. Done means the book displays the stored value 123 instead of appearing blank; no source file or test is identified in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.