tweak crystal biome so that it appears in floatlands

This commit is contained in:
tenplus1 2021-04-18 08:29:42 +01:00
parent 77ff3f8e60
commit 5312d026d4
5 changed files with 61 additions and 31 deletions

View File

@ -12,14 +12,14 @@ minetest.register_node("ethereal:blue_marble", {
description = S("Blue Marble"),
tiles = {"ethereal_blue_marble.png"},
groups = {cracky = 1, stone = 1},
sounds = default.node_sound_stone_defaults(),
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("ethereal:blue_marble_tile", {
description = S("Blue Marble Tile"),
tiles = {"ethereal_blue_marble_tile.png"},
groups = {cracky = 1, stone = 1},
sounds = default.node_sound_stone_defaults(),
sounds = default.node_sound_stone_defaults()
})
minetest.register_craft({
@ -27,7 +27,7 @@ minetest.register_craft({
recipe = {
{"ethereal:blue_marble", "ethereal:blue_marble", "ethereal:blue_marble"},
{"ethereal:blue_marble", "ethereal:blue_marble", "ethereal:blue_marble"},
{"ethereal:blue_marble", "ethereal:blue_marble", "ethereal:blue_marble"},
{"ethereal:blue_marble", "ethereal:blue_marble", "ethereal:blue_marble"}
}
})
@ -60,7 +60,7 @@ local add_biome = function(a, l, m, n, o, p, b, c, d, e, f, g, nd, na, ns)
node_dungeon = nd or "default:cobble",
node_dungeon_alt = (nd and "") or "default:mossycobble",
node_dungeon_stair = ns or "stairs:stair_cobble",
node_dungeon_stair = ns or "stairs:stair_cobble"
})
end
@ -117,6 +117,9 @@ add_biome("alpine", 40, 140, 10, 40, ethereal.alpine,
nil, "default:dirt_with_snow", 1, "default:dirt", 2)
add_biome("frost_floatland", 1025, 1750, 10, 40, ethereal.frost,
nil, "ethereal:crystal_dirt", 1, "default:dirt", 1)
add_biome("frost", 1, 71, 10, 40, ethereal.frost,
nil, "ethereal:crystal_dirt", 1, "default:dirt", 3)

View File

@ -159,7 +159,7 @@ add_node({"ethereal:prairie_dirt"}, 0.035, {"prairie"}, 1, 100,
ethereal.prairie)
-- crystal spike & crystal grass
add_node({"ethereal:crystal_dirt"}, 0.02, {"frost"}, 1, 100,
add_node({"ethereal:crystal_dirt"}, 0.02, {"frost", "frost_floatland"}, 1, 1750,
{"ethereal:crystal_spike", "ethereal:crystalgrass"}, nil, nil, nil,
ethereal.frost)
@ -191,7 +191,7 @@ local list = {
{"grassytwo", {"default:dirt_with_grass"}, ethereal.grassytwo},
{"prairie", {"ethereal:prairie_dirt"}, ethereal.prairie},
{"mushroom", {"ethereal:mushroom_dirt"}, ethereal.mushroom},
{"swamp", {"default:dirt_with_grass"}, ethereal.swamp},
{"swamp", {"default:dirt_with_grass"}, ethereal.swamp}
}
-- wild red and brown mushrooms
@ -213,7 +213,7 @@ minetest.register_decoration({
biomes = {row[1]},
y_min = 1,
y_max = 120,
decoration = {"flowers:mushroom_brown", "flowers:mushroom_red"},
decoration = {"flowers:mushroom_brown", "flowers:mushroom_red"}
})
end
@ -290,6 +290,9 @@ add_node({"ethereal:grove_dirt"}, 0.2, {"grove"}, 1, 100, {"ethereal:fern"},
add_node({"default:dirt_with_grass"}, 0.1, {"swamp"}, 1, 100,
{"ethereal:fern"}, nil, nil, nil, ethereal.swamp)
add_node({"ethereal:crystal_dirt"}, 0.001, {"frost_floatlands"}, 1025, 1750,
{"ethereal:fern"}, nil, nil, nil, ethereal.frost)
-- snow
add_node({"ethereal:cold_dirt", "default:dirt_with_coniferous_litter"},
0.8, {"snowy"}, 4, 40, {"default:snow"}, nil, nil, nil, ethereal.snowy)
@ -408,7 +411,7 @@ minetest.register_decoration({
"farming:onion_5", "farming:hemp_7", "farming:pepper_7", "farming:soy_5"
},
spawn_by = "group:tree",
num_spawn_by = 1,
num_spawn_by = 1
})
minetest.register_decoration({
@ -425,7 +428,7 @@ minetest.register_decoration({
},
y_min = 18,
y_max = 30,
decoration = {"farming:pineapple_8", "farming:soy_5"},
decoration = {"farming:pineapple_8", "farming:soy_5"}
})
minetest.register_decoration({
@ -444,7 +447,7 @@ minetest.register_decoration({
y_max = 40,
decoration = {"farming:artichoke_5"},
spawn_by = "group:tree",
num_spawn_by = 1,
num_spawn_by = 1
})
end
@ -469,7 +472,7 @@ minetest.register_decoration({
},
y_min = 10,
y_max = 90,
decoration = "bakedclay:delphinium",
decoration = "bakedclay:delphinium"
})
minetest.register_decoration({
@ -489,7 +492,7 @@ minetest.register_decoration({
},
y_min = 15,
y_max = 90,
decoration = "bakedclay:thistle",
decoration = "bakedclay:thistle"
})
minetest.register_decoration({
@ -508,7 +511,7 @@ minetest.register_decoration({
y_max = 90,
decoration = "bakedclay:lazarus",
spawn_by = "default:jungletree",
num_spawn_by = 1,
num_spawn_by = 1
})
minetest.register_decoration({
@ -527,7 +530,7 @@ minetest.register_decoration({
y_max = 15,
decoration = "bakedclay:mannagrass",
spawn_by = "group:water",
num_spawn_by = 1,
num_spawn_by = 1
})
end
@ -539,7 +542,7 @@ minetest.register_decoration({
sidelen = 16,
fill_ratio = 0.001,
biomes = {"desert"},
decoration = {"wine:blue_agave"},
decoration = {"wine:blue_agave"}
})
end
@ -562,7 +565,7 @@ local function register_fern_decoration(seed, length)
},
y_max = 31000,
y_min = 6,
decoration = "default:fern_" .. length,
decoration = "default:fern_" .. length
})
end
@ -593,7 +596,7 @@ if ethereal.tundra and minetest.registered_nodes["default:permafrost"] then
y_min = 2,
decoration = "default:permafrost_with_moss",
place_offset_y = -1,
flags = "force_placement",
flags = "force_placement"
})
-- Tundra patchy snow
@ -618,7 +621,7 @@ if ethereal.tundra and minetest.registered_nodes["default:permafrost"] then
biomes = {"tundra", "tundra_beach"},
y_max = 50,
y_min = 1,
decoration = "default:snow",
decoration = "default:snow"
})
end
@ -662,7 +665,7 @@ if minetest.get_modpath("fireflies") then
biomes = {"grassy", "grassytwo", "snowy", "junglee", "swamp"},
y_max = 31000,
y_min = -1,
decoration = "fireflies:hidden_firefly",
decoration = "fireflies:hidden_firefly"
})
end
@ -694,8 +697,8 @@ if minetest.registered_nodes["default:coral_green"] then
decoration = {
"default:coral_green", "default:coral_pink",
"default:coral_cyan", "default:coral_brown",
"default:coral_orange", "default:coral_skeleton",
},
"default:coral_orange", "default:coral_skeleton"
}
})
-- Kelp
@ -721,7 +724,7 @@ if minetest.registered_nodes["default:coral_green"] then
flags = "force_placement",
decoration = "default:sand_with_kelp",
param2 = 48,
param2_max = 96,
param2_max = 96
})
end

View File

@ -5,7 +5,7 @@ local S = ethereal.intllib
minetest.register_craftitem("ethereal:etherium_dust", {
description = S("Etherium Dust"),
inventory_image = "ethereal_etherium_dust.png",
wield_image = "ethereal_etherium_dust.png",
wield_image = "ethereal_etherium_dust.png"
})
-- Ethereium Ore
@ -14,7 +14,15 @@ minetest.register_node("ethereal:etherium_ore", {
tiles = {"default_desert_stone.png^ethereal_etherium_ore.png"},
groups = {cracky = 3},
drop = "ethereal:etherium_dust",
sounds = default.node_sound_stone_defaults(),
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("ethereal:stone_with_etherium_ore", {
description = S("Etherium Ore"),
tiles = {"default_stone.png^ethereal_etherium_ore.png"},
groups = {cracky = 3},
drop = "ethereal:etherium_dust",
sounds = default.node_sound_stone_defaults()
})
-- Bamboo Flooring
@ -51,7 +59,7 @@ minetest.register_craft({
output = "ethereal:bamboo_block",
recipe = {
{"ethereal:bamboo_floor"},
{"ethereal:bamboo_floor"},
{"ethereal:bamboo_floor"}
}
})
@ -264,9 +272,13 @@ minetest.register_node("ethereal:glostone", {
})
minetest.register_craft({
type = "shapeless",
-- type = "shapeless",
output = "ethereal:glostone",
recipe = {"default:torch", "default:stone", "dye:yellow"}
recipe = {
{"", "default:torch", ""},
{"default:torch", "default:stone", "default:torch"},
{"", "dye:yellow", ""}
}
})
-- Charcoal Lump

View File

@ -90,3 +90,15 @@ minetest.register_ore({
y_max = 40,
biomes = {"caves"},
})
-- Etherium in floatlands
minetest.register_ore({
ore_type = "scatter",
ore = "ethereal:stone_with_etherium_ore",
wherein = "default:stone",
clust_scarcity = 9*9*9,
clust_num_ores = 6,
clust_size = 2,
y_min = 1025,
y_max = 31000
})

View File

@ -47,7 +47,7 @@ local add_schem = function(a, b, c, d, e, f, g, h, i, j, k)
replacements = h,
spawn_by = i,
num_spawn_by = j,
rotation = k,
rotation = k
})
end
@ -72,12 +72,12 @@ add_schem({"ethereal:grove_dirt"}, 0.015, {"grove"}, 1, 100,
-- healing tree
add_schem({"default:dirt_with_snow"}, 0.01, {"alpine"}, 120, 140,
ethereal.yellowtree, ethereal.alpine)
ethereal.yellowtree, ethereal.alpine, nil, "default:dirt_with_snow", 8)
-- crystal frost tree
add_schem({"ethereal:crystal_dirt"}, 0.01, {"frost"}, 1, 100,
add_schem({"ethereal:crystal_dirt"}, 0.01, {"frost", "frost_floatland"}, 1, 1750,
ethereal.frosttrees, ethereal.frost, nil,
"ethereal:crystal_dirt", 6)
"ethereal:crystal_dirt", 8)
-- giant mushroom
add_schem("ethereal:mushroom_dirt", 0.02, {"mushroom"}, 1, 100,