View difference between Paste ID: DZha91F3 and jw8tn0bg
SHOW: | | - or go back to the newest paste.
1
--Fill this table with the names of mobs
2
local inputs = {"slime", "blaze",}
3
--The ID of the turtle with the safari nets                             
4
local turtle = 39
5
--The side your modem is on
6
rednet.open("back")
7
8
local function options()
9
  term.clear()
10
  term.setCursorPos(1, 1)
11
  term.setTextColor(colors.lime)
12
  print("Available Mobs:")
13
  term.setTextColor(colors.white)
14
  write("\t")
15
  
16
  local count = 0
17
  for n in pairs(inputs) do
18
    write(inputs[n]..", ")
19
    count = count + 1
20
    if count == 5 then
21
      write("\n\t")
22
      count = 0
23
    end
24
  end
25
     
26
  write("\n")
27
  term.setTextColor(colors.lime)
28
  write("Please select one: ")
29
  term.setTextColor(colors.white)
30
end
31
32
33
while true do
34
local loop = true
35
local uservar = nil
36
local z = nil
37
  while loop do
38-
    local uservar = string.lower(read())
38+
39
    uservar = string.lower(read())
40
      z = 1
41
      for w in pairs(inputs) do
42
        if uservar == string.lower(inputs[z]) then
43
          loop = false
44
        else
45
          z = z+1
46
        end
47
      end
48
  end
49
50
rednet.send(turtle, z)
51
52
term.clear()
53
term.setCursorPos(1, 1)
54
print("Loading: "..uservar)
55
write("Push Enter when finished ")
56
read()
57
rednet.send(turtle, 17)
58
end