View difference between Paste ID: RtUGUPWY and vgt1VfzN
SHOW: | | - or go back to the newest paste.
1-
local input1 = peripheral.wrap("front")
1+
local input = peripheral.wrap("top")
2-
local input2 = peripheral.wrap("top")
2+
3-
local trader = peripheral.wrap("bottom")
3+
4
	turtle.transferTo(2, 9)
5
    turtle.transferTo(6, 9)
6-
	turtle.transferTo(2, 7)
6+
7-
    turtle.transferTo(3, 7)
7+
    turtle.drop()
8-
    turtle.transferTo(5, 7)
8+
9-
    turtle.transferTo(6, 7)
9+
10-
    turtle.transferTo(7, 7)
10+
11-
    turtle.transferTo(9, 7)
11+
  local item = input.getItemDetail(1)
12-
    turtle.transferTo(10, 7)
12+
  if(item ~= nil and item.count > 17) then
13-
    turtle.transferTo(11, 7)
13+
    turtle.suckUp(18)
14
    craftAndTrade()
15-
    turtle.dropDown()
15+
16
  os.sleep(2)
17
end
18