If someone would write a mod which needs all of these ores, it would be okay. But for now, this mod has no clear usage and the items fill your inventory very quickly. Too, there are (due to, probably, copy-pasting of the code) some mistakes, for example, the beryllium ore is named " Ore", or in front of all items, ores and blocks is "-- Lapis ...".
Here I wrote a short and simplyfied version of the mod "toomanymetals":
materials = {"alu","beryllium","bismuth","boron"}
for i = 1, #materials do
material = materials[i]
minetest.register_node("tmm:"..material.."_ore", {
description = (material.." Ore"),
tiles = {"default_stone.png^"..material.."_mineral_"..material..".png"},
drop = { --the drops code },
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("tmm:"..material, {
description = (material),
inventory_image = material..".png",
})
-- and so on
end
With this variant, you would use, round about, 100-200 lines of code instead of 3159. Or, you make it as a function, where you just need "tmm.register_metal("titan","Titanium")" to make a new ore.
So, as summary, this mod could have a future as an useful mixture of minerals and metals, if they would have a use else than filling chests. If that happens, I can change my mind and this comment into a thread.
If someone would write a mod which needs all of these ores, it would be okay. But for now, this mod has no clear usage and the items fill your inventory very quickly. Too, there are (due to, probably, copy-pasting of the code) some mistakes, for example, the beryllium ore is named " Ore", or in front of all items, ores and blocks is "-- Lapis ...". Here I wrote a short and simplyfied version of the mod "toomanymetals":
With this variant, you would use, round about, 100-200 lines of code instead of 3159. Or, you make it as a function, where you just need "tmm.register_metal("titan","Titanium")" to make a new ore.
So, as summary, this mod could have a future as an useful mixture of minerals and metals, if they would have a use else than filling chests. If that happens, I can change my mind and this comment into a thread.
for i, material in ipairs(materials): Am I a joke to you