Skip to content

Lectern Block Entity appears in the world When utilizing The MenuType API #13438

@Y2Kwastaken

Description

@Y2Kwastaken

Expected behavior

I expect the Lectern to not appear while utilizing the MenuType and builder API

Observed/Actual behavior

A Lectern appears in the world

Steps/models to reproduce

Create a lectern with the API. And it will appear at the player's location

LecternView lecternView = MenuType.LECTERN.create(player);
lecternView.setPage(3);
lecternView.setItem(0, item);
lecternView.open();

Plugin and Datapack List

No Plugins or datapacks

Paper version

Latest clone from master through the runDevServer task.

This server is running Paper version 1.21.11-DEV (2025-12-26T18:24:42Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
You are running a development version without access to version information
Previous version: 25w46a-DEV (MC: 25w46a)

Other

Using a second player I confirmed the following behavior. A lectern appears under the following cricumstances.

  • If Player1 creates a Lectern InventoryView from the MenuType API
  • While having the lectern open if Player2 destroys the lectern that appears after Player1 opens it a page change occurs a new lectern appears
  • Any State change to the lectern will cause the lectern to re-appear

Comes down to most likely these two methods
LecternBlock#resetBookState -> Creates the block upon book insertion or removal
LecternBlock#signalPageChange -> Creates the block again upon page change

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 1.21.11Game version 1.21.11version: 1.21.4Game version 1.21.4

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions