(help)Need the lastest(a14) tutorial for adding mining resource

Hey @ACEXHUNT, do you mean this tutorial by phector2004?

Yes it’s a bit outdated now. The files that the tutorial are pointing at are correct though, but the files themselves have undergone some changes since the tutorial was made. I haven’t, for this alpha, really looked at how to make ore veins, but for simply getting ores by mining in rocky areas can be done the same way as the tutorial says. Again, you’ll have to make some changes in your mine_loot.json file (or whatever you choose to call it) to reflect Stonehearth’s own file; which is found in stonehearth/services/server/mining/mining_loot_tables.json.

In short, the mining loot table, that you are making, would have to look something like:

{
   "mineable_blocks": {
      "rock" : {
         "entries": {
            "default": {
               "items" : {
                  "MY_ORE": {
                     "uri" : "MY_MOD:MY_RESOURCE_ALIAS",
                     "weight" : 0.1
                  }
               }
            }
         }
      }
   }
}

Again, I haven’t looked at how to add ore veins, but I imagine that the process is the same: look at the files at which the tutorial is referring to and make the changes to match their current state (if needed, of course).

2 Likes