Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tprint(t)
- for k,v in pairs(t) do
- if type(v) == "table" then
- tprint(v)
- else
- print(k," | ",v)
- end
- end
- end
- print "Cyclic Assembler Cobblestone Compressor 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
- tprint(v)
- 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