]> git.lizzy.rs Git - Crafter.git/blob - mods/redstone/ore.lua
Add in prototype redstone repeaters
[Crafter.git] / mods / redstone / ore.lua
1 minetest.register_node("main:"..ore.."ore", {
2         description = ore:gsub("^%l", string.upper).." Ore",
3         tiles = {"stone.png^redstoneore.png"},
4         groups = {stone = 1, hard = 1, pickaxe = 1, hand = 4,pathable = 1},
5         sounds = main.stoneSound(),
6         light_source = 8,--debugging ore spawn
7         drop = {
8                 max_items = 1,
9                 items= {
10                         {
11                                 rarity = 0,
12                                 tools = tool_required,
13                                 items = drops,
14                         },
15                 },
16         },
17 })
18
19 minetest.register_ore({
20         ore_type         = "scatter",
21         ore             = "main:goldore",
22         wherein   = "main:stone",
23         clust_scarcity = 13 * 13 * 13,
24         clust_num_ores = 5,
25         clust_size     = 3,
26         y_max       = -128,
27         y_min       = -31000,
28 })
29
30 -- Mese crystal
31
32 minetest.register_ore({
33         ore_type         = "scatter",
34         ore             = "main:diamondore",
35         wherein   = "main:stone",
36         clust_scarcity = 14 * 14 * 14,
37         clust_num_ores = 5,
38         clust_size     = 3,
39         y_max       = 31000,
40         y_min       = 1025,
41 })
42
43 minetest.register_ore({
44         ore_type         = "scatter",
45         ore             = "main:diamondore",
46         wherein   = "main:stone",
47         clust_scarcity = 18 * 18 * 18,
48         clust_num_ores = 3,
49         clust_size     = 2,
50         y_max       = -128,
51         y_min       = -1023,
52 })
53
54 minetest.register_ore({
55         ore_type         = "scatter",
56         ore             = "main:diamondore",
57         wherein   = "main:stone",
58         clust_scarcity = 14 * 14 * 14,
59         clust_num_ores = 5,
60         clust_size     = 3,
61         y_max       = -128,
62         y_min       = -31000,
63 })