View difference between Paste ID: VwuTz5JW and 03fM2xn5
SHOW: | | - or go back to the newest paste.
1
tArgs = { ... }
2
local adv = tonumber(tArgs[1])
3
local up = tonumber(tArgs[2])
4
--
5
function inventory()
6-
  if turtle.getItemCount() == 0 then
6+
  if turtle.getItemCount(1) == 0 then
7-
  turtle.select()
7+
  turtle.select(2)
8
 end
9
end
10
    
11
  for i= 1, adv do
12
  inventory()
13
  turtle.placeDown()
14
  turtle.forward()
15
  end