Advertisement
Guest User

startup

a guest
Apr 8th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. while true do
  2.  
  3.   m = peripheral.wrap("top")
  4.  
  5.   if rs.getInput("left",true) ==true then
  6.  
  7.     shell.run("cd disk")
  8.     shell.run("monitor top battleship")
  9.    
  10.     mon.clear()
  11.     mon.setCursorPos(1'1)
  12.    
  13.  else
  14.  sleep(1)
  15.  end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement