-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 1.11.2, Minecraft 17w16b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 5, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 17w45a, Minecraft 17w47a, Minecraft 17w48a, Minecraft 18w01a, Minecraft 18w07a, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w19b, Minecraft 18w20c, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre5, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w31a, Minecraft 18w32a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w03c, Minecraft 19w04a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 1.14.2, 1.14.4, 19w34a, 19w37a, 19w39a, 19w41a, 19w42a, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15, 1.15.1, 1.15.2, 20w06a, 20w09a, 20w10a, 20w11a, 20w13a, 20w18a, 1.16 Pre-release 2, 1.16 Pre-release 5, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w46a, 20w48a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 21w18a, 1.17 Pre-release 2, 1.17, 1.17.1, 1.18 Pre-release 1, 1.18 Pre-release 6, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.2, 22w42a, 1.19.3, 23w07a, 1.20.2, 23w45a, 1.20.5 Pre-Release 4, 1.20.5, 1.20.6, 24w19b, 24w21b, 1.21
-
Confirmed
-
Creative
-
Inventory
-
Normal
-
Gameplay
When you hover over stacks of items in the creative inventory and drop them using either ctrl + q over multiple stacks, or press and hold q over single item stacks, some items will be deleted. This does not occur for survival, or adventure mode.
Steps to Reproduce:
- Fill your inventory with stacks of items
- Hold down either q or ctrl + q
- In quick succession, hover over the item stacks in your inventory
Observed Behavior:
A majority of the items will be deleted.
Expected Result:
None of the items would be deleted, and all would be dropped.
Screenshots/Videos:
Code Analysis:
(by tomudding)
The reason for this appears to be the ServerGamePacketListenerImpl.dropSpamTickCount. If the threshold is reached the server simply does not not drop an item, however it does not inform the client of that.
(24w18a, Mojang mapping names)
public void handleSetCreativeModeSlot(ServerboundSetCreativeModeSlotPacket var1) { PacketUtils.ensureRunningOnSameThread(var1, this, (ServerLevel)this.player.serverLevel()); if (this.player.gameMode.isCreative()) { boolean var2 = var1.slotNum() < 0; ItemStack var3 = var1.itemStack(); if (!var3.isItemEnabled(this.player.level().enabledFeatures())) { return; } . . . boolean var7 = var1.slotNum() >= 1 && var1.slotNum() <= 45; boolean var8 = var3.isEmpty() || var3.getCount() <= var3.getMaxStackSize(); if (var7 && var8) { this.player.inventoryMenu.getSlot(var1.slotNum()).setByPlayer(var3); this.player.inventoryMenu.broadcastChanges(); } else if (var2 && var8 && this.dropSpamTickCount < 200) { this.dropSpamTickCount += 20; this.player.drop(var3, true); } } }
Original Description:
The bug
When you hover over an item in your creative inventory and hold Q to drop those items (fast drop, because you hold Q), some items disappear, but when you are in survival (gamemode 0) zero items get deleted.
Example
Here is an example in video: Minecraft_116618.mp4
Code analysis
20w09a, Mojang names
The reason for this appears to be the ServerGamePacketListenerImpl.dropSpamTickCount. If the threshold is reached the server simply does not not drop an item, however it does not inform the client.
- is duplicated by
-
MC-128162 Fix the bug with dropping items from creative menu (sometimes disappearing items).
- Resolved
-
MC-132513 When you jump to the location in the item bar and press the "Q" key, picking up will delete the number of items
- Resolved
-
MC-135630 Dropping item with Q deletes item
- Resolved
-
MC-136846 Item stacks lost when tossing quickly in creative mode
- Resolved
-
MC-139232 Stack deleting bug
- Resolved
-
MC-149583 Item stacks get smaller if you hover over them in inv then hold Q
- Resolved
-
MC-157047 Blocks disappearing in creative
- Resolved
-
MC-158415 Deletion of held item while throwing from GUI
- Resolved
-
MC-159021 27 stacks of 64 items when dropped some disappear.
- Resolved
-
MC-159093 Items get deleted or duplicate in bubble elevator
- Resolved
-
MC-159916 Dropping item rapidly in creative mod make some items disappear.
- Resolved
-
MC-161205 objects are deleted when pulled in creative mode
- Resolved
-
MC-165376 Dropping Items Deletes Some/Entire Stack
- Resolved
-
MC-167922 Dropping items out of your inventory deletes the items
- Resolved
-
MC-193657 Items get deleted when using the 'hold down q to drop items quickly' functionality
- Resolved
-
MC-201372 Holding down Q while in the inventory causes you to lose items
- Resolved
-
MC-209126 Items that do not stack randomly despawn in Minecraft.
- Resolved
-
MC-216583 Holding down Q key to drop a item makes less items when you pick them up
- Resolved
-
MC-216650 Dropping many items in quick succession from the inventory UI results in some of those items being lost
- Resolved
-
MC-230737 Items not dropping
- Resolved
-
MC-244966 Items in creative mode disappear if dropped in a certain way
- Resolved
-
MC-245506 items disappearing when dropped in creative mode
- Resolved
-
MC-251196 Items dissapear when thrown out in creative.
- Resolved
-
MC-255730 Dropping multiple stacks of items from an inventory onto the ground in a short period of time causes some of the stacks to be deleted
- Resolved
-
MC-256618 Speed dropping items in creative loses a lot
- Resolved
-
MC-258531 When ever I have a full inventory filled with items in creative mode, it picks up every item on the ground and makes them disappear
- Resolved
-
MC-258668 items halve when pressing Q on inventory in Creative Mode
- Resolved
-
MC-258716 When dropping a stack of 64 items in creative mode, you can only pick up 13.
- Resolved
-
MC-266515 Ctrl + Q / Long Holding Q dropping Items causes items disappear in Creative Mode
- Resolved
-
MC-267138 Stacks of Items disapear after throwing them on ground very quickly
- Resolved
-
MC-271111 Containers with component labels cannot be copied properly in creative mode
- Resolved
-
MC-271295 Items disappear when picking up
- Resolved
-
MC-273987 Items Disappearing after dropping from inventory.
- Resolved
-
MC-274346 Items disappear when you use "CTRL+Q" very quickly
- Resolved
-
MC-274552 When throwing many slots of items out of your inventory is quick succession, some get deleted.
- Resolved
-
WEB-7471 Items are lost when dropping from inventory in creative mode
- Resolved
- relates to
-
MC-154881 Dropping an item from your hotbar at the same time as switching to another hotbar slot desyncs the second item
- Open
-
MC-134399 Creative mode itemDropThreshold is not considered in all situations
- Resolved
-
MC-170863 Dropping item stacks from the player's hotbar in any creative inventory tab other than "Survival Inventory" deletes items
- Resolved
-
MC-187016 Losing items when dropping them from inventory or from droppers
- Resolved
-
MC-118107 Action of some keys continuously repeat if you hold them
- Open
-
MC-252651 Items sometimes disappear when dropping them in creative mode
- Open
-
MC-23039 Dropped item disappear in Creative
- Resolved