[SPIGOT-7816] Regression: Dying players drop their loot table at wrong position (breaking data packs that detect these items) Created: 04/Jul/24  Updated: 25/Dec/24  Resolved: 04/Jul/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Grant Gryczan Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Attachments: Zip Archive SPIGOT-7816.zip    
Issue Links:
Duplicate
duplicates SPIGOT-7806 Drops in PlayerDeathEvent and EntityD... Resolved
Problem/Incident
is caused by SPIGOT-7800 Dying players drop items at wrong pos... Resolved
Relates
relates to SPIGOT-7806 Drops in PlayerDeathEvent and EntityD... Resolved
Version: CraftBukkit version 4254-Spigot-491f367-c3ceeb6 (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

When I reported SPIGOT-7800, I noted it was very important that the player's loot table drops at their feet just like any other entity, and not at the position where their inventory drops (0.3 blocks below their eyes).

Despite this, the fix for SPIGOT-7800 moves the drops for both the player's inventory and their loot table to be 0.3 blocks below their eyes. Before the fix, the loot table did drop at the correct location, and only the player's inventory dropped at the wrong location.

You can test this using the same reproduction steps as SPIGOT-7800, but also install the minimal reproduction data pack attached to this issue. Following those steps with this data pack installed, a player head from the player's loot table should drop on the bottom layer of carpets, while any inventory items should drop on the top layer of carpets.

Currently, both the inventory and the player head drop on the top layer of carpets, preventing any data pack (such as the Vanilla Tweaks Graves data pack) from distinguishing between which items were from the player's inventory and which items were from the player's loot table. (It breaks more than that, but that's just one simple-to-explain example.)



 Comments   
Comment by md_5 [ 04/Jul/24 ]

Duplicate of SPIGOT-7806

Noting also that this should be of slightly lesser impact given it only affects loot tables and not vanilla drops.

Comment by Doc [ 04/Jul/24 ]

Currently and related to https://hub.spigotmc.org/jira/browse/SPIGOT-7806 the drops in CB dont know the origin and works in the same way, then currently the regretion is the only way for the past behaviour and require maybe more changes for allow keep the two logics

Generated at Tue Apr 22 04:41:52 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.