Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "Cyclic Assembler Schematic Swapper v1.0"
- function tprint(t, indent)
- if not indent then indent = 0 end
- if type(t) == "table" then
- for k,v in pairs(t) do
- if type(v)=="table" then
- print(string.rep(" ",indent),k," | ",v)
- tprint(v, indent+1)
- else
- print(string.rep(" ",indent),k," | ",v)
- end
- end
- else
- print(type(t), t)
- end
- end
- ass = peripheral.wrap("bottom")
- methods = ass.listMethods()
- --tprint(methods)
- schematics = 0
- stacks = ass.getAllStacks()
- for k,v in pairs(stacks) do
- if v.id == 20262 then
- schematics = schematics + 1
- end
- end
- --tprint(stacks)
- print(schematics," schematics")
- while true do
- for i=4,(2+schematics) do
- sleep(math.ceil(60/schematics))
- ass.swapStacks(1,i)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment