EntityDropItemEvent is not fired for item frame drops
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- java
调研方向
Start by tracing HangingEntity#spawnAtLocation and compare it with the Entity#spawnAtLocation event-firing path described in the issue. Reproduce the four item-frame cases using the attached plugin source and output. Done means establishing whether hanging-entity drops should fire EntityDropItemEvent and, if so, verifying it fires for the frame and its contents.
由索引模型根据 Issue 内容生成。
描述
Expected behavior
Should EntityDropItemEvent fire for the frame item and its contents, with the frame as the source? Or are hanging entities intentionally excluded?
Observed/Actual behavior
Destroying an item frame with an explosion fires HangingBreakEvent and ItemSpawnEvent, but no EntityDropItemEvent.
Reproduced for normal and glow item frames, both empty and containing a diamond. Empty frames produce one item drop; filled frames produce two. EntityDropItemEvent fires zero times in all four cases.
Steps/models to reproduce
- Extract the attached reproduction archive.
- Put
frame-drop-probe.jarinplugins/on a fresh Paper test server with a new world. - Start the server and read the console or
plugins/FrameDropProbe/result.txt.
The plugin creates and destroys all four frame variants automatically with World#createExplosion(location, 3.0f, false, false). It uses only the Bukkit API, with no NMS or manually dispatched events. The archive includes the source and test output.
Plugin and Datapack List
Only FrameDropProbe 1.0. Datapacks: vanilla (built-in), paper (built-in).
Paper version
This server is running Paper version 26.3-222-main@e3ba7b1 (2026-10-24T13:18:21Z) (Implementing API version 26.3.build.222-stable)
You are running the latest version
Java: Eclipse Adoptium Temurin 25.0.4.1+1-LTS, macOS aarch64.
Other
HangingEntity#spawnAtLocation calls addFreshEntity directly, bypassing the Entity#spawnAtLocation overload that fires EntityDropItemEvent.
Is this intentional, or should hanging-entity drops use the event-firing path?
- 主要语言
- Java
- 星标
- 12.8k
- 派生
- 3.6k
- 平均合并
- 4 天 13 小时
- 30 天内合并 PR
- 46
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PaperMC/Paper 的其他 Issue
-
Cancelled interact event should not send a swing packet.可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭status: needs triage
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
Add .getIgniter() to ExplosiveMinecart可能已有人在做 @WouterGritter 于 42 天前认领。 未关闭status: needs triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
BlockType#isOccluding is incorrectly handled可能已有人在做 @ryoji-ikeda 于 186 天前认领。 未关闭status: accepted
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Crafter PrepareItemCraftEvents always have null recipe可能已有人在做 @Doc94 于 1 天前认领。 未关闭status: accepted version: 26.3
难度 3/5 1-2 天 新手友好度 65/100
维护者通常 1 天内回复
-
status: needs triage version: 26.3
难度 3/5 1-2 天 新手友好度 72/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
oracle/graalvm-reachability-metadata#11472 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 89/100
objectionary/hone-maven-plugin#1353 ·
维护者通常 9 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
Update samples to Citrus 5.1.0可能已有人在做 @asuruceanu 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复