Mining Laser Turtle - KnightMiner/KnightPeripherals GitHub Wiki
The mining laser turtle is a turtle upgrade added by KnightPeripherals. It can be used to break blocks at an extended range compared to a pickaxe.
Recipe
To create a mining laser turtle, simply craft a turtle with a mining laser. A mining laser can be crafted as follows:
Usage
When a mining laser is added to a turtle, it will automatically add several functions to the turtle API.
Digging
The mining laser turtle adds three functions for digging with a hammer:
turtle.dig()
: Fires the laser in front of the turtle.turtle.digUp()
: Fires the laser above the turtle.turtle.digDown()
: Fires the laser below the turtle.
The laser will keep going until it either reaches a block or its maximum range. If it hits a breakable block, the block will be broken and the drops added to the turtle's inventory. In addition, if the block is replacable the laser will keep going onto the next block.
Any entities within the laser will take 10 damage, though their drops are not collected by the turtle.
In addition, the turtle will consume 1 fuel per block the laser fires over. Note that if the turtle does not have enough fuel to fire the laser the full distance, it will travel as far as the turtle has fuel.
Result
The turtle will return true
if the laser was fired
If the laser is not fired, it will return false plus one of the following reasons:
No fuel
: The turtle is out of fuel and thus cannot fire the laser