PaperMC / PaperMC/Paper

breaking Lectern doesnt drop non-book items even if contained in the NBT

Open
#12,556 3 comments 0 reactions 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

Regardless of whether it is a book or not, the lectern should drop the itemStack contained in its nbt.

Observed/Actual behavior

The lectern only drops the itemStack in its NBT if its a book

Steps/models to reproduce

store any non-book itemStack in the nbt. eg. using. "/setblock ~ ~ ~ lectern{Book:{id:"minecraft:dirt",count:1}}"
Break the lectern.

Plugin and Datapack List

None

Paper version

This server is running Paper version 1.21.4-147-main@3bd69f2 (2025-02-10T22:59:40Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)\nYou are 83 version(s) behind\nDownload the new version at: https://papermc.io/downloads/paper

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 provided /setblock command, then trace the lectern block's break and item-drop handling. Done means breaking a lectern drops the NBT-contained itemStack for non-book items as well as books, without requiring plugins or datapacks.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.