View difference between Paste ID: wWHAsUXx and 9ijxUQmV
SHOW: | | - or go back to the newest paste.
1-
xp = peripheral
1+
xp = peripheral.wrap("right")
2
3-
if true do
3+
while true do
4-
turtle.collect()
4+
  xp.collect()
5-
turtle.attack()
5+
  turtle.attack()
6
end