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

[TEKKIT 1.52][CC 1.5.3][SMP]turtle.place() fails

Started by kreezxil, 27 May 2013 - 01:07 PM
kreezxil #1
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)

--[[ 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
planetguy #2
Posted 02 June 2013 - 02:21 AM
From what you say, your server might use protection plugins that are denying computercraft when it tries to place blocks in protected areas. Your admin needs to allow ComputerCraft's fake player to change any blocks it wants, or you need to add [ComputerCraft] to your allowed users in your claim.
Cranium #3
Posted 03 June 2013 - 06:09 PM
If you don't use plots, and are on a survival server with minimal protection, you can op [ComputerCraft] as well. This works for almost all protection plugins.
kreezxil #4
Posted 31 August 2013 - 09:09 AM
Thanks for the responses planteguy and Cranium. I no longer play on the server in question and now host my own. The information you provided is helpful to me in the future and most likely to others.