This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
like7dwarves's profile picture

Ranged Turtles (again)

Started by like7dwarves, 25 October 2015 - 08:27 PM
like7dwarves #1
Posted 25 October 2015 - 09:27 PM
So I saw a previous post about ranged turtles, and it seemed like a good idea, but some things didn't ring with CC. So here's my idea.

Equipping
The bow is equiped like any other tool. Either by turtle.equip() or
crafting.
Looks
The ranged turtle looks like a normal turtle. The bow texture would not
need to change.
Usage
The bow would be fired by the command "turtle.fire(x,y,p)" where x is
horizontalent degrees, y is the vertical degrees, and p is the power.
Ammunition would also be required [duh]. This would allow for better
acuracy then a dispenser.
Crafting
As stated above, it would be crafter with a bow and a turtle

Alright. Let me know what you think of the changed idea. To be honest,the best part of this, for me, would be making turtles calculate trajectories and stuff like that. Anywho, tell me what you think
KingofGamesYami #2
Posted 25 October 2015 - 11:08 PM
I dislike the idea of turtle.fire. To me, the bow itself should be a peripheral - if at all. I'd like it to be programmed more like this:


local bow = peripheral.wrap( 'left' )
bow.setAngle( 60 ) --#aims the bow 60 degrees up
bow.pullBack() --#starts pulling the bow back
while true do
  local e, p = os.pullEvent( "bow_position" )
  if p == 1 then
    print( "Bow power 1" )
  elseif p == 2 then
    print( "Bow power 2" )
  elseif p == 3 then
    print( "Bow power 3, firing!" )
    bow.release()
  end
end
Waitdev_ #3
Posted 27 October 2015 - 06:35 AM
i agree with yami, as a peripheral and handled with events. here's another idea, what about an admin bow? rapid fire :D/>
thinking about it, what would it do for arrows? inventory? peripheral inventory?
Lion4ever #4
Posted 30 December 2015 - 01:39 AM
another idea, what about an admin bow? rapid fire :D/>
There you go: http://pastebin.com/zeYgY0NF

Run "pastebin run zeYgY0NF" on a command computer -> admin bow