fabianthielen

ComputerCraft Monitor Redstone

Oct 11th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. monitor = peripheral.wrap("back")
  2. monitor.setTextScale(5)
  3.  
  4. while not rs.getInput("bottom", true) do
  5.  sleep(0.1)
  6. end
  7.  if rs.getInput("bottom", true) then
  8.  shell.run("clear")
  9.  monitor.write("...")
  10.  sleep(0.1)
  11.  end
  12.  shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment