Add ores: rack with gold, deeprack with scattered mese (#90)

This commit is contained in:
tenplus1
2025-10-09 16:54:37 +01:00
committed by GitHub
parent e0cc038f43
commit 965a14bb61
2 changed files with 49 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ if nether.NETHER_REALM_ENABLED then
end
end
dofile(nether.path .. "/portal_examples.lua")
dofile(nether.path .. "/ores.lua")
-- Portals are ignited by right-clicking with a mese crystal fragment
nether.register_portal_ignition_item(

48
ores.lua Normal file
View File

@@ -0,0 +1,48 @@
local S = minetest.get_translator("nether")
minetest.register_node("nether:rack_with_gold", {
description = S("Nether Gold"),
tiles = {"nether_rack.png^default_mineral_gold.png"},
is_ground_content = true,
groups = {cracky = 3, level = 2, workable_with_nether_tools = 3, not_in_creative_inventory = 1},
drop = "default:gold_lump",
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("nether:rack_deep_with_mese", {
description = S("Nether Mese"),
tiles = {"nether_rack_deep.png^default_mineral_mese.png"},
is_ground_content = true,
groups = {cracky = 3, level = 2, workable_with_nether_tools = 3, not_in_creative_inventory = 1},
drop = "default:mese_crystal_fragment 4",
sounds = default.node_sound_stone_defaults(),
})
local ore_ceiling = nether.DEPTH_CEILING - 128
local ore_floor = nether.DEPTH_FLOOR + 128
minetest.register_ore({
ore_type = "scatter",
ore = "nether:rack_with_gold",
wherein = "nether:rack",
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 7,
clust_size = 5,
y_max = ore_ceiling,
y_min = ore_floor
})
minetest.register_ore({
ore_type = "scatter",
ore = "nether:rack_deep_with_mese",
wherein = "nether:rack_deep",
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 7,
clust_size = 5,
y_max = ore_ceiling,
y_min = ore_floor,
})