KrisCris / KrisCris/AllStackable

Shift clicking after a craft don't respect stack size.

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
13
Forks
11
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
If we set the stack size for an item less than what a recipe give, you can keep a bigger stack in the inventory with shift click.

**To Reproduce**
Steps to reproduce the behavior:
1. Make the stack size of door 2 or less `/allstackable set minecraft:oak_door 1`.
2. Go to a crafting table and craft three doors.
3. You can keep the 3 doors stacked with shift click (work in inventory and containers).
4. If you take the 3 doors with the mouse cursor, the game will force you to make stack of size 1 on deposit.

**Expected behavior**
Shift clicking should split the stack into multiple one, according to max size option. If the target doesn't have enough space keep the remaining items in the source slot.

**Version (please complete the following information):**
- Minecraft Version: 1.20.4
- Mod Version 2.0,0
- Java Version 17.0.8

And of course, thank you for the wonderful mod!

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue at a crafting table using `/allstackable set minecraft:oak_door 1`, then trace the shift-click transfer entry point for inventories and containers. Done means crafted stacks are split to the configured maximum, with any items that do not fit remaining in the source slot.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.