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

Breeding with Turtles

Started by Buho, 28 November 2013 - 04:58 PM
Buho #1
Posted 28 November 2013 - 05:58 PM
turtle.select(1) –carrot, wheat, seeds
turtle.place() –breed
turtle.placeDown() –breed down
turtle.placeUp() –breed up

I assumed this was already part of ComputerCraft but apparently it isn't. If we can turtle.attack(), turtle.attackUp() and turtle.attackDown(), why can't we turtle.place() with a breedable item in the slot? place() works for buckets, flint & steel, and other things that require a "right-click" action, but it doesn't work with breeding animals.

Apparently there's a misc peripheral that feeds any animal within a 3x3x3 area centered around the turtle. That's actually overpowered in my opinion. I'd rather have to specify the direction: place(), placeUp(), placeDown().
oeed #2
Posted 29 November 2013 - 12:37 AM
For a second I thought you wanted little Turtle babies…

But you have a valid point. I haven't tested this myself but if it isn't working it definitely should be added. Are you 100% certain it doesn't work?
Buho #3
Posted 29 November 2013 - 08:17 AM
We already do have breedable turtles. They're called Crafty Turtles ;)/>

I'm 100% certain turtle.placeDown() doesn't work for pigs occupying the only air block immediately below a turtle and a carrot in the active slot. I used the lua prompt to test.

Perhaps the turtle tried to plant (through the pig) the carrot on untilled soil. Applying the action by line-of-sight would eliminate this ambiguity: if a mob or player exists, apply action to that instead of the block.
Sebra #4
Posted 29 November 2013 - 05:08 PM
Last time I tested forward sheep feeding worked.
Buho #5
Posted 29 November 2013 - 10:16 PM
Okay, close this thread. This feature is implemented. My testing wasn't careful enough.

What's missing are the hearts that appear when one animal is "primed" for breeding but hasn't found a mate yet. That and the weird hitboxes of animals threw me off. Sorry! Cudos to Dan for implementing this! :)/>
oeed #6
Posted 29 November 2013 - 10:34 PM
Okay, close this thread. This feature is implemented. My testing wasn't careful enough.

What's missing are the hearts that appear when one animal is "primed" for breeding but hasn't found a mate yet. That and the weird hitboxes of animals threw me off. Sorry! Cudos to Dan for implementing this! :)/>

If the hearts aren't appearing that's still likely a bug though.