x = 1
turtle.back()
turtle.place()
x + 1
if x = 15 then
turtle.turnLeft()
then repete sumhow but i need it too change inventory slots aswell. can sumbody make me a quick code for it pelase?
Posted 29 October 2012 - 04:56 PM
Posted 29 October 2012 - 05:56 PM
for i = 1, 20 do turtle.forward() end
turtle.select(5)this will select slot 5 of the turtle.
turtle.detect()
-- this will return a Boolean (i.e. true or false)
if turtle.detect() then -- If it detects a block it will print 'there is a block infront of me!'
print("There is a block infront of me!")
else
print("There is no block infront of me :P/>/>")
end
0 members, 1 guests, 0 anonymous users