Arc-furnace script now supports 6 furnaces
This commit is contained in:
parent
746dfba940
commit
6574edf0f0
@ -1,20 +1,25 @@
|
|||||||
# It needs an Arc Furnace, that's all!
|
# Connect Arc Furnaces to the screws, that's all!
|
||||||
|
|
||||||
alias Furnace d0
|
|
||||||
|
|
||||||
alias ImportOccupied r0
|
alias ImportOccupied r0
|
||||||
alias Active r1
|
alias Active r1
|
||||||
alias RunFurnace r2
|
|
||||||
|
move r2 0
|
||||||
|
|
||||||
start:
|
start:
|
||||||
yield
|
bdseal dr2 run
|
||||||
ls ImportOccupied Furnace 0 Occupied
|
add r2 r2 1
|
||||||
l Active Furnace Activate
|
bgt r2 5 reset
|
||||||
xor RunFurnace ImportOccupied Active
|
|
||||||
bgtz RunFurnace run
|
|
||||||
j start
|
j start
|
||||||
|
|
||||||
run:
|
run:
|
||||||
bgtz Active start # already running = go to start
|
s dr2 On 1
|
||||||
s Furnace Activate 1
|
l Active dr2 Activate
|
||||||
|
bgtz Active ra
|
||||||
|
ls ImportOccupied dr2 0 Occupied
|
||||||
|
s dr2 Activate ImportOccupied
|
||||||
|
j ra
|
||||||
|
|
||||||
|
reset:
|
||||||
|
yield
|
||||||
|
move r2 0
|
||||||
j start
|
j start
|
Loading…
Reference in New Issue
Block a user