Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("front")
- mon.clear()
- mon.setTextScale(1.5)
- mon.setCursorPos(2,1)
- mon.write("Enderman")
- mon.setCursorPos(2,3)
- mon.write("Blaze")
- mon.setCursorPos(2,5)
- mon.write("Androit")
- mon.setCursorPos(20,2)
- mon.write("Licht =")
- mon.setCursorPos(20,4)
- mon.write("Grinder =")
- while true do
- event,side,x,y = os.pullEvent("monitor_touch")
- if x > 1 and x < 11 and y == 1 then
- rs.setOutput("left",true)
- mon.setCursorPos(2,1)
- mon.clearLine()
- mon.blit("Enderman","00000000","dddddddd")
- sleep(2)
- rs.setOutput("left",false)
- mon.setCursorPos(2,1)
- mon.clearLine()
- mon.blit("Enderman","00000000","eeeeeeee")
- elseif x > 1 and x < 7 and y == 3 then
- rs.setOutput("right",true)
- mon.setCursorPos(2,3)
- mon.clearLine()
- mon.blit("Blaze","00000","ddddd")
- sleep(2)
- rs.setOutput("right",false)
- mon.setCursorPos(2,3)
- mon.clearLine()
- mon.blit("Blaze","00000","eeeee")
- elseif x > 1 and x < 11 and y == 5 then
- rs.setOutput("back",true)
- mon.setCursorPos(2,5)
- mon.clearLine()
- mon.blit("Androit","0000000","ddddddd")
- sleep(2)
- rs.setOutput("back",false)
- mon.setCursorPos(2,5)
- mon.clearLine()
- mon.blit("Androit","0000000","eeeeeee")
- elseif x > 19 and x < 33 and y == 2 and rs.getOutput("top") == false then
- rs.setOutput("top",true)
- mon.setCursorPos(20,2)
- mon.clearLine()
- mon.blit("Licht = OFF","00000000000","ddddddddddddd")
- elseif x > 19 and x < 33 and y == 2 and rs.getOutput("top") == true then
- rs.setOutput("top",false)
- mon.setCursorPos(20,2)
- mon.clearLine()
- mon.blit("Licht = ON","0000000000","eeeeeeeeeeee")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement