xp = peripheral
xp = peripheral.wrap("right")
if true do
while true do
turtle.collect()
xp.collect()
turtle.attack()
end