Posted 01 September 2013 - 06:52 PM
Hey! Im new here and i wanted to try this mod so i use mindcrack for it.. Well to my problem now!
slot 1 saplings
slot 2 bonemeal
slot 3 fuel
slot 4 log
slot 5 dirt
You probably already know it lol
I have made this and im really new to coding at any language so i have no idea what am i doing basically..
When i run this it stops after the planting part and ends..
function place()
turtle.place()
turtle.place()
turtle.place()
turtle.place()
turtle.place()
turtle.place()
turtle.place()
end
function bmeal()
turtle.select(1)
while
turtle.compare() == true
do
turtle.select(2)
place()
end
end
function plant()
print("Planting yo..")
turtle.select(1)
turtle.place()
end
function rr()
turtle.turnRight()
turtle.turnRight()
end
function dirt()
turtle.select(5)
while
turtle.compareDown() == false
do
turtle.forward()
end
print("Found dirt!")
rr()
turtle.forward()
rr()
end
function fuel()
turtle.select(3)
print("Checking fuel..")
if
turtle.getFuelLevel() < 300
then
print("Refueling yo")
turtle.refuel()
else
print("I haz dem fuel.")
end
end
function chop()
turtle.select(4)
while
turtle.detect()
do
turtle.dig()
turtle.digUp()
turtle.up()
end
turtle.select(16)
while
turtle.detectDown() == false
do
turtle.down()
end
end
function bchop()
if
bmeal()
then
chop()
end
end
while
(dirt() or plant())
do
bchop()
end
slot 1 saplings
slot 2 bonemeal
slot 3 fuel
slot 4 log
slot 5 dirt
You probably already know it lol
I have made this and im really new to coding at any language so i have no idea what am i doing basically..
When i run this it stops after the planting part and ends..