But I want to know how to make a turtle check for fuel, and say not enough fuel if not enough fuel. if true, go forward
i have tried numerous different ways.
Thank you!
Please look on the wiki before posting topics that can be answered thereI know im asking so many questions, but im working on my * cough* wait…….. not announced yet XD
But I want to know how to make a turtle check for fuel, and say not enough fuel if not enough fuel. if true, go forward
i have tried numerous different ways.
Thank you!
See, now why did you go tell him that :P/> He has two hands (Im guessing) so he can click that link and find out all he needs to know about the Turtle API. Oh well, problem solved either way.turtle.getFuelLevel()
You did not tell us you needed to do that. That is something that should go in the OP, not a seperate post.i have tried turtle.getfuel() but i need it to add up the actions i give it (such as turtle.forward(4) turtle.back(5) and let me know if possible
BTW, i have a turtle.forward(args) function
function moveCount()
local f = turtlegetFuelLevel()
local v = tonumber(f*8)
return v
end
function s.f(args)
gas = turtle.getFuelLevel()
if args < gas then
for i=1, args do
turtle.forward()
else
print("No Fuel")
fuel = no
[size=4]end[/size]
-.- I was walking you through the steps to detect the fuel level manually… Not automaticallyi want it in my program, super turtle. its a huge thing *DID I JUST RELEASE XDXDXD*
not to type it in the Lua prompt :P/>
if i need it in the future, HUGS but now i dont-.- I was walking you through the steps to detect the fuel level manually… Not automaticallyi want it in my program, super turtle. its a huge thing *DID I JUST RELEASE XDXDXD*
not to type it in the Lua prompt :P/>
Blah! Read up on the turtle api, it'll save ye ;)/>if i need it in the future, HUGS but now i dont-.- I was walking you through the steps to detect the fuel level manually… Not automaticallyi want it in my program, super turtle. its a huge thing *DID I JUST RELEASE XDXDXD*
not to type it in the Lua prompt :P/>