Skip to content

Commit

Permalink
Add ore blocks for sandstone and desert stone (#1373)
Browse files Browse the repository at this point in the history
* Added More Ores

Adds ores for sandstone and desert stone

* Update mod.conf

---------

Co-authored-by: LandarVargan <[email protected]>
  • Loading branch information
AnonomousAccount and LoneWolfHT authored Jan 11, 2025
1 parent 7c2898e commit 08024e9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mods/mtg/more_ore/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
local orenames = {"Coal", "Iron", "Mese", "Diamond"}
local orenamestech = {"coal", "iron", "mese", "diamond"}
local stonenamestech = {"sandstone", "desert_stone"}
local stonenames = {"Sandstone ", "Desert "}
local dropnames = {"coal_lump", "iron_lump", "mese_crystal", "diamond"}
local crackylevels = {3, 2, 1, 1}

for k, orenametech in pairs(orenamestech) do
for k2, stonenametech in pairs(stonenamestech) do
minetest.register_node("more_ore:" .. stonenametech .. "_with_" .. orenametech, {
description = stonenames[k2] .. orenames[k] .. " Ore",
tiles = {"default_" .. stonenametech .. ".png^default_mineral_" .. orenametech .. ".png"},
groups = {cracky = crackylevels[k]},
drop = "default:" .. dropnames[k],
})
end
end
2 changes: 2 additions & 0 deletions mods/mtg/more_ore/mod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name = more_ore
description = sandstone and desert ores for CTF

0 comments on commit 08024e9

Please sign in to comment.