Posted 27 May 2013 - 03:07 PM
[TEKKIT 1.52][CC 1.5.3][SMP]turtle.place() fails
SCENARIO:
Load a farming program into a turtle and load all slots as directed. Turtle will go through the movements and eject plantables like saplings all over the ground but not plant them.
EXPECTED:
Turtle to plant a row of trees, wait for them to grow and then harvest them and repeat this process until it runs out of fuel.
REALITY:
turtle.place() appears to fail utterly
CODE USED: FROM http://computercraft...jack_(tutorial)
SCENARIO:
Load a farming program into a turtle and load all slots as directed. Turtle will go through the movements and eject plantables like saplings all over the ground but not plant them.
EXPECTED:
Turtle to plant a row of trees, wait for them to grow and then harvest them and repeat this process until it runs out of fuel.
REALITY:
turtle.place() appears to fail utterly
CODE USED: FROM http://computercraft...jack_(tutorial)
--[[ Simple lumberjack program for the wiki. Assumes the turtle is in the
bottom left corner of a 10 ahead and 3 to the right area of clear dirt or
grass. Also, only works for oak saplings, since they can grow next to each
other. ]]--
local saplings = 1 -- the slot where the saplings are
turtle.select(saplings) -- select the saplings
while turtle.getItemCount(saplings) > 0 do -- while more saplings in inventory
for i = 1, 8 do -- plant 8 saplings in a row
turtle.turnRight()
if not turtle.compare() then -- if not a sapling, then a tree grew
turtle.dig()
turtle.forward()
while turtle.detectUp() do -- dig tree out
turtle.digUp()
turtle.up()
end
while not turtle.detectDown() do -- back down to ground
turtle.down()
end
turtle.back()
turtle.place() -- put down new sapling
end
turtle.turnLeft()
turtle.forward()
end
-- turn around and line up for next pass
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.turnRight()
turtle.forward()
os.sleep(30) -- sleep for 30 seconds to allow trees to grow
end