Advertisement
Guest User

test

a guest
Feb 6th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. term.clear()
  2.  
  3. m = peripheral.wrap("back")
  4. m.setTextScale(3)
  5.  
  6. term.setTextColor(4)
  7. term.setBackgroundColor(64)
  8. term.setCursorPos(3,3)
  9. print ("Ein")
  10. term.setBackgroundColor(64)
  11. term.setCursorPos(4,3)
  12. print("Aus")
  13.  
  14.  
  15. while true do
  16. event,side,x,y = os.pullEvent()
  17.  if event == "monitor_touch" then
  18.   if x == 3 and  y == 3 then
  19.   redstone.setOutput("left", true)
  20.   end
  21.  end
  22. end
  23.  
  24.  
  25. while true do
  26. event,side,x,y = os.pullEvent()
  27.  if event == "monitor_touch" then
  28.   if x == 4 and y == 3 then
  29.   redstone.setOutput("left", false )
  30.   end
  31.  end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement