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

Digital Miner Function

Started by Makoto, 07 April 2017 - 10:04 AM
Makoto #1
Posted 07 April 2017 - 12:04 PM
Hello.
I don't speak English and I'm not good at English.
Because I'm Japanese.
Sorry.

I found some functions by "getMethods".
removeFilter
addOreFilter
setMax
setMin
stop
addFilter
removeOreFilter
reset
setRadius
start
Could you teach meaning and argument of each function?

Thank you for reading.
Larry84 #2
Posted 07 April 2017 - 01:51 PM
From which mod is that?
Bomb Bloke #3
Posted 08 April 2017 - 01:59 AM
opdoc may be able to tell you.
Makoto #4
Posted 08 April 2017 - 04:58 AM
Mekanism ver.9
Makoto #5
Posted 08 April 2017 - 05:11 AM
To:Bomb Bloke
Thank you, but I don't understand way to download.
Could you please teach me?
Lyqyd #6
Posted 08 April 2017 - 05:22 AM
If those are the only functions listed by peripheral.getMethods, opdoc won't be of much use.

Have you tried looking through the Mekanism documentation?
Makoto #7
Posted 08 April 2017 - 06:54 AM
To : Lyqyd
Yes.
I searched,but any information was not provided.
So I asked it here.
SquidDev #8
Posted 08 April 2017 - 11:41 AM
I can't seem to find any documentation for the miner, but I had a look at the code and can make a guess at what each method does. You might also want to check out the Mekanism wiki, which documents the digital miner's settings in more detail.
  • setRadius(radius:number): Sets the chunk radius for the digital miner. The higher this is, the further away the digital miner will search for ores.
  • setMin(y:number): Set the minimum y level to mine at.
  • setMax(y:number): Set the maximum y level to mine at.
  • addFilter(id:number[, meta:number]): Set the digital miner to only dig blocks with this id. Sadly, there isn't a nice way to query get the block id from it's name, so you're better off using the ore methods below.
  • removeFilter(id:number): Remove a filter added by addFilter.
  • addOreFilter(filter:string): Add an ore directionary filter. For more information, see the section on the wiki.
  • removeOreFilter(filter:string): Remove a filter added by addOreFilter.
  • reset(): Reset the digital miner's progress.
  • start(): Start the digital miner.
  • stop(): Stop the digital miner.
Edited on 08 April 2017 - 09:42 AM
Makoto #9
Posted 09 April 2017 - 01:00 AM
To:SquidDev
Thank you.
Solved the problem