Ranged Turtle - KnightMiner/KnightPeripherals GitHub Wiki
The ranged turtle is a turtle upgrade added by KnightPeripherals. It can automatically fire arrows, similarly to a dispenser only causing player kills.
Recipe
To create a ranged turtle, simply craft a turtle with a diamond hammer from Ex Nihilo.
Usage
When a bow is added to a turtle, it will automatically add several functions to the turtle API.
The bow adds three functions for ranged attacking:
turtle.attack()
: Fires an arrow in front of the turtleturtle.attackUp()
: Fires an arrow above the turtleturtle.attackDown()
: Fires an arrow below the turtle
The arrow will deal slightly more damage than an unenchanted vanilla bow, and trigger a player kill.
Result
The turtle will return true
if an arrow was shot, or false
if it was unable to shoot an arrow with one of the following errors:
Block at target
: A block is at the side where the arrow would have been launched.No arrows found in slot
: The selected slot does not contain any arrows.