This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
tbyoran's profile picture

Turtle.down() doesnt work.

Started by tbyoran, 03 August 2012 - 11:22 AM
tbyoran #1
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!
KaoS #2
Posted 03 August 2012 - 01:28 PM
what error does the code return?

does it actually dig out the block beneath it?
Luanub #3
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/
tbyoran #4
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.
SavinaRoja #5
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.
KaoS #6
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
SavinaRoja #7
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.
tbyoran #8
Posted 03 August 2012 - 01:38 PM
thx a lot everybody , its work !!!
Luanub #9
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