Skip to content
This repository was archived by the owner on Jul 1, 2018. It is now read-only.

Turtle changes

SquidDev edited this page Jan 24, 2017 · 1 revision

Disable particular actions

Some actions may not be wanted (such as inspect). You can disable them with the Tutle.disabledActions config option. When calling these methods you will get an error message instead, informing you it has been blacklisted.

Example

This would disable the inspect() method (and all varients such as inspectUp() and inspectDown()).

turtle {
    S:disabledActions <
          inspect
     >
}

The actions available are:

  • Compare
  • CompareTo
  • Craft
  • Detect
  • Dig
  • Drop
  • Equip
  • Move
  • Place
  • Refuel
  • Select
  • Suck
  • Tool
  • Turn

Refuel sources

CCTweaks allows refuling from Redstone Flux (RF), Tesla, Forge Energy or IC2's EU batteries. You can fine tune the amount of energy required to gain one turtle "refuel point" depending on the difficulty wanted and ease of power generation in your pack.

  • Turtle.euRefuelAmount=25: The number of EU required to gain one refuel point. Set to 0 to disable.
  • Turtle.fluxRefuelAmount=300: The amount of RF, Tesla or ForgeEnergy to gain one refuel point. Set to 0 to disable.

Note: refuel all will not actually work as expected on batteris and the like as it limits the turtle to refueling by the stack count. turtle.refuel() does work as expected.

Place direction

turtle.place accepts a second parameter to specify the direction in which to place the block. This is given by one of the strings in redstone.getSides() (up, down, left, right, front, back).

Be warned, this will not work correctly for all blocks, and may not successfully orient the block. You may wish to check with turtle.inspect to ensure you got what you wanted.

Clone this wiki locally