mirror of
git://repo.or.cz/rocks.git
synced 2024-12-28 03:40:33 +01:00
Add cassiterite to peg ores.
This commit is contained in:
parent
683b918c32
commit
23cef526da
@ -34,4 +34,5 @@ mineral.noise.Iron=GetNoiseParams()
|
||||
mineral.noise.Tin=GetNoiseParams()
|
||||
|
||||
dofile(modpath.."/skarn.lua")
|
||||
dofile(modpath.."/pegmatite.lua")
|
||||
|
||||
|
42
mineral/pegmatite.lua
Normal file
42
mineral/pegmatite.lua
Normal file
@ -0,0 +1,42 @@
|
||||
--
|
||||
-- Pegmatite deposit
|
||||
--
|
||||
|
||||
local function GetNoiseParams()
|
||||
return {
|
||||
scale=1, offset=0, seed=rocksl.GetNextSeed(), octaves=1, persist=1,
|
||||
spread={ x=100, y=100, z=100 } }
|
||||
end
|
||||
|
||||
-- ores have to be redefined for pegmatite background
|
||||
|
||||
-- Ore/Mineral Percent
|
||||
-- Spodumene 7%
|
||||
-- Muscovite (mica) 7%
|
||||
-- Kyanite 5%
|
||||
-- Lepidolite 2.5%
|
||||
-- Tantalite 2%
|
||||
-- Cassiterite 1.5%
|
||||
-- Wolframite 1%
|
||||
-- Pollucite 0.1%
|
||||
|
||||
|
||||
-- Cassiterite
|
||||
minetest.register_node( "mineral:pegmatite_cassiterite", {
|
||||
description = S("Cassiterite"),
|
||||
tiles = { "rocks_Pegmatite.png^mineral_cassiterite.png" },
|
||||
groups = {cracky=3},
|
||||
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
wherein="rocks:pegmatite",
|
||||
ore="mineral:pegmatite_cassiterite",
|
||||
clust_size=3,
|
||||
clust_num_ores=9,
|
||||
clust_scarcity=4^3,
|
||||
noise_treshold=-0.1,
|
||||
noise_params=mineral.noise.Tin
|
||||
})
|
||||
|
||||
-- ~ Tomas Brod
|
BIN
mineral/textures/mineral_cassiterite.png
Normal file
BIN
mineral/textures/mineral_cassiterite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Loading…
Reference in New Issue
Block a user