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,2)
- mon.write("Witherskelet = OFF")
- mon.setCursorPos(2,4)
- mon.write("Enderman = OFF")
- mon.setCursorPos(2,6)
- mon.write("Blaze = OFF")
- while true do
- event,side,x,y = os.pullEvent("monitor_touch")
- if x > 2 and x < 19 and y == 2 then
- rs.setOutput("top",true)
- mon.setCursorPos(2,2)
- mon.clearLine()
- mon.blit("Witherskelet = OFF","000000000000000000","dddddddddddddddddd")
- elseif x > 2 and x < 18 and y == 2 and rs.getOutput("top") == true then
- rs.setOutput("top",false)
- mon.setCursorPos(2,2)
- mon.clearLine()
- mon.blit("Witherskelet = ON","00000000000000000","eeeeeeeeeeeeeeeee")
- elseif x > 4 and x < 15 and y == 4 and rs.getOutput("bottom") == false then
- rs.setOutput("bottom",true)
- mon.setCursorPos(2,4)
- mon.clearLine()
- mon.blit("Enderman = OFF","00000000000000","dddddddddddddd")
- elseif x > 4 and x < 14 and y == 4 and rs.getOutput("bottom") == true then
- rs.setOutput("bottom",false)
- mon.setCursorPos(2,4)
- mon.clearLine()
- mon.blit("Enderman = ON","0000000000000","eeeeeeeeeeeee")
- elseif x > 6 and x < 12 and y == 6 and rs.getOutput("bottom") == false then
- rs.setOutput("bottom",true)
- mon.setCursorPos(2,6)
- mon.clearLine()
- mon.blit("Blaze = OFF","00000000000","ddddddddddd")
- elseif x > 6 and x < 11 and y == 6 and rs.getOutput("bottom") == true then
- rs.setOutput("bottom",false)
- mon.setCursorPos(2,6)
- mon.clearLine()
- mon.blit("Blaze = ON","0000000000","eeeeeeeeee")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement