ComputerCraft Forums

ComputerCraft => Programs => Turtle Programs => Topic started by: Inksaver on Dec 17, 2020, 11:18 am

Title: Survival Toolkit
Post by: Inksaver on Dec 17, 2020, 11:18 am
I have written a toolkit for use in survival mode, once you have your first Crafty Mining Turtle. The code began in 2014 when I solved the self-replicating challenge on the old forums, and has now been adapted to run on ccTweaked with MC 1.16.3, but this time with player supervision

(https://i.imgur.com/bDMoefv.png)

It is designed to allow you to use just one program to farm crops and trees, mine diamonds and ancient debris, create dungeon mob spawner farms, build canals across land and water. (Canal on water? - parallel lines of cobble 2 blocks apart over the ocean), bridges and pathways in overworld and End, land shaping, ocean monument draining and much more.

I have uploaded 10 videos to youtube so far, with more to follow: Playlist for Toolkit (https://www.youtube.com/playlist?list=PLE8GQEkUWuwFNLS9cdTCr_1qalC4eGBOr)


The toolkit consists of a main file and 2 library files:
main file: https://pastebin.com/UFvjc1bw which will automatically download the library files into a folder called 'lib'

You can get this and a bunch of other utilities by using the command: pastebin run 8qbeZevX

This is still in active development, and I am happy to answer any questions and deal with bugs and improvements
Title: Survival Toolkit
Post by: QuickMuffin8782 on Dec 24, 2020, 04:32 am
One question, does the turtle itself use the direct pathfinding?
Title: Survival Toolkit
Post by: Inksaver on Jan 04, 2021, 06:57 pm
Not sure what direct pathfinding is...
There is nothing that uses any coordinates, with the exception of asking the player for the current Y value on a couple of the utilities.
Title: Survival Toolkit
Post by: QuickMuffin8782 on Jan 05, 2021, 11:04 am
Well direct pathfinding is actually finding a path with any ability to tackle any obstacles that may be in the way.
Title: Survival Toolkit
Post by: Earther on Jan 13, 2021, 11:56 pm
(https://i.imgur.com/wtMxVoi.png)

I just get this error when trying to use pastebin run on it, I'm using 1.16.4(/1.95), but I would think that this would be the same?
Title: Survival Toolkit
Post by: Inksaver on Jan 15, 2021, 10:16 am
@QuickMuffin8782
As this toolkit is designed to be under direct player control, there is no need for direct pathfinding.
The self-replicating scripts had this ability, as they were designed to be started and left to their own devices:
2014 original https://pastebin.com/JVD1RPfg
2018 update using .inspect() and .getItemDetail() https://pastebin.com/2Zf5an8H


@Earther
I uploaded a script after debugging and missed the ]] used to end a multi-line comment. There is a new version added just now with this corrected, or you can delete the ]] on line 2018 and save. The current version is 20210107.1047.

The getTools.lua script has been modified so it will check versions of all the files and update as required. pastebin run 8qbeZevX or view at https://pastebin.com/8qbeZevX