Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function default()
- m = peripheral.wrap("left")
- m.clear()
- m.setTextColor(colors.blue)
- m.setCursorPos(9,1)
- m.write("Mob Spawners")
- m.setTextColor(colors.gray)
- m.setCursorPos(2,2)
- m.write("Click SPAWN to add 10 secs")
- m.setCursorPos(2,3)
- m.write("of Tier 5 Spawning")
- m.setCursorPos(1,5)
- m.setTextColor(colors.white)
- m.setBackgroundColor(colors.gray)
- m.write("Tower 1 - Hostile Mobs ")
- m.setBackgroundColor(colors.black)
- m.setCursorPos(12,6)
- m.setTextColor(colors.blue)
- m.write("Floor")
- m.setCursorPos(1,7)
- m.setTextColor(colors.white)
- m.write("Creeper - 2nd")
- m.setCursorPos(18,7)
- m.setBackgroundColor(colors.red)
- m.write(" SPAWN ")
- m.setBackgroundColor(colors.black)
- m.setCursorPos(1,8)
- m.setTextColor(colors.white)
- m.write("Skeleton - 4th")
- m.setCursorPos(18,8)
- m.setBackgroundColor(colors.red)
- m.write(" SPAWN ")
- m.setBackgroundColor(colors.black)
- m.setCursorPos(1,9)
- m.setTextColor(colors.white)
- m.write("Spider - 6th")
- m.setCursorPos(18,9)
- m.setBackgroundColor(colors.red)
- m.write(" SPAWN ")
- m.setBackgroundColor(colors.black)
- m.setCursorPos(1,11)
- m.setTextColor(colors.white)
- m.setBackgroundColor(colors.gray)
- m.write("Tower 2 - Friendly Mobs ")
- m.setBackgroundColor(colors.black)
- m.setCursorPos(12,12)
- m.setTextColor(colors.blue)
- m.write("Floor")
- m.setCursorPos(1,13)
- m.setTextColor(colors.white)
- m.write("Sheep - 1st")
- m.setCursorPos(18,13)
- m.setBackgroundColor(colors.red)
- m.write(" SPAWN ")
- m.setBackgroundColor(colors.black)
- m.setCursorPos(1,14)
- m.setTextColor(colors.white)
- m.write("Cow - 3rd")
- m.setCursorPos(18,14)
- m.setBackgroundColor(colors.red)
- m.write(" SPAWN ")
- m.setBackgroundColor(colors.black)
- end
- while true do
- default()
- event,side,x,y = os.pullEvent()
- if event == "monitor_touch" then
- if x >= 18 and y == 7 then
- rednet.open("top")
- rednet.broadcast("creeper")
- m.setCursorPos(18,7)
- m.setBackgroundColor(colors.green)
- m.write(" Spawning... ")
- m.setBackgroundColor(colors.black)
- sleep(2)
- else if x >= 18 and y == 8 then
- rednet.open("top")
- rednet.broadcast("skel")
- m.setCursorPos(18,8)
- m.setBackgroundColor(colors.green)
- m.write(" Spawning... ")
- m.setBackgroundColor(colors.black)
- sleep(2)
- else if x >= 18 and y == 9 then
- rednet.open("top")
- rednet.broadcast("spider")
- m.setCursorPos(18,9)
- m.setBackgroundColor(colors.green)
- m.write(" Spawning... ")
- m.setBackgroundColor(colors.black)
- sleep(2)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement