At the moment I know:
- More Ores by Calinou
- Xtraores by davidthecreator
- Real Minerals by FaceDeer (ported from RealTest)
Added, thank you.Nathan.S wrote:Technic adds some ores.
Stone with coal: 703771 (31.576%)
Stone with iron: 617804 (27.719%)
Stone with copper: 227100 (10.189%)
Stone with tin: 151383 (6.792%)
Stone with gold: 66726 (2.994%)
Stone with mese: 52038 (2.335%)
Stone with diamonds: 33357 (1.497%)
Technic uranium: 957 (0.043%)
Technic chromium: 28448 (1.276%)
Technic zinc: 118770 (5.329%)
Technic lead: 228436 (10.249%)
Total ores found: 2228790
Code: Select all
\games\MineTest\commonfiles\GitHub\australia\README.md
\games\MineTest\commonfiles\GitHub\australia\biome_arnhem_land.lua
\games\MineTest\commonfiles\GitHub\australia\biome_australian_alps.lua
\games\MineTest\commonfiles\GitHub\australia\biome_central_australia.lua
\games\MineTest\commonfiles\GitHub\australia\biome_eastern_coasts.lua
\games\MineTest\commonfiles\GitHub\australia\biome_flinders_lofty.lua
\games\MineTest\commonfiles\GitHub\australia\biome_goldfields_esperence.lua
\games\MineTest\commonfiles\GitHub\australia\biome_great_australian_bight.lua
\games\MineTest\commonfiles\GitHub\australia\biome_great_barrier_reef.lua
\games\MineTest\commonfiles\GitHub\australia\biome_great_dividing_range.lua
\games\MineTest\commonfiles\GitHub\australia\biome_gulf_of_carpentaria.lua
\games\MineTest\commonfiles\GitHub\australia\biome_indian_ocean.lua
\games\MineTest\commonfiles\GitHub\australia\biome_jarrah_karri_forests.lua
\games\MineTest\commonfiles\GitHub\australia\biome_kimberley.lua
\games\MineTest\commonfiles\GitHub\australia\biome_pilbara.lua
\games\MineTest\commonfiles\GitHub\australia\biome_tasman_sea.lua
\games\MineTest\commonfiles\GitHub\australia\biome_timor_sea.lua
\games\MineTest\commonfiles\GitHub\australia\biome_underground.lua
\games\MineTest\commonfiles\GitHub\australia\biome_victorian_forests.lua
\games\MineTest\commonfiles\GitHub\australia\mapgen.lua
\games\MineTest\commonfiles\GitHub\lapis\init.lua
\games\MineTest\commonfiles\GitHub\minetest_life\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\moreores\init.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\moreores\mg.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\quartz\init.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\display_blocks\init.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\display_blocks\technic.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\display_blocks\uranium.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\blox\init.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\glooptest\ore_module\api.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\glooptest\ore_module\init.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\technic\technic_worldgen\mg.lua
\games\MineTest\commonfiles\GitHub\_minetest-mods\technic\technic_worldgen\oregen.lua
\games\MineTest\commonfiles\GitHub\_tenplus1\ethereal\ores.lua
\games\MineTest\commonfiles\GitHub\_tenplus1\lapis\init.lua
\games\MineTest\commonfiles\GitHub\_Bremaweb\adventuretest\mods\glowcrystals\init.lua
\games\MineTest\commonfiles\GitHub\_Bremaweb\adventuretest\mods\mg\ores.lua
\games\MineTest\commonfiles\GitHub\_Bremaweb\landrush_game\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_Bremaweb\landrush_game\mods\moreores\init.lua
\games\MineTest\commonfiles\GitHub\_Bremaweb\landrush_game\mods\moreores\mg.lua
\games\MineTest\commonfiles\GitHub\_Bremaweb\landrush_game\mods\technic\technic_worldgen\mg.lua
\games\MineTest\commonfiles\GitHub\_Bremaweb\landrush_game\mods\technic\technic_worldgen\oregen.lua
\games\MineTest\commonfiles\GitHub\_mobs\mobs_nssm\nssm_materials.lua
\games\MineTest\commonfiles\GitHub\_mobs\mobs_mc\silverfish.lua
\games\MineTest\commonfiles\GitHub\_mobs\advanced_guards\license.txt
\games\MineTest\commonfiles\GitHub\_mobs\worm\stone_eater.lua
\games\MineTest\commonfiles\GitHub\_games\farlands\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\farlands\mods\mapgen\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\farlands\mods\fruit\init.lua
\games\MineTest\commonfiles\GitHub\_games\MineClone2\mods\ENTITIES\mobs_mc\silverfish.lua
\games\MineTest\commonfiles\GitHub\_games\MineClone2\mods\MAPGEN\mcl_biomes\init.lua
\games\MineTest\commonfiles\GitHub\_games\MineClone2\mods\MAPGEN\mcl_mapgen_core\init.lua
\games\MineTest\commonfiles\GitHub\_games\minetest_game\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\aftermath\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\aftermath\mods\seawrecks\init.lua
\games\MineTest\commonfiles\GitHub\_games\tps_skyblock (Cat5TV)\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\tps_skyblock (shivajiva101)\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\server-minetestforfun-skyblock\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\australian_alps.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\central_australia.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\deep_underground.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\eastern_coasts.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\far_north_queensland.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\flinders_lofty.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\great_australian_bight.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\great_barrier_reef.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\indian_ocean.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\jarrah_karri_forests.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\mulga_lands.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\murray_darling_basin.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\nullabor_plains.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\pilbara.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\tasman_sea.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\tasmania.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\timor_sea.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\top_end.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\underground.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\biomes\victoria.lua
\games\MineTest\commonfiles\GitHub\_games\outback\mods\MAPGEN\mapgen_core\init.lua
\games\MineTest\commonfiles\GitHub\_games\formspec_viewer\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\station17\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\duane_world\fun_caves\init.lua
\games\MineTest\commonfiles\GitHub\_games\duane_world\loud_walking\nodes.lua
\games\MineTest\commonfiles\GitHub\_games\duane_world\squaresville\caves.lua
\games\MineTest\commonfiles\GitHub\_games\duane_world\squaresville\nodes.lua
\games\MineTest\commonfiles\GitHub\_games\duane_world\noore\init.lua
\games\MineTest\commonfiles\GitHub\_games\LegendofMinetest\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\LegendofMinetest\mods\hell\init.lua
\games\MineTest\commonfiles\GitHub\_games\LegendofMinetest\mods\hyrule_mapgen\mapgen.lua
\games\MineTest\commonfiles\GitHub\_games\LegendofMinetest\mods\quartz\init.lua
\games\MineTest\commonfiles\GitHub\_games\dcbl\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\_paramat\moonrealm\mapgen.lua
\games\MineTest\commonfiles\GitHub\_paramat\newbiomes\init.lua
\games\MineTest\commonfiles\GitHub\_paramat\planets\mapgen.lua
\games\MineTest\commonfiles\GitHub\_pithydon\fdecor\init.lua
\games\MineTest\commonfiles\GitHub\worm\stone_eater.lua
\games\MineTest\commonfiles\GitHub\darkage\mapgen.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\bedrock\init.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\blox\init.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\display_blocks\init.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\display_blocks\technic.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\display_blocks\uranium.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\glooptest\ore_module\api.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\glooptest\ore_module\init.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\moreores\mg.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\moreores\init.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\quartz\init.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\technic_worldgen\mg.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\technic_worldgen\oregen.lua
\games\MineTest\commonfiles\GitHub\dreambuilder_modpack\titanium\init.lua
\games\MineTest\commonfiles\GitHub\fruit\init.lua
\games\MineTest\commonfiles\GitHub\freeminer\build\debian\changelog.upstream
\games\MineTest\commonfiles\GitHub\freeminer\builtin\game\register.lua
\games\MineTest\commonfiles\GitHub\freeminer\doc\lua_api.txt
\games\MineTest\commonfiles\GitHub\freeminer\games\minimal\mods\default\mapgen.lua
\games\MineTest\commonfiles\GitHub\freeminer\src\script\lua_api\l_mapgen.cpp
\games\MineTest\commonfiles\GitHub\freeminer\src\script\lua_api\l_mapgen.h
\games\MineTest\commonfiles\GitHub\LapisLazuli\init.lua
\games\MineTest\commonfiles\GitHub\Forest\init.lua
\games\MineTest\commonfiles\GitHub\Forest\ores.lua
Thanks for the hint, I have tried it to fetch them using this example: lua_api.txtRSLRedstonier wrote:ever thing about minetest.registerd_ores?
Code: Select all
--[[
Ores List - Fetches the registered ores and adds them to a list.
Copyright © 2019 Hamlet <hamlatmesehub@riseup.net> and contributors.
Licensed under the EUPL, Version 1.2 or – as soon they will be
approved by the European Commission – subsequent versions of the
EUPL (the "Licence");
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at:
https://joinup.ec.europa.eu/software/page/eupl
https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32017D0863
Unless required by applicable law or agreed to in writing,
software distributed under the Licence is distributed on an
"AS IS" basis,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
See the Licence for the specific language governing permissions
and limitations under the Licence.
--]]
-- Local variable
local ores_list = {}
---
--- Local functions
---
-- Used to extract the node's name from a nodestring
local ExtractNodeName = function(nodestring)
local colon_index = (string.find(nodestring, ":") + 1)
local node_name = string.sub(nodestring, colon_index)
return node_name
end
-- Parse the registered ores and populate a list
local ScanForOres = function()
local ores_found = minetest.registered_ores
--print(dump(ores_found))
for _, value in pairs(ores_found) do
if minetest.registered_nodes[value.wherein] then
local already_listed = false
--print("Ore found: " .. value.ore)
for element = 1, #ores_list do
if (ores_list[element] == ExtractNodeName(value.ore)) then
already_listed = true
end
end
if (already_listed == false) then
table.insert(ores_list, ExtractNodeName(value.ore))
end
end
end
end
ScanForOres()
print(dump(ores_list))
That's what tables are for.Hamlet wrote:it is not possible to dynamically create local variables to store the found ores' names, amounts, etc.
Feel free to open a pull request, be sure to include localization support.ThorfinnS wrote:That's what tables are for.Hamlet wrote:it is not possible to dynamically create local variables to store the found ores' names, amounts, etc.
If you are going to include unique_ores and random_ores, you would have to do the dynamically-generated list. Check out how Shad did his lib_trm.
Users browsing this forum: No registered users and 7 guests