Posted 27 December 2012 - 04:24 PM
I'm fairly new to programming. I just started messing around with the turtles and looked at a couple lua tutorials then wrote this. I used pretty much 100% of my coding knowledge in this program. So if it's not there, assume I don't know what it is.
The point of this post is I want to learn more about this programming language, but don't know where to go from here. So if you have any suggestions please throw them my way.
The program checks how wide a tree in front of the turtle is then cuts it down and replants.
I thought about adding functions to get more coal or saplings and putting wood block into a chest as well as a function to bone meal the tree.
I didn't add the refilling functions because I'm not happy with requiring a user to put a chest in a specific location. Untimely I would like to set up a gps array and pathing finding program so I could set waypoints of the appropriate chest so the turtle can go to them where ever they are to refill itself then find it's way back to the tree. I've seen things that lead me to believe that's possible. I think I could figure out a path finding program if I worked at it long enough, but I don't know how to call programs from inside other programs or how to store the waypoints I would need for the chest locations.
I will probably add the bonemeal function later on, but I was writing this code in survival and don't have a good bone supply as of now.
The point of this post is I want to learn more about this programming language, but don't know where to go from here. So if you have any suggestions please throw them my way.
The program checks how wide a tree in front of the turtle is then cuts it down and replants.
I thought about adding functions to get more coal or saplings and putting wood block into a chest as well as a function to bone meal the tree.
I didn't add the refilling functions because I'm not happy with requiring a user to put a chest in a specific location. Untimely I would like to set up a gps array and pathing finding program so I could set waypoints of the appropriate chest so the turtle can go to them where ever they are to refill itself then find it's way back to the tree. I've seen things that lead me to believe that's possible. I think I could figure out a path finding program if I worked at it long enough, but I don't know how to call programs from inside other programs or how to store the waypoints I would need for the chest locations.
I will probably add the bonemeal function later on, but I was writing this code in survival and don't have a good bone supply as of now.