16 posts
Posted 03 August 2012 - 01:22 PM
Hi pros , i have a big problem!
İ have a this code:
while true do
turtle.dig()
turtle.turnLeft()
turtle.dig()
turtle.turnLeft()
turtle.dig()
turtle.turnLeft()
turtle.dig()
turtle.digDown()
turtle.down()
end
Turtle is dig and turn left (Work)
but when i try
turtle.down()
it doesnt work..
Why
turtle.down() doesnt work?
All move codes (turtle.up() , turtle.back() , …) doesnt work.
Help me pls!
1548 posts
Location
That dark shadow under your bed...
Posted 03 August 2012 - 01:28 PM
what error does the code return?
does it actually dig out the block beneath it?
1111 posts
Location
Portland OR
Posted 03 August 2012 - 01:33 PM
What difficulty are you playing the game on? If you're on CC version 1.4.1 then you're turtle probably needs fuel.
There is an option to disable the need of fuel. Read this thread
http://www.computercraft.info/forums2/index.php?/topic/2947-turtle-movements/
16 posts
Posted 03 August 2012 - 01:34 PM
i wanna dig and down but it doest work. it doest move up , foward , down , left , right , back. it only dig and turn. i now codes but codes doesnt work. what must i do.
15 posts
Posted 03 August 2012 - 01:35 PM
I don't see any typos in the code that you posted, could you post more of the problem code? A good test would be to access your turtle's OS and type in
lua
Then try entering the movement functions like
turtle.up()
and
turtle.down()
Let us know if that works.
1548 posts
Location
That dark shadow under your bed...
Posted 03 August 2012 - 01:37 PM
open the computercraft config file, look for turtlesNeedFuel=1 and change it to turtlesNeedFuel=0
your turtle is out of fuel
15 posts
Posted 03 August 2012 - 01:37 PM
What difficulty are you playing the game on? If you're on CC version 1.4.1 then you're turtle probably needs fuel.
There is an option to disable the need of fuel. Read this thread
http://www.computerc...rtle-movements/
This sounds like it might be the case.
16 posts
Posted 03 August 2012 - 01:38 PM
thx a lot everybody , its work !!!
1111 posts
Location
Portland OR
Posted 03 August 2012 - 01:41 PM
If you would like to play with fuel you can add a function like this to your code to refuel it
local function checkFuel()
if turtle.getFuelLevel() < 10 then -- will refuel if less then 10 blocks of fuel remaining
turtle.select(16) -- change to slot with fuel in it
turtle.refuel()
end
end