Skip to content

Conversation

@Bituvo
Copy link

@Bituvo Bituvo commented Aug 25, 2025

With this pull request, the drawer controller can now distribute item operations across several drawers. When inserting, items will automatically spread to drawers with available space. When retrieving, items can be pulled from multiple drawers simultaneously. In contrast, the old behavior only allowed inserting into or extracting from one drawer slot at a time. This new behavior is toggleable via a checkbox in the drawer controller formspec (off by default).

Drawers themselves have not been changed, only the drawer controller has updated behavior.

Closes #99.

Examples

Note: my default stack size is set to 150.

Requesting items image

Each drawer has 5 default:dirt.

image

The Luacontroller requests 15 default:dirt.

image

The drawers are empty and I now have 15 default:dirt. Mission successful.

Inserting items image

Each drawer has 4,750 default:wood, 50 below their maximum capacity.

image

I insert 150 default:wood into the drawer controller.

image

Each drawer is now completely full, with 4800 default:wood. Mission successful.

@Bituvo Bituvo changed the title Request item Distribute controller operations across multiple drawers Aug 25, 2025
@Bituvo Bituvo marked this pull request as draft August 25, 2025 14:33
@Bituvo Bituvo marked this pull request as ready for review August 25, 2025 23:57
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.

Drawer controllers don't distribute output queries

1 participant