Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "Cyclic Assembler Schematic Cycler v1.1"
- print "by revereddesecration"
- --[[
- To use: place a schematic in the schematic slot and all remaining schematics in the inventory starting from the first inventory slot and continuing to the right. Set the time variable below to choose how long the cycle should be
- ]]
- time = 60 -- seconds per cycle
- ass = peripheral.wrap("bottom")
- schematics = 0
- stacks = ass.getAllStacks()
- for k,v in pairs(stacks) do
- if v.id == 20262 then
- schematics = schematics + 1
- end
- end
- print(schematics, " schematics, ", math.ceil(time/schematics), " seconds per")
- while true do
- for i=4,(2+schematics) do
- sleep(math.ceil(time/schematics))
- ass.swapStacks(1,i)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment