Posted 26 April 2017 - 10:05 AM
Hi everyone,
Been studying computercraft for a total of two weeks now, specifically writing a program that will get a turtle to:
1. Measure the depth, length and width of a quarry
2. build a wall around the inside of said quarry and while doing that
a. restock its inventory each time it runs out, remembering where it ran out and returning to that location once it is refilled its inventory
b. check / refuel at the diagonally opposite corners
once done, return home.
I have the program on a game disk.
CC version is 1.58 (I'm using a hopper and chest to fill the turtle and running a while loop to check slot 16 for 64 blocks)
Ive been watching BGSamuel's tutorials on mining bots and I'm trying to adapt it to build rather than dig.
Id appreciate any help on trying fix the bugs here.
My experience with lua is about the same amount of time that ive been studying computercraft so if I could ask you to keep you responses at a basic level, id really appreciate it.
heres the link to the script:
https://pastebin.com/RME81LCV
cheers
Jeddell
PS, Just noticed some function havent been listed at the top of the script. will fix that directly.
Been studying computercraft for a total of two weeks now, specifically writing a program that will get a turtle to:
1. Measure the depth, length and width of a quarry
2. build a wall around the inside of said quarry and while doing that
a. restock its inventory each time it runs out, remembering where it ran out and returning to that location once it is refilled its inventory
b. check / refuel at the diagonally opposite corners
once done, return home.
I have the program on a game disk.
CC version is 1.58 (I'm using a hopper and chest to fill the turtle and running a while loop to check slot 16 for 64 blocks)
Ive been watching BGSamuel's tutorials on mining bots and I'm trying to adapt it to build rather than dig.
Id appreciate any help on trying fix the bugs here.
My experience with lua is about the same amount of time that ive been studying computercraft so if I could ask you to keep you responses at a basic level, id really appreciate it.
heres the link to the script:
https://pastebin.com/RME81LCV
cheers
Jeddell
PS, Just noticed some function havent been listed at the top of the script. will fix that directly.