Using lua mapgen to generate layers and minetest to do ores, but I do not like it.
[rocks.git] / rocks / pegmatite.lua
blob5e79a0628131d17ce5d2817aae57194c3df3e03e
1 --
2 -- Pegmatite vein
3 --
5 local CommonRarity=45
7 minetest.register_node( "rocks:pegmatite", {
8 description = S("Pegmatite"),
9 tiles = { "rocks_Pegmatite.png" },
10 groups = {cracky=3, stone=1},
11 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
14 -- ores have to be redefined for pegmatite background
16 -- pegmatites are only 1 kind
17 rocks.register_vein("rocks:pegmatite",{
18 wherein={ "rocks:granite" },
19 miny=-160, maxy=20,
20 radius={ average=18, amplitude=0.3, frequency=16 },
21 density=80, rarity=CommonRarity,
22 ores={