Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Items moved to GUI don't drop on death

Open sexnine opened this issue 1 month ago • 1 comments

Expected behavior

There are blocks that when you interact with them, they open a GUI. When you move items into the GUI, you can exit out and those items are returned to your inventory. This includes enchanting tables, anvils, smithing tables, looms, stonecutters, etc.

Upon death while having the GUI open, the items that were in the GUI should drop. This is the behavior of the vanilla server.

Observed/Actual behavior

While having the GUI open, upon death, the items in the GUI are not dropped. They items effectively disappear.

Steps/models to reproduce

  • Start a Paper server (1.21.10 build 117) with default configuration and join.
  • Interact with a block (eg: enchanting table).
  • Move item(s) (eg: tool and lapis lazuli) into GUI.
  • Die (by any method, eg: being slain by a monster) with the GUI still open.
  • Observe the items do not drop.

Plugin and Datapack List

None.

Paper version

paper version [23:02:58 INFO]: Checking version, please wait... [23:02:58 INFO]: This server is running Paper version 1.21.10-117-ver/1.21.10@df4b668 (2025-11-30T22:37:28Z) (Implementing API version 1.21.10-R0.1-SNAPSHOT) You are running the latest version Previous version: 1.21.10-115-af06383 (MC: 1.21.10)

Other

An interesting note is after death, the items are seemingly moved into the player's inventory, but when respawning the inventory is empty.

sexnine avatar Dec 09 '25 12:12 sexnine

Confirmed, looks like the process for close "GUI" its called after all the death event happen causing the item being added later and ignored based in the event.

Doc94 avatar Dec 09 '25 13:12 Doc94