Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- configuration section --
- t1 = peripheral.wrap("right")
- t1c = "east"
- StartingFrequency = 1
- EndingFrequency = 4095
- term.clear()
- term.setCursorPos(1,1)
- x,y = term.getSize()
- function termClear()
- term.clear
- term.setCursorPos(1,1)
- end
- function rush(freqStart, freqFinish, ec)
- for i = freqStart,freqFinish do
- ec.setFrequency(i)
- for j = 1,54 do
- z = ec.getStackInSlot(J)
- cx,cy = term.getCursorPos()
- if cx > x-10 then
- term.setCursorPos(1, (cy +1 ))
- end
- if cy > y-2 then
- term.clear()
- term.setCursorPos(1,1)
- end
- if z ~= nil then
- term.write(i.. ",")
- ec.pushItem(t1c, j)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement