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("Kuh")
- mon.setCursorPos(2,3)
- mon.write("Huhn")
- mon.setCursorPos(2,5)
- mon.write("Pferd")
- mon.setCursorPos(20,2)
- mon.write("Spawner")
- mon.setCursorPos(20,4)
- mon.write("Grinder")
- mon.setCursorPos(20,6)
- mon.write("Notaus")
- while true do
- event,side,x,y = os.pullEvent("monitor_touch")
- if x > 1 and x < 6 and y == 1 and rs.getBundledOutput("left",2^9) == false then
- rs.setBundledOutput("left",2^9,true)
- mon.setCursorPos(2,1)
- mon.clearLine()
- mon.blit("Kuh","000","555")
- elseif x > 1 and x < 6 and y == 1 and rs.getBundledOutput("left",2^9) == true then
- rs.setBundledOutput("left",2^9,false)
- mon.setCursorPos(2,1)
- mon.clearLine()
- mon.blit("Kuh","000","eee")
- elseif x > 1 and x < 7 and y == 3 and rs.getBundledOutput("left",2) == false then
- rs.setBundledOutput("left",2,true)
- mon.setCursorPos(2,3)
- mon.clearLine()
- mon.blit("Huhn","0000","5555")
- elseif x > 1 and x < 7 and y == 3 and rs.getBundledOutput("left",2) == true then
- rs.setBundledOutput("left",2,false)
- mon.setCursorPos(2,3)
- mon.clearLine()
- mon.blit("Huhn","0000","eeee")
- elseif x > 1 and x < 8 and y == 5 and rs.getBundledOutput("left",1) == false then
- rs.setBundledOutput("left",1,true)
- mon.setCursorPos(2,5)
- mon.clearLine()
- mon.blit("Pferd","00000","55555")
- elseif x > 1 and x < 8 and y == 5 and rs.getBundledOutput("left",1) == true then
- rs.setBundledOutput("left",1,false)
- mon.setCursorPos(2,5)
- mon.clearLine()
- mon.blit("Pferd","00000","eeeee")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement