Inventory shift API - #1
Merged
Merged
Conversation
…ployment; update docs and CNAME configuration
TheNick24
approved these changes
Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Something we've noticed is the following: Implementing shift-click into the block inventories is a large hassle we'd like to avoid to re-implement in all menus. The main pain-point is Shift-click filtering:
When shift-clicking into a slot, there is no way of knowing where the item ends up and to re-route it or just block some slots. To do that, large parts of the inventory code need to be overridden with new behaviour, even though this is generally a often-desired feature in both vanilla inventories and custom menus that interact with items, such as machines.
Also, the rules for shift-clicking and normal item deposition differ sometimes, for example on the input field of the furnace. You may not shift-click fuels into the input slot, but you can put it in using a normal click.
Our solution for this is rule-based, see the implementation and docs for more details. Here's the proposition text: