Add marching mapgen stone for coral forest

This commit is contained in:
Juraj Vajda 2023-05-04 11:30:03 -04:00
parent 5c335573b9
commit fdb2b5b3fd
4 changed files with 158 additions and 11 deletions

View File

@ -33,6 +33,7 @@ minetest.register_biome({
depth_filler = 1, depth_filler = 1,
node_riverbed = 'everness:coral_dirt', node_riverbed = 'everness:coral_dirt',
depth_riverbed = 2, depth_riverbed = 2,
node_stone = 'everness:coral_desert_stone',
node_dungeon = 'everness:coral_desert_stone_block', node_dungeon = 'everness:coral_desert_stone_block',
node_dungeon_alt = 'everness:coral_desert_stone_brick', node_dungeon_alt = 'everness:coral_desert_stone_brick',
node_dungeon_stair = 'stairs:stair_coral_desert_stone_block', node_dungeon_stair = 'stairs:stair_coral_desert_stone_block',
@ -49,12 +50,12 @@ minetest.register_biome({
-- Blob ore. -- Blob ore.
-- These before scatter ores to avoid other ores in blobs. -- These before scatter ores to avoid other ores in blobs.
-- Coral Desert Stone -- Coral sand
minetest.register_ore({ minetest.register_ore({
ore_type = 'blob', ore_type = 'blob',
ore = 'everness:coral_desert_stone', ore = 'everness:coral_sand',
wherein = { 'default:stone' }, wherein = { 'everness:coral_desert_stone' },
clust_scarcity = 16 * 16 * 16, clust_scarcity = 16 * 16 * 16,
clust_size = 5, clust_size = 5,
y_max = y_max, y_max = y_max,
@ -64,13 +65,51 @@ minetest.register_ore({
offset = 0.5, offset = 0.5,
scale = 0.2, scale = 0.2,
spread = { x = 5, y = 5, z = 5 }, spread = { x = 5, y = 5, z = 5 },
seed = -316, seed = 2316,
octaves = 1, octaves = 1,
persist = 0.0 persist = 0.0
}, },
biomes = { 'everness_coral_forest' } biomes = { 'everness_coral_forest' }
}) })
-- Dirt
minetest.register_ore({
ore_type = 'blob',
ore = 'everness:coral_dirt',
wherein = { 'everness:coral_desert_stone' },
clust_scarcity = 16 * 16 * 16,
clust_size = 5,
y_max = y_max,
y_min = y_min,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
scale = 0.2,
spread = { x = 5, y = 5, z = 5 },
seed = 17676,
octaves = 1,
persist = 0.0
},
biomes = { 'everness_coral_forest' }
})
-- Scatter ores
-- Coal
minetest.register_ore({
ore_type = 'scatter',
ore = 'everness:coral_desert_stone_with_coal',
wherein = 'everness:coral_desert_stone',
clust_scarcity = 8 * 8 * 8,
clust_num_ores = 9,
clust_size = 3,
y_max = y_max,
y_min = y_min,
biomes = { 'everness_coral_forest' }
})
-- --
-- Register decorations -- Register decorations
-- --

View File

@ -33,6 +33,7 @@ minetest.register_biome({
depth_filler = 3, depth_filler = 3,
node_riverbed = 'everness:coral_sand', node_riverbed = 'everness:coral_sand',
depth_riverbed = 2, depth_riverbed = 2,
node_stone = 'everness:coral_desert_stone',
node_dungeon = 'everness:coral_sandstone', node_dungeon = 'everness:coral_sandstone',
node_dungeon_alt = 'everness:coral_sandstone_brick', node_dungeon_alt = 'everness:coral_sandstone_brick',
node_dungeon_stair = 'stairs:stair_coral_sandstone', node_dungeon_stair = 'stairs:stair_coral_sandstone',
@ -50,12 +51,12 @@ minetest.register_biome({
-- Blob ore. -- Blob ore.
-- These before scatter ores to avoid other ores in blobs. -- These before scatter ores to avoid other ores in blobs.
-- Coral Desert Stone -- Coral sand
minetest.register_ore({ minetest.register_ore({
ore_type = 'blob', ore_type = 'blob',
ore = 'everness:coral_desert_stone', ore = 'everness:coral_sand',
wherein = { 'default:stone' }, wherein = { 'everness:coral_desert_stone' },
clust_scarcity = 16 * 16 * 16, clust_scarcity = 16 * 16 * 16,
clust_size = 5, clust_size = 5,
y_max = y_max, y_max = y_max,
@ -65,13 +66,51 @@ minetest.register_ore({
offset = 0.5, offset = 0.5,
scale = 0.2, scale = 0.2,
spread = { x = 5, y = 5, z = 5 }, spread = { x = 5, y = 5, z = 5 },
seed = -316, seed = 2316,
octaves = 1, octaves = 1,
persist = 0.0 persist = 0.0
}, },
biomes = { 'everness_coral_forest_dunes' } biomes = { 'everness_coral_forest_dunes' }
}) })
-- Dirt
minetest.register_ore({
ore_type = 'blob',
ore = 'everness:coral_dirt',
wherein = { 'everness:coral_desert_stone' },
clust_scarcity = 16 * 16 * 16,
clust_size = 5,
y_max = y_max,
y_min = y_min,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
scale = 0.2,
spread = { x = 5, y = 5, z = 5 },
seed = 17676,
octaves = 1,
persist = 0.0
},
biomes = { 'everness_coral_forest_dunes' }
})
-- Scatter ores
-- Coal
minetest.register_ore({
ore_type = 'scatter',
ore = 'everness:coral_desert_stone_with_coal',
wherein = 'everness:coral_desert_stone',
clust_scarcity = 8 * 8 * 8,
clust_num_ores = 9,
clust_size = 3,
y_max = y_max,
y_min = y_min,
biomes = { 'everness_coral_forest_dunes' }
})
-- --
-- Register decorations -- Register decorations
-- --

View File

@ -33,6 +33,7 @@ minetest.register_biome({
depth_filler = 3, depth_filler = 3,
node_riverbed = 'everness:coral_white_sand', node_riverbed = 'everness:coral_white_sand',
depth_riverbed = 2, depth_riverbed = 2,
node_stone = 'everness:coral_desert_stone',
node_cave_liquid = 'default:water_source', node_cave_liquid = 'default:water_source',
node_dungeon = 'everness:coral_desert_cobble', node_dungeon = 'everness:coral_desert_cobble',
node_dungeon_alt = 'everness:coral_desert_mossy_cobble', node_dungeon_alt = 'everness:coral_desert_mossy_cobble',
@ -46,12 +47,12 @@ minetest.register_biome({
-- Blob ore. -- Blob ore.
-- These before scatter ores to avoid other ores in blobs. -- These before scatter ores to avoid other ores in blobs.
-- Coral Desert Stone -- Clay
minetest.register_ore({ minetest.register_ore({
ore_type = 'blob', ore_type = 'blob',
ore = 'everness:coral_desert_stone', ore = 'default:clay',
wherein = { 'default:stone' }, wherein = { 'everness:coral_white_sand' },
clust_scarcity = 16 * 16 * 16, clust_scarcity = 16 * 16 * 16,
clust_size = 5, clust_size = 5,
y_max = y_max, y_max = y_max,
@ -68,6 +69,66 @@ minetest.register_ore({
biomes = { 'everness_coral_forest_ocean' } biomes = { 'everness_coral_forest_ocean' }
}) })
-- Coral sand
minetest.register_ore({
ore_type = 'blob',
ore = 'everness:coral_sand',
wherein = { 'everness:coral_desert_stone' },
clust_scarcity = 16 * 16 * 16,
clust_size = 5,
y_max = y_max,
y_min = y_min,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
scale = 0.2,
spread = { x = 5, y = 5, z = 5 },
seed = 2316,
octaves = 1,
persist = 0.0
},
biomes = { 'everness_coral_forest_ocean' }
})
-- Dirt
minetest.register_ore({
ore_type = 'blob',
ore = 'everness:coral_dirt',
wherein = { 'everness:coral_desert_stone' },
clust_scarcity = 16 * 16 * 16,
clust_size = 5,
y_max = y_max,
y_min = y_min,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
scale = 0.2,
spread = { x = 5, y = 5, z = 5 },
seed = 17676,
octaves = 1,
persist = 0.0
},
biomes = { 'everness_coral_forest_ocean' }
})
-- Scatter ores
-- Coal
minetest.register_ore({
ore_type = 'scatter',
ore = 'everness:coral_desert_stone_with_coal',
wherein = 'everness:coral_desert_stone',
clust_scarcity = 8 * 8 * 8,
clust_num_ores = 9,
clust_size = 3,
y_max = y_max,
y_min = y_min,
biomes = { 'everness_coral_forest_ocean' }
})
-- --
-- Register decorations -- Register decorations
-- --

View File

@ -24,6 +24,14 @@ local S = minetest.get_translator(minetest.get_current_modname())
-- Ores -- Ores
-- --
minetest.register_node('everness:coral_desert_stone_with_coal', {
description = S('Coal Ore'),
tiles = { 'everness_coral_desert_stone.png^everness_mineral_coal.png' },
groups = { cracky = 3 },
drop = 'default:coal_lump',
sounds = Everness.node_sound_stone_defaults(),
})
Everness:register_node('everness:stone_with_pyrite', { Everness:register_node('everness:stone_with_pyrite', {
description = S('Pyrite Ore'), description = S('Pyrite Ore'),
tiles = { 'everness_stone.png^everness_mineral_pyrite.png' }, tiles = { 'everness_stone.png^everness_mineral_pyrite.png' },