Jump to content




Increased fuel consumption


  • You cannot reply to this topic
5 replies to this topic

#1 matejdro

  • Members
  • 324 posts

Posted 22 May 2013 - 02:10 PM

Is there a way to increase fuel consumption of turtles? I was looking into configs and bios, but I can't find such option.

#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 22 May 2013 - 02:36 PM

There is not any ability to consume more fuel than 1 fuel ber block.

#3 matejdro

  • Members
  • 324 posts

Posted 22 May 2013 - 02:43 PM

How about reducing how much power certain items "produce"?

#4 nutcase84

  • Members
  • 711 posts
  • LocationIn My Lonely Little Computer Corner

Posted 22 May 2013 - 03:23 PM

Why would you want to?

#5 matejdro

  • Members
  • 324 posts

Posted 22 May 2013 - 03:26 PM

To make turtles a bit more challenging to use.

#6 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 22 May 2013 - 03:53 PM

It's not really possible to increase fuel usage, as a turtle has to move in order to use a fuel. Causing the turtle to move more on fuel usage can easily screw up someone's program.

You could, however, overwrite the turtle's refuel function and set a refuel limit.

local maxFuel = 1000
local refuel = turtle.refuel
function turtle.refuel(num)
  local refueled = false
  if num == 0 then
    return refuel(0)
  end
  for i=1, num do
    if turtle.getFuelLevel() < maxFuel then
      if refuel(1) and refueled == false then
        refueled = true
      end
    end
  end
  return refueled
end

Of course, you can't really prevent anyone from going to 999 fuel, then using a bucket to exceed the limit greatly. This function only prevents users from refueling if the turtle's fuel is greater than the maxfuel variable, and doesn't actually limit how much the turtle can store. It's difficult to detect how much fuel an item will give without actually using it as fuel.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users