Advertisement
Guest User

startup

a guest
Feb 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local monitor = peripheral.wrap("top")
  2.  
  3. term.scroll(1)
  4.  
  5. while true do
  6.   local val = redstone.getBundledInput("left")
  7.   os.sleep(0.1)
  8.   monitor.clear()
  9.   monitor.setCursorPos(1,1)
  10.   monitor.setTextScale(5)
  11.   monitor.write("val: ")
  12.   monitor.write(val)
  13.   term.clear()
  14.   term.setCursorPos(1,1)
  15.   term.write(val)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement