Refined Storage

Refined Storage

115M Downloads

Autocrafter ignoring pattern order

Closed this issue ยท 1 comments

commented

Describe the bug

Making a pattern that goes into a machine where the order matters,
It looks like it inserts the items in alphabetical order and not pattern order

This is the pattern:
Image
This is the result:
Image

How can we reproduce this bug or crash?

  1. Make pattern
  2. Add to autocrafter facing an inventory
  3. Look in inventory output
  4. Items are in wrong order.

What Minecraft version is this happening on?

Minecraft 1.21.1

What NeoForge or Fabric version is this happening on?

21.1.145

What Refined Storage version is this happening on?

2.0.0-beta.2

Relevant log output

commented

Adding to this issue, as I've encountered this myself in the latest version of RS as of writing.

Describe the issue

I was trying to craft tier 4 Addons from More Industrial Foregoing Addons, which involves inputting both a fluid and some items into a Dissolution Chamber from Industrial Foregoing. Specifically, the tier 4 Addons require a fluid experience. In my case, I use XP Fluid from Just Dire Things. This is my pattern configuration for the tier 4 Processing addon.

Image

From the image above, we can assume that the RS Autocrafter will try to put in the items in the Chamber first, then the fluid. Curiously, it seems that it tries to put XP Fluid in first. There is another recipe in the Chamber that turns fluid experience into Bottle o' Enchanting, which ends up happening here, and the items that are inserted afterwards got voided.

This behavior is confirmed when I hook the Autocrafter up to an ME Ingredient Buffer from ExtendedAE, as when I initiate the Addon craft, the fluid sits in the first slot of the Buffer.

Image

Reproduction

  • Make an Autocrafter, and either a Dissolution Chamber from Industrial Foregoing, or ME Ingredient Buffer from ExtendedAE. (I have tried observing the behavior with a backpack from Sophisticated Backpacks with a Tank Upgrade, but the Autocrafter just tells me "Machine doesn't accept resource"...). Hook the Autocrafter up to a functioning RS network.
  • Create the processing pattern for the tier 4 Addon. Here, I demonstrated the issue with a tier 4 Processing Addon.
  • Hook the Autocrafter up to the Chamber / Buffer.
  • Initiate the Addon autocraft.
  • Observe the issue as described above.

Versions

Logs

[25Sep2025 22:47:25.145] [Server thread/WARN] [com.refinedmods.refinedstorage.neoforge.autocrafting.ItemHandlerExternalPatternProviderSink/]: com.hrznstudio.titanium.component.inventory.MultiInventoryComponent$MultiInvCapabilityHandler@72930c62 unexpectedly left [1 minecraft:echo_shard, 2 minecraft:glass_pane, 1 alltheores:netherite_gear, 1 mifa:processing_addon_3, 1 minecraft:furnace, 1 minecraft:crafting_table] as a remainder, which has been voided

[25Sep2025 22:47:25.145] [Server thread/WARN] [com.refinedmods.refinedstorage.api.autocrafting.task.ExternalTaskPattern/]: Sink com.refinedmods.refinedstorage.api.network.impl.node.patternprovider.PatternProviderNetworkNode@39d609ff did not accept all inputs for pattern Pattern[id=cf10c9f2-0101-4a14-a381-3e32a184e9f5, layout=PatternLayout[ingredients=[Ingredient[amount=1, inputs=[ItemResource[item=minecraft:sculk, components={}]]], Ingredient[amount=1, inputs=[ItemResource[item=minecraft:echo_shard, components={}]]], Ingredient[amount=1, inputs=[ItemResource[item=minecraft:glass_pane, components={}]]], Ingredient[amount=1, inputs=[ItemResource[item=minecraft:glass_pane, components={}]]], Ingredient[amount=1, inputs=[ItemResource[item=alltheores:netherite_gear, components={}]]], Ingredient[amount=1, inputs=[ItemResource[item=mifa:processing_addon_3, components={titanium:augments=>{Processing=4.0}}]]], Ingredient[amount=1, inputs=[ItemResource[item=minecraft:furnace, components={}]]], Ingredient[amount=1, inputs=[ItemResource[item=minecraft:crafting_table, components={}]]], Ingredient[amount=4000, inputs=[FluidResource[fluid=justdirethings:xp_fluid_source, components={}]]]], outputs=[ResourceAmount[resource=ItemResource[item=mifa:processing_addon_4, components={titanium:augments=>{Processing=5.0}}], amount=1]], byproducts=[], type=EXTERNAL]]