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 > 1 and x < 19 and y == 2 then
- rs.setOutput("top",true)
- mon.setCursorPos(2,2)
- mon.clearLine()
- mon.blit("Witherskelet = OFF","000000000000000000","eeeeeeeeeeeeeeeeee")
- elseif x > 1 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","ddddddddddddddddd")
- elseif x > 4 and x < 15 and y == 4 and rs.getOutput("right") == false then
- rs.setOutput("bottom",true)
- mon.setCursorPos(2,4)
- mon.clearLine()
- mon.blit("Enderman = OFF","00000000000000","eeeeeeeeeeeeee")
- elseif x > 4 and x < 14 and y == 4 and rs.getOutput("right") == true then
- rs.setOutput("bottom",false)
- mon.setCursorPos(2,4)
- mon.clearLine()
- mon.blit("Enderman = ON","0000000000000","ddddddddddddd")
- elseif x > 6 and x < 12 and y == 6 and rs.getOutput("left") == false then
- rs.setOutput("bottom",true)
- mon.setCursorPos(2,6)
- mon.clearLine()
- mon.blit("Blaze = OFF","00000000000","eeeeeeeeeee")
- elseif x > 6 and x < 11 and y == 6 and rs.getOutput("left") == true then
- rs.setOutput("bottom",false)
- mon.setCursorPos(2,6)
- mon.clearLine()
- mon.blit("Blaze = ON","0000000000","dddddddddd")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement