Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.3 KB

README.md

File metadata and controls

40 lines (33 loc) · 1.3 KB

Automated Mining

Introduces mines, workstations for renewable resources.

Join the Discord Thread!

Features

  • v0.0.7 Added French
  • v0.0.6 Added stone blocks
  • v0.0.5 Added new ores, flint, and new stone types
  • v0.0.4 Added clay, sand, and dirt excavation
  • v0.0.4 Created QOL wrapper (with mod compatibility support, see below)

Issues

  • v0.0.7 Updated for game version 0.5
  • v0.0.61 Fixed game crashing when multi-selecting unbuilt mines
  • v0.0.6 Fixed recipes that didn't use the correct skills
  • v0.0.5 Fixed game crashing when multi-selecting mines
  • Ladder and mineshaft disappear once a mine is constructed

Mod Support

Adding your own resources is recommended in your craftable.lua shadow:

function mod:onload(craftable)
    local super_load = craftable.load
    craftable.load = function(craftable_, gameObject, flora)
        super_load(craftable_, gameObject, flora)

        local am = gameObject.automatedMining
        if am then
            am:addMineResource("mithrilOre", {
                name = "Mithril Ore",
                summary = "Usually only obtainable by raiding dwarven foundries or befriending old hobbits.",
            })
        end

        -- Do your thing down here
    end
end