I'm not sure if I am writing a turtle script right, I need help

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Spuddleluck

New Member
Jul 29, 2019
2
0
0
I am trying to write my own turtle script that will make the mining turtle plant and cut down a normal oak tree my. Script that I have so far is as follows:

function Grow()
turtle.select(1)
turtle.place()
end

function Bonemeal()
turtle.select(2)
turtle.place()
end


I'm not sure if it is because it's not complete but when I run it as Oak on the turtle it doesn't say anything, it just goes with it but it doesn't do anything .
I'm not sure what I'm doing wrong can someone please help me
Thanks in advanced.
 

casilleroatr

New Member
Jul 29, 2019
1,360
0
0
Once you have defined a function you need to call it. For example:

Code:
function grow()
<your code>
end
 
function bonemeal()
<your code>
end
 
grow()
bonemeal()