Items held with the cursor will drop upon death with the keepInventory gamerule enabled
When a player dies while holding any item(s) in their mouse cursor (in an inventory, or GUI for example) the stack will be removed from that player's inventory and drop as an item entity, even if the keepInventory gamerule is enabled.
Steps to Reproduce:
(Must be in survival mode, with cheats enabled)
- Enable 'keepInventory':
/gamerule keepInventory true - Take continuous damage (ie; stand near a cactus, in fire, falling. etc)
- Before dying, open your inventory and hold an item in your cursor
Expected & Observed Behavior:
- What ever you're holding will drop on the ground as an entity where you died.
- The items would be returned to the player inventory.
2016-02-15, 07:12 PM
2024-06-28, 03:45 AM
10
7
Minecraft 16w07a - 1.21
Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w32a, Minecraft 16w35a, Minecraft 16w36a, Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.13.1, 1.14.4, 19w41a, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 20w48a, 21w03a, 21w05b, 21w06a, 21w07a, 1.17, 1.19.4, 1.20.4, 24w04a, 1.20.5, 1.21
-