forked from minetest-mods/nether
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathores.lua
More file actions
48 lines (39 loc) · 1.36 KB
/
ores.lua
File metadata and controls
48 lines (39 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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,
})