Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(32768)
- term.clear()
- local m = peripheral.wrap("back")
- local mx, my = m.getSize()
- m.setTextScale(1)
- term.setTextColor(1)
- term.setCursorPos(1,1)
- print("[O]---------Zentral-Rechner---------[x]")
- while true do
- event, side, x, y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 2 and y == 1 then
- term.setCursorPos(1,3)
- term.setTextColor(1)
- print("[O] Programmauswahl")
- while true do
- event, side, x, y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 2 and y == 3 then
- term.setCursorPos(1,5)
- term.setTextColor(2)
- print("Ghast-Spawner")
- term.setCursorPos(20,5)
- term.setTextColor(8192)
- print("[O]")
- term.setCursorPos(25,5)
- term.setTextColor(16384)
- print("[X]")
- term.setCursorPos(1,6)
- term.setTextColor(2)
- print("Wither-Spawner")
- term.setCursorPos(20,6)
- term.setTextColor(8192)
- print("[O]")
- term.setCursorPos(25,6)
- term.setTextColor(16384)
- print("[X]")
- term.setCursorPos(1,7)
- term.setTextColor(2)
- print("Pigman-Spawner")
- term.setCursorPos(20,7)
- term.setTextColor(8192)
- print("[O]")
- term.setCursorPos(25,7)
- term.setTextColor(16384)
- print("[X]")
- term.setCursorPos(1,8)
- term.setTextColor(2)
- print("Witch-Spawner")
- term.setCursorPos(20,8)
- term.setTextColor(8192)
- print("[O]")
- term.setCursorPos(25,8)
- term.setTextColor(16384)
- print("[X]")
- term.setCursorPos(1,9)
- term.setTextColor(2)
- print("Endermann-Spawner")
- term.setCursorPos(20,9)
- term.setTextColor(8192)
- print("[O]")
- term.setCursorPos(25,9)
- term.setTextColor(16384)
- print("[X]")
- while true do
- event, side, x, y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 21 and y == 5 then
- term.setCursorPos(1,13)
- term.setTextColor(8192)
- print("Witch-Spawner ist Aktiv ")
- rs.setOutput("right", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 5 then
- term.setCursorPos(1,13)
- term.setTextColor(16384)
- print("Witch-Spawner ist Inaktiv")
- rs.setOutput("right", false)
- elseif event == "monitor_touch" then
- if x == 21 and y == 6 then
- term.setCursorPos(1,14)
- term.setTextColor(8192)
- print("Ghast-Spawner ist Aktiv ")
- rs.setOutput("left", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 6 then
- term.setCursorPos(1,14)
- term.setTextColor(16384)
- print("Ghast-Spawner ist Inaktiv")
- rs.setOutput("left", false)
- elseif event == "monitor_touch" then
- if x == 21 and y == 7 then
- term.setCursorPos(1,15)
- term.setTextColor(8192)
- print("Wither-Spawner ist Aktiv ")
- rs.setOutput("top", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 7 then
- term.setCursorPos(1,15)
- term.setTextColor(16384)
- print("Wither-Spawner ist Inaktiv")
- rs.setOutput("top", false)
- elseif event == "monitor_touch" then
- if x == 21 and y == 9 then
- term.setCursorPos(1,16)
- term.setTextColor(8192)
- print("Endermann-Spawner ist Aktiv ")
- rs.setOutput("bottom", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 9 then
- term.setCursorPos(1,16)
- term.setTextColor(16384)
- print("Endermann-Spawner ist Inaktiv")
- rs.setOutput("bottom", false)
- elseif event == "monitor_touch" then
- if x == 21 and y == 8 then
- term.setCursorPos(1,17)
- term.setTextColor(8192)
- print("Pigman-Spawner ist Aktiv ")
- rs.setOutput("front", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 8 then
- term.setCursorPos(1,17)
- term.setTextColor(16384)
- print("Pigman-Spawner ist Inaktiv")
- rs.setOutput("front", false)
- elseif event == "monitor_touch" then
- if x == 38 and y == 1 then
- rs.setOutput("right", false)
- rs.setOutput("left", false)
- rs.setOutput("top", false)
- rs.setoutput("bottom", false)
- rs.setOutput("front", false)
- sleep(0.1)
- shell.run("clear")
- shell.run("startup")
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement