Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("right")
- mon.clear()
- mon.setTextScale(2)
- mon.setCursorPos(2,8)
- mon.write("Enderman")
- mon.setCursorPos(2,10)
- mon.write("Blaze")
- mon.setCursorPos(2,12)
- mon.write("Skeleton")
- mon.setCursorPos(13,8)
- mon.write("Pigman")
- mon.setCursorPos(13,10)
- mon.write("Zombie")
- mon.setCursorPos(13,12)
- mon.write("Creeper")
- mon.setCursorPos(7,2)
- mon.write("Spawner")
- mon.setCursorPos(7,4)
- mon.write("Killer Joe")
- while true do
- event,side,x,y = os.pullEvent("monitor_touch")
- if x > 1 and x < 10 and y == 8 then
- rs.setOutput("back",true)
- mon.setTextScale(2)
- mon.setCursorPos(2,8)
- mon.clearLine()
- mon.blit(" Enderman ","0000000000","dddddddddd")
- sleep(2)
- rs.setOutput("back",false)
- mon.setCursorPos(2,8)
- mon.clearLine()
- mon.blit(" Enderman ","0000000000","eeeeeeeeee")
- elseif x > 1 and x < 7 and y == 3 then
- rs.setOutput("right",true)
- mon.setCursorPos(2,3)
- mon.clearLine()
- mon.blit("Blaze","0000000","ddddddd")
- sleep(2)
- rs.setOutput("right",false)
- mon.setCursorPos(2,3)
- mon.clearLine()
- mon.blit("Blaze","0000000","eeeeeee")
- 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("Spawner = OFF","0000000000000","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("Spawner = ON","000000000000","eeeeeeeeeeee")
- elseif x > 19 and x < 33 and y == 4 and rs.getOutput("bottom") == false then
- rs.setOutput("bottom",true)
- mon.setCursorPos(20,4)
- mon.clearLine()
- mon.blit("Grinder = OFF","0000000000000","ddddddddddddd")
- elseif x > 19 and x < 33 and y == 4 and rs.getOutput("bottom") == true then
- rs.setOutput("bottom",false)
- mon.setCursorPos(20,4)
- mon.clearLine()
- mon.blit("Grinder = ON","000000000000","eeeeeeeeeeee")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement