Paper
Paper copied to clipboard
ExperienceOrbMergeEvent not called for all merges
Expected behavior
ExperienceOrbMergeEvent should be fired for all XP orb merges.
Observed/Actual behavior
the event is only fired for merges that occur as a result of one orb being added to the world.
Steps/models to reproduce
- plugin listening to ExperienceOrbMergeEvent
- Disable all forms of entity spawning, gamerules, etc.
- Spawn an xp orb:
/summon minecraft:experience_orb ~ ~-5 ~ {Value: 5} - Spawn 39 other entities (orbs only merge if their entity id difference % 40 == 0)
- Spawn another xp orb with the same value.
- Verify they merged with
/execute as @e[type=experience_orb,distance=..10] run say hi(should only print 1 "hi")
Plugin and Datapack List
none
Paper version
f9f90791e43f396ed12be5e0e8867691fc87dbe7
Other
No response