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

Bonemeal not working on 2x2 jungle saplings?

Started by crud41, 25 December 2012 - 06:07 AM
crud41 #1
Posted 25 December 2012 - 07:07 AM
here is a copy of my code.


x = "0"
print "This is a TEST program it WILL break."
print "Please make sure to place saplings in the first slot and bonemeal in the second"
sleep(10)
turtle.select(1)
turtle.place()
turtle.back()
turtle.place()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
turtle.forward()
turtle.place()
turtle.back()
turtle.place()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
turtle.select(2)
turtle.place()
sleep(2)
while turtle.detect() do
turtle.dig()
turtle.digUp()
turtle.up()
x = "x + 1"
end
while turtle.detectdown() == false do
turtle.down()
end


For some reason the code breaks at line 30 and @ select 2 place doesnt use the bonemeal on the saplings and mines the sapling away instead please help
Anonomit #2
Posted 25 December 2012 - 06:40 PM
I don't think turtles can use bonemeal on jungle saplings. Also, the third last line should be
while turtle.detectDown() == false do
rather than
while turtle.detectdown() == false do

If you're looking to farm trees, I would recommend using birch for a farm, or spruce if you're using bonemeal.
Sammich Lord #3
Posted 25 December 2012 - 10:31 PM
I don't think turtles can use bonemeal on jungle saplings. Also, the third last line should be
Turtles simulate right click. They should be able to use bonemeal on anything that supports it.
remiX #4
Posted 26 December 2012 - 01:46 AM
And making x = "0" is making it a string, not a numerical value.

x = 0
-- To add 1 to x
x = x + 1
-- not
x = "x + 1"
Cozzimoto #5
Posted 26 December 2012 - 09:39 AM
on the bottom i would use

while not(turtle.detectDown()) do
  turtle.down()
end

just to get rid of the == false boolean when this does the exact same thing