Skip to content

Generalized autocrafting support for workbench-like containers - #274

Merged
Rongmario merged 2 commits into
CleanroomMC:cleanroomfrom
ZZZank:general-workbench-autocrafting
Nov 13, 2026
Merged

Rongmario merged 2 commits into
CleanroomMC:cleanroomfrom
ZZZank:general-workbench-autocrafting

Conversation

@ZZZank

@ZZZank ZZZank commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

This PR added a fallback mechanism that automaitcally determines the output slot for workbench-like containers, based on this idea: In most workbench-like containers, output slot is an instance of SlotCrafting. So we can assume that, if there's only one SlotCrafting instance, this slot handles output.

I have verified that 3 mods with builtin support (introduced in #252 ), and Crafting Station mod, match this pattern. And I can still get autocrafting support after removing builtin, hardcoded overrides.

Mod Container Slot
Crafting Station CraftingStationContainer SlotFastCraft extends SlotCrafting
FastWorkbench ClientContainerFastBench and ContainerFastBench SlotCraftingSucks extends SlotCrafting
ProjectE PhilosStoneContainer SlotCrafting
TinkersConstruct ContainerCraftingStation SlotCraftingFastWorkbench extends SlotCrafting

@superJK92iscool

Copy link
Copy Markdown

There should also be a check to see if there is more than 1 SlotCrafting instance things don't break (I haven't looked at what it does so it's possible it already does this)

@Wizzerinus

Copy link
Copy Markdown

Already returns -1 if it finds two outputs

@ZZZank
ZZZank force-pushed the general-workbench-autocrafting branch from 9025786 to 92e16c9 Compare November 9, 2026 09:53
@Rongmario
Rongmario merged commit a68abb6 into CleanroomMC:cleanroom Nov 13, 2026
2 checks passed
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.

4 participants