Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - --Fill this table with the names of mobs
 - local inputs = {"slime", "blaze",}
 - --The ID of the turtle with the safari nets
 - local turtle = 39
 - --The side your modem is on
 - rednet.open("back")
 - local function options()
 - term.clear()
 - term.setCursorPos(1, 1)
 - term.setTextColor(colors.lime)
 - print("Available Mobs:")
 - term.setTextColor(colors.white)
 - write("\t")
 - local count = 0
 - for n in pairs(inputs) do
 - write(inputs[n]..", ")
 - count = count + 1
 - if count == 5 then
 - write("\n\t")
 - count = 0
 - end
 - end
 - write("\n")
 - term.setTextColor(colors.lime)
 - write("Please select one: ")
 - term.setTextColor(colors.white)
 - end
 - while true do
 - local loop = true
 - local uservar = nil
 - local z = nil
 - while loop do
 - options()
 - uservar = string.lower(read())
 - z = 1
 - for w in pairs(inputs) do
 - if uservar == string.lower(inputs[z]) then
 - loop = false
 - else
 - z = z+1
 - end
 - end
 - end
 - rednet.send(turtle, z)
 - term.clear()
 - term.setCursorPos(1, 1)
 - print("Loading: "..uservar)
 - write("Push Enter when finished ")
 - read()
 - rednet.send(turtle, 17)
 - end
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment