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

need help on a program

Started by matthubb2121, 24 July 2017 - 07:53 AM
matthubb2121 #1
Posted 24 July 2017 - 09:53 AM
hi I'm wanting help with the program I'm trying to make its a basic script for farming and I need help building the code for it
cause it has agricraft in the code but I have never coded in my life, please help me.. I'm basically wanting to automate food crops in a mod pack called project ozone 2 reloaded kappa mode .. but for the life of me I don't know where to start..
Lupus590 #2
Posted 24 July 2017 - 10:32 AM
http://www.computercraft.info/forums2/index.php?/topic/25484-making-complex-program-goals-manageable/

http://computercraft.info/wiki/Category:APIs

https://www.lua.org/manual/5.1/

Reply if that was not helpful enough
matthubb2121 #3
Posted 24 July 2017 - 11:35 AM
I'm a more of a tutorial guide like what goes where and how to make it work add stuff later for it to work again rather build it from ground up especially when I don't know what I'm doing. hope this explains why I cant do this on my own I'm not asking for u to build it no Im wanting to build its difficult to explain
Dave-ee Jones #4
Posted 25 July 2017 - 01:03 AM
I'm a more of a tutorial guide like what goes where and how to make it work add stuff later for it to work again rather build it from ground up especially when I don't know what I'm doing. hope this explains why I cant do this on my own I'm not asking for u to build it no Im wanting to build its difficult to explain

Not to worry, most of us are more of tutorial people :)/>
What exactly do you mean when you want to automate the crops? Does something need to be planted in the ground, or does something need to be broken (e.g. hit the ground and you get a carrot)?

It sounds like what you want is a turtle (little computer robot) that goes around a farm and plants/harvests crops, placing them in a chest in your barnhouse or something like that. Is that correct?
Bomb Bloke #5
Posted 25 July 2017 - 01:15 AM
In terms of generally-getting-started with ComputerCraft, here's a good place to start.
matthubb2121 #6
Posted 25 July 2017 - 01:27 AM
um can u check the code I made for the turtle farm bot its https://repl.it/Jged/0 here and I don't know how to get it on multiplayer
Lupus590 #7
Posted 25 July 2017 - 02:17 PM
I would start over and do the following one at a time, testing each as I go.
  • Turtle stays in one spot and harvests a plant below it when fully grown.
  • Turtle replants after harvest. (at this point the turtle can fully tend to a 1x1 feild)
  • Turtle navigates the entire feild and is able to check each plant. (disable harvesting/planting at this point)
  • Turtle plants entire feild. (intergrateing the harvest and replant into full code)
  • Turtle harvests entire feild.
Each point is dependent on the previous, so do them in order.
Edited on 26 July 2017 - 09:49 AM
Bomb Bloke #8
Posted 26 July 2017 - 01:25 AM
To get code onto an SMP server, put it in a paste and then use the pastebin script to download it to a computer.