1
0
mirror of git://repo.or.cz/rocks.git synced 2024-11-16 07:20:40 +01:00

Vein of clay in mudstone.

This commit is contained in:
Tomáš Brada 2015-01-12 21:45:09 +01:00
parent 332b9d773f
commit e912d0c5e5
4 changed files with 12 additions and 1 deletions

View File

@ -72,7 +72,7 @@ minetest.register_node( "rocks:mudstone", {
groups = {cracky=CcSoft, stone=1}, groups = {cracky=CcSoft, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(), is_ground_content = true, sounds = default.node_sound_stone_defaults(),
}) })
rocks.register_layer( "mudstone",{ gain=10, height=-13, limit=2, seed=4 }, "rocks:mudstone") rocks.register_layer( "mudstone",{ gain=10, height=-13, limit=2, seed=4 }, "air")
-- Slate MM/barro med Under mud/clay/siltstone -- Slate MM/barro med Under mud/clay/siltstone
minetest.register_node( "rocks:slate", { minetest.register_node( "rocks:slate", {

View File

@ -8,6 +8,15 @@ local CcSoft=3
-- --
-- Claystone Sed soft in mudstone -- Claystone Sed soft in mudstone
rocks.register_vein("clay",{
spread = {x=10, y=10, z=10},
treshold=0.75,
seed = 9,
hmin=-8, hmax=nil,
layers={ "mudstone" },
})
rocks.register_ore( "clay", "default:clay", {treshold=0, chance=0.8 } )
-- Breccia Mixture soft in mudstone -- Breccia Mixture soft in mudstone
-- Conglomerate Sed soft in mudstone -- Conglomerate Sed soft in mudstone
-- Skarn MM/contact med in mudstone in mountains -- Skarn MM/contact med in mudstone in mountains

View File

@ -21,6 +21,7 @@ rocks.noiseparams_layers = {
dofile(modpath.."/mapgen.lua") dofile(modpath.."/mapgen.lua")
dofile(modpath.."/geologica.lua") dofile(modpath.."/geologica.lua")
dofile(modpath.."/geologica_nv.lua")
print("[rocks] loaded.") print("[rocks] loaded.")

View File

@ -53,6 +53,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
local availlayers=mknoises(rocks.layers,minp,maxp,seed) local availlayers=mknoises(rocks.layers,minp,maxp,seed)
local perlin_index = 1 local perlin_index = 1
-- --
print("[rocks] afterinit "..os.clock()-timebefore)
for x=minp.x,maxp.x,1 do for x=minp.x,maxp.x,1 do
for z=minp.z,maxp.z,1 do for z=minp.z,maxp.z,1 do
--* initialize layers hmap --* initialize layers hmap