Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ StartFarm ]]--
- KillBots = {21,22,23,24,25,26}
- term.clear()
- term.setCursorPos(1,1)
- print ("Welcome to Zombie Mob Farm")
- print ("sending start command")
- print ("waiting for response...")
- local function startfarm(bot)
- rednet.open("right")
- rednet.send(bot, "startfarm") -- sends the "startfarm" message to the turtle
- id, message = rednet.receive(20) -- waits 20 seconds for a response
- if message == "started" then
- print ("farm started!")
- rednet.close("right")
- elseif message == "running" then
- print ("farm is already running!")
- rednet.close("right")
- else
- print ("could not get response from turtle after 10 seconds")
- print ("you should probably check on them")
- rednet.close("right")
- end
- end
- print ("SpawnController")
- stopfarm(18)
- for i, bot in ipairs(KillBots) do
- print ("KillBot" + i)
- stopfarm(bot)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement