Advertisement
Guest User

test

a guest
Feb 6th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 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. term.setBackgroundColor(64)
  14.  
  15.  
  16. while true do
  17. event,side,x,y = os.pullEvent()
  18.  if event == "monitor_touch" then
  19.   if x == 3 and  y == 3 then
  20.   redstone.setOutput("left", true)
  21.   end
  22.  end
  23. end
  24.  
  25.  
  26. while true do
  27. event,side,x,y = os.pullEvent()
  28.  if event == "monitor_touch" then
  29.   if x == 4 and y == 3 then
  30.   redstone.setOutput("left", false )
  31.   end
  32.  end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement