
Iron's Spells 'n Spellbooks
Earlier I posted asking help on how to automate crafting the different inks in Iron's. One guy gave me the idea to use a pattern provider and after a WHILE of fooling around with sequencers I decided on SFM. Here is the SFM script.
For this exact setup you will need:
- Factory Manager
- Label Gun
- Program Disk
- Simple Clicker (Advanced one if you want to have the entangled block)
- Alchemist Cauldron
- 2 Storage blocks
- Comparator
- Alchemist Cauldron
- ME Buffer
- Pattern Provider
- 4 Level Emitters
- 4 Crafting Cards
- A not gate
- A timer
- Some redstone
This is the completed setup with labels shown. It is far from perfect, but is what I settled on. SFM puts sticks in a barrel to signal the clicker from Just Dire Things. This avoids it constantly removing the ingot from the brewer. Set the clicker to the redstone high mode. The buffer is just there to auto pull items from the provider.
Setup your patterns like this.
Lock the crafting until a result is returned.
Level emitters into a not gate and a timer set at 5 ticks.
You can simply change the code to "every 20 ticks do" if you want to avoid this part.
I did it so that SFM does not run when there is no craft ongoing and to make it run faster. The level emitters have crafting cards and are set to emit while crafting. The redstone is fed into a not gate from More Red but ofc you can do the classic redstone fed into block holding a redstone torch. The timer from RFToolsUtility has "pause while redstone active" checked and I have it set to 5 ticks. It is probably important to match the tickrate of the clicker to the timer.
You can replaced the entangled block with the brewer itself as well as a simple clicker.