This is my first time posting a mod, so please be kind.
This mod adds turtles, with bows! It is a peripheral, instead a tool, but it has its reasons. It can be crafted just like the melee turtle, but with a bow.
The API itself is quite simple, there is only a single method:
bow = peripheral.wrap( side )
bow.shoot( [power], [deltaX], [deltaY] )
The power is a number from 0 - 1, where 1 equals a fully pulled shot from a player. DeltaX and deltaY give offset to the shot, so you could shoot sideways. ( In a limited cone of 45 degrees )
The parameters are optional, and will default to 1, 0, 0.
In order to use the peripheral, you must provide a bow in the selected slot. The turtle will use this bow to fire, and take its enchantments to account.
Downloads:
- Version 1.0.0
- Version 1.1.0
Screenshot:
Spoiler
The mod alone does not do a lot of things, but combined with OpenCCSensors it is very powerful!
Since this is my first mod, I am open to any suggestions!
Changelog:
Spoiler
1.1.0- Added a safeguard for shooting, now the turtle must sleep at least 0.5 seconds between shots
- Added configuration ( fuel usage, bow damage )
1.0.0
- Initial release