Jump to content


A Dork Of Pork's Content

There have been 3 items by A Dork Of Pork (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#58209 [Question]-[Lua]-[help]-[ComputerCraft]How to auto use fuel in a turtle?

Posted by A Dork Of Pork on 10 December 2012 - 09:17 AM in Ask a Pro

Add something like this

turtle.select(1)
local x=1
while turtle.getFuelLeve;() <= 5 && x<=16 then
   turtle.refuel(64)
   turtle.select(x)
   x=x+1
end
if turtle.getFuelLevel() <= 5 then
   print("Fuel Levels low! Fuel Level: "..tostring(turtle.getFuelLevel()))
end


Not tested, but should work if you put it into your for loops.



#58211 A few things

Posted by A Dork Of Pork on 10 December 2012 - 09:20 AM in Suggestions

View PostSebra, on 10 December 2012 - 09:13 AM, said:

1.really?
2.You mislook.
3.Labels
4.Wait
5.Bad idea
6.Inappropriate
7. textutils.serialize(...)

Alright then, thanks



#58205 A few things

Posted by A Dork Of Pork on 10 December 2012 - 09:04 AM in Suggestions

1. I noticed small things like "dostring" are missing.
2. Image handling?
3. Computer Naming? (Instead of having computers listed with integers 0,1,2, ...)
4. Laptops (Basically they are items which do not need to be put down to be used)
5. RedNet Ports (example: rednet.connect_port(12345))
6. Portals (Maybe too much to ask for?)
7. RedNet variable sending (instead of just string, what about things like lists, this will make it much more epic) (Not sure if this is already possible but here it is anyways)