Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("left")
- m.setBackgroundColor(colours.black)
- m.clear()
- x = 2
- phase = 1
- m.setTextColor(colours.yellow)
- m.setTextScale(1)
- m.setCursorPos(1,1)
- m.write("+---------------------------+")
- m.setCursorPos(1,2)
- m.write("| Traitement des minerais |")
- m.setCursorPos(1,3)
- m.write("| |")
- m.setCursorPos(1,4)
- m.write("| Processus autocrafting |")
- m.setCursorPos(1,5)
- m.write("+---------------------------+")
- while true do
- m.setCursorPos(x, 3)
- m.write(" --- ")
- sleep(0.1)
- if phase == 1 then
- x = x + 1
- elseif phase == 0 then
- x = x - 1
- end
- if x <= 2 then
- phase = 1
- x = 3
- elseif x >= 24 then
- phase = 0
- x = 23
- end
- end
Add Comment
Please, Sign In to add comment