merlinlikethewizard / Mastermine

A fully automated strip mining network for ComputerCraft turtles!
MIT License
83 stars 20 forks source link

Mastermine

A fully automated strip mining network for ComputerCraft turtles!

Here's all the code for anyone who is interested! Check out the tutorial below for installation instructions.

Also, here are steps for a quick install via pastebin:

  1. Place your advanced computer next to a disk drive with a blank disk in.
  2. Run pastebin get CtcSGkpc mastermine.lua
  3. Run mastermine disk
  4. Run disk/hub.lua

Play with or without Peripherals:

I highly recommend using the a peripherals mod with chunky turtles, but upon popular request I added the ability to disable the need for chunky turtle pairs. Just go to the config and set use_chunky_turtles = false

Video description:

https://www.youtube.com/watch?v=2I2VXl9Pg6Q

Video tutorial:

https://www.youtube.com/watch?v=2DTP1LXuiCg

Troubleshooting:

After having some chats with folks it seems like there are some common pitfalls within the turtle setup. If you're getting weird behavior I suggest taking a look at this list before posting an issue. Otherwise, please let me know your problem and we can take a look together.

Hopefully that covers a lot of it. Again, lemme know if you still can't get the thing to work.

User commands:

use * as notation for all turtles

Floppy disk limit:

There's a built in limit in computer craft for how much data a floppy disk can store, and as it happens Mastermine is bigger. There are two solutions for dealing with this.

  1. The size of floppy disks can be increased in the mod's config file, assuming you have access to that (this is the preferred option).
  2. There are a number of reasons one might not be able to edit the config file, so there is a second, workaround-y option in which the data isn't fully stored on the disk. To do it, start with the regular computer + monitor + modem + disk drive + floppy disk setup, and then enter the following into the hub computer:

    pastebin get CtcSGkpc mastermine.lua mkdir files mastermine files mv files/hub_files/* . mv files/turtle_files disk mv files/turtle.lua disk reboot

    After this you should be able to add turtles to the system as usual. The only downside is that you will not be able to update the hub from the disk. All of the hub files will be local. This means the process for editing the config file is slightly different, in that you need to edit the config.lua file on the hub rather than on the disk.

Required mods:

CC Tweaked https://www.curseforge.com/minecraft/mc-mods/cc-tweaked

For Minecraft 1.16:

Advanced Peripherals https://www.curseforge.com/minecraft/mc-mods/advanced-peripherals

For Minecraft 1.12:

Peripherals Plus One https://github.com/rolandoislas/PeripheralsPlusOne

Required by PeripheralsPlusOne: https://www.curseforge.com/minecraft/mc-mods/the-framework