Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- idRednet = 1808
- m = peripheral.wrap("right")
- rednet.open("back")
- m.setTextColor(colors.red)
- m.setBackgroundColor(colors.black)
- m.clear()
- m.setTextScale(2)
- function aff1()
- m.setCursorPos(6,3)
- m.write("-------")
- m.setCursorPos(7,4)
- m.write("Ghast")
- m.setCursorPos(6,5)
- m.write("-------")
- m.setCursorPos(6,4)
- m.write("|")
- m.setCursorPos(12,4)
- m.write("|")
- end
- function aff2()
- m.setCursorPos(17,3)
- m.write("-------")
- m.setCursorPos(18,4)
- m.write("Witch")
- m.setCursorPos(17,5)
- m.write("-------")
- m.setCursorPos(17,4)
- m.write("|")
- m.setCursorPos(23,4)
- m.write("|")
- end
- function aff3()
- m.setCursorPos(27,3)
- m.write("--------")
- m.setCursorPos(28,4)
- m.write("Zombie")
- m.setCursorPos(27,5)
- m.write("--------")
- m.setCursorPos(27,4)
- m.write("|")
- m.setCursorPos(34,4)
- m.write("|")
- end
- function aff4()
- m.setCursorPos(6,7)
- m.write("----------")
- m.setCursorPos(7,8)
- m.write("Villager")
- m.setCursorPos(6,9)
- m.write("----------")
- m.setCursorPos(6,8)
- m.write("|")
- m.setCursorPos(15,8)
- m.write("|")
- end
- function aff5()
- m.setCursorPos(20,7)
- m.write("-------")
- m.setCursorPos(21,8)
- m.write("Golem")
- m.setCursorPos(20,9)
- m.write("-------")
- m.setCursorPos(20,8)
- m.write("|")
- m.setCursorPos(26,8)
- m.write("|")
- end
- function aff6()
- m.setCursorPos(17,15)
- m.write("---------")
- m.setCursorPos(18,16)
- m.write("Restart")
- m.setCursorPos(17,17)
- m.write("---------")
- m.setCursorPos(17,16)
- m.write("|")
- m.setCursorPos(25,16)
- m.write("|")
- end
- while true do
- aff1()
- aff2()
- aff3()
- aff4()
- aff5()
- aff6()
- event, side, x, y = os.pullEvent("monitor_touch")
- if x > 6 and x < 12 and y > 3 and y < 5 then
- rednet.send(idRednet,"GhastOn")
- end
- if x > 17 and x < 23 and y > 3 and y < 5 then
- rednet.send(idRednet,"WitchOn")
- end
- if x > 27 and x < 34 and y > 3 and y < 5 then
- rednet.send(idRednet,"ZombieOn")
- end
- if x > 6 and x < 15 and y > 7 and y < 9 then
- rednet.send(idRednet,"VillagerOn")
- end
- if x > 20 and x < 26 and y > 7 and y < 9 then
- rednet.send(idRednet,"GolemOn")
- end
- if x > 17 and x < 25 and y > 15 and y < 17 then
- rednet.send(idRednet,"Restart")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement