Skip to content

Input: Add Ctrl+Q shortcut to drop entire item stack#998

Open
Alezito2008 wants to merge 2 commits intosmartcmd:mainfrom
Alezito2008:feat/drop-stack
Open

Input: Add Ctrl+Q shortcut to drop entire item stack#998
Alezito2008 wants to merge 2 commits intosmartcmd:mainfrom
Alezito2008:feat/drop-stack

Conversation

@Alezito2008
Copy link
Contributor

Description

Implements Ctrl+Q shortcut allowing players to drop entire item stacks at once

Changes

Previous Behavior

Pressing the drop key only triggered the drop item action, dropping a single item regardless of any modifier keys.

Root Cause

The input handling logic lacked modifier key detection for the drop action

New Behavior

Pressing Q while holding Control now drops the entire stack of items

Fix Implementation

  • Input: Added KEY_CONTROL constant (mapped to VK_CONTROL) in KeyboardMouseInput.h.
  • Logic: Updated the input tick to detect if Control is pressed when the drop action is active.
  • Network: Refactored MultiplayerLocalPlayer::drop(bool dropAll) to switch between DROP_ITEM and DROP_ALL_ITEMS packet actions based on the boolean parameter.

AI Use Disclosure

None

Related Issues

@Alezito2008
Copy link
Contributor Author

Minecraft.2026-03-08.22-26-19.2.mp4

@loinmin
Copy link

loinmin commented Mar 9, 2026

HECK YA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Suggestion] CTRL Q to drop full stack

2 participants