games:minecraft:public:computer_craft:quarry_script

MOVED TO THE CLAYTONIA GIT SERVER

Quarry Miner

  • Steps 1-4 only needs done the 1st time you place down a turtle.
  • Step 5 is optional
  • Step 6 is what you run each time you place down a previsouly configured turtle.

1. Place turtle, and a chest to the left of it.

2. R-click turtle

3. Set name

set name <name>

4a. The black list feature from step 5a stopped working sometime around 1.19.2 so I started hardcoding the black list into the script. You can download my version from github using:

wget https://gist.githubusercontent.com/claythegamer/c173951e9ea7fd7f0ccb7cdb7fd05efa/raw/7caa2eb410739b03f436dbd40716f9ec7241571c/gistfile1.txt quarry

4a. Download quarry program from pastebin <code>pastebin get rpXRAZs4 quarry</code>

5a. Create black-list

edit no-mine-me

5b. paste in blacklisted mats. This step is only needed it you want the turtle to disreguard stone/cobble. Use step 6a if you wish to have a blacklist.

Example:

minecraft:stone
minecraft:chest
minecraft:sand
minecraft:torch
ThermalExpansion:Sponge
ThermalFoundation:Storage
minecraft:diorite
minecraft:andesite
minecraft:granite

5c. Not nessisary for everyone, only need to do this if the blacklist feature fails for you. Skip this step unless you know what you're doing. The black list feature from step 5a stopped working sometime around 1.19.2 so I started hardcoding the black list into the script. You can add blocks to the blacklist in the script around line 768. Example:

--oreQuarry blacklist
local blacklist = { "minecraft:air",  "minecraft:bedrock", "minecraft:cobblestone", "minecraft:dirt", "minecraft:ice", "minecraft:ladder", "minecraft:netherrack", "minecraft:tuff", "minecraft:sand", "minecraft:sandstone",
  "minecraft:snow", "minecraft:snow_layer", "minecraft:stone", "minecraft:gravel", "minecraft:grass", "minecraft:torch", "minecraft:diorite", "minecraft:andesite", "minecraft:granite", "byg:soapstone", "minecraft:cobbled_deepslate" 
  

6. Run quarry

6a. Skips everything on the blacklist and only brings ores back to the chest.

quarry -chest left -oreQuarry true -blacklist no-mine-me.lua -doRefuel true

6b. Mines everything, makes a big hole!

quarry -chest left -doRefuel true

Note: add -startDown X to the end of 6a if the turtle messes up and needs to start a few levels down. I have found this work better than the -restore argument. Example to -startDown 50 blocks from the start.

quarry -chest left -oreQuarry true -blacklist no-mine-me.lua -doRefuel true -startDown 50

Welcome!: Welcome to quarry help. Below are help entries for all parameters. Examples and tips are at the bottom.

  • -dim: [length] [width] [height] This sets the dimensions for the quarry
  • -invert: [t/f] If true, quarry will be inverted (go up instead of down)
  • -rednet: [t/f] If true and you have a wireless modem on the turtle, will attempt to make a rednet connection for sending important information to a screen
  • -restore / -resume: If your quarry stopped in the middle of its run, use this to resume at the point where the turtle was. Not guarenteed to work properly. For more accurate location finding, check out the -GPS parameter
  • -autoResume / autoRestore: Turtle will automatically resume if stopped. Replaces startup
  • -oreQuarry: [t/f] If true, the turtle will use ore quarry mode. It will not mine the blocks that are placed in the turtle initially. So if you put in stone, it will ignore stone blocks and only mine ores.
  • -oreQuarry: [t/f] If you are using a newer version of CC, you won't have to put in any compare blocks. (CInternal Config:C 1.64+)
  • -blacklist: [file name] If using oreQuarry, this is the blacklist file it will read. Example minecraft:stone minecraft:sand ThermalExpansion:Sponge ThermalFoundation:Storage
    • If you have bspkInternal Config:rsCore, look for "UniqueNames.txt" in your config
  • -atChest: [force] This is for use with "-restore," this will tell the restarting turtle that it is at its home chest, so that if it had gotten lost, it now knows where it is.
  • -doRefuel: [t/f] If true, the turtle will refuel itself with coal and planks it finds on its mining run
  • -doCheckFuel: [t/f] If you for some reason don't want the program to check fuel usage, set to false. This is honestly a hold-over from when the refueling algorithm was awful...
  • -uniqueExtras: [number] The expected number of slots filled with low-stacking items like ore. Higher numbers request more fuel.
  • -chest: [side] This specifies what side the chest at the end will be on. You can say "top", "bottom", "front", "left", or "right"
  • -enderChest: This one is special. If you use "-enderChest true" then it will use an enderChest in the default slot. However, you can also do "-enderChest [slot]" then it will take the ender chest from whatever slot you tell it to. Like 7... or 14... or whatever.
  • -GPS: [force] If you use "-GPS" and there is a GPS network, then the turtle will record its first two positions to precisly calculate its position if it has to restart. This will only take two GPS readings
  • -sendChannel: [number] This is what channel your turtle will send rednet messages on
  • -receiveChannel: [number] This is what channel your turtle will receive rednet messages on
  • -startY: [current Y coord] Randomly encountering bedrock? This is the parameter for you! Just give it what y coordinate you are at right now. If it is not within bedrock range, it will never say it found bedrock
  • -startupRename: [file name] What to rename any existing startup to.
  • -startupName: [file name] What the turtle will save its startup file to.
  • -extraDropItems: [force] If oreQuarry then this will prompt the user for extra items to drop, but not compare to (like cobblestone)
  • -dumpCompareItems: [t/f] If oreQuarry and this is true, the turtle will dump off compare blocks instead of storing them in a chest
  • -oldOreQuarry: [t/f] If you are using new CC versions, you can use this to use the old oreQuarry.
  • -maxTries: [number] This is the number of times the turtle will try to dig before deciding its run into bedrock.
  • -logging: [t/f] If true, will record information about its mining run in a folder at the end of the mining run
  • -doBackup: [t/f] If false, will not back up important information and cannot restore, but will not make an annoying file (Actually I don't really know why anyone would use this...)
  • -saveFile: [word] TInternal Config:his is what the backup file will be called
  • -logFolder: [word] The folder that quarry logs will be stored in
  • -logExtension: [word] The extension given to each quarry log (e.g. ".txt" or ".notepad" or whatever)
  • -keepOpen: [number] This is the number of the slots the turtle will make sure are open. It will check every time it mines
  • -careAboutResources: [t/f] Who cares about the materials! If set to false, it will just keep mining when its inventory is full
  • -startDown: [number] If you set this, the turtle will go down this many blocks from the start before starting its quarry
  • -promptAll: This is the opposite of -Default, it prompts for everything
  • -manualPos: [xPos] [zPos] [yPos] [facing] This is for advanced use. If the server reset when the turtle was in the middle of a 100x100x100 quarry, fear not, you can now manually set the position of the turtle. yPos is always positive. The turtle's starting position is 0, 1, 1, 0. Facing is measured 0 - 3. 0 is forward, and it progresses clockwise. Example- "-manualPos 65 30 30 2"
  • -help: Thats what this is :D

Important Note: None of the above parameters are necessary. They all have default values, and the above are just if you want to change them.

Examples :

Want to just start a quarry from the interface, without going through menus? It's easy! Just use some parameters. Assume you called the program "quarry." To start a 10x6x3 quarry, you just type in "quarry -dim 10 6 3 -default". You just told it to start a quarry with dimensions 10x6x3, and "-default" means it won't prompt you about invert or rednet. Wasn't that easy?

Examples :

Okay, so you've got the basics of this now, so if you want, you can type in really long strings of stuff to make the quarry do exactly what you want. Now, say you want a 40x20x9, but you want it to go down to diamond level, and you're on the surface (at y = 64). You also want it to send rednet messages to your computer so you can see how its doing.

Examples :

Oh yeah! You also want it to use an ender chest in slot 12 and restart if the server crashes. Yeah, you can do that. You would type "quarry -dim 40x20x9 -invert false -startDown 45 -rednet true -enderChest 12 -restore" BAM. Now you can just let that turtle do it's thing

  • The order of the parameters doesn't matter. "quarry -invert false -rednet true" is the same as "quarry -rednet true -invert false"

  • Capitalization doesn't matter. "quarry -iNVErt FALSe" does the same thing as "quarry -invert false"Internal Config: Tips [cont.]: For [t/f] parameters, you can also use "yes" and "no" so "quarry -invert yes"

  • For [t/f] parameters, it only cares about the first letter. So you can use "quarry -invert t" or "quarry -invert y"

  • If you are playing with fuel turned off, the program will automatically change settings for you so you don't have to :D
  • If you want, you can load this program onto a computer, and use "quarry -help" so you can have help with the parameters whenever you want.

At the top of this program is an internal configuration file. If there is some setup that you use all the time, you can just change the config value at the top and run "quarry -default" for a quick setup.

You can also use this if there are settings that you don't like the default value of.

quarry_script_lua_script

Search Terms: computercraft computer craft cc tweaks cc: tweaks

Clay 2021/05/28 02:43

  • games/minecraft/public/computer_craft/quarry_script.txt
  • Last modified: 2024/01/23 21:59
  • by clay