diff --git a/README.md b/README.md index 617d7db..4699b78 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,11 @@ Ethereal Mapgen mod for Minetest (works on all except v6) ## Changelog +### 1.27 + + - Added Etherium ore and dust + - Added sparse decoration of dry grass and shrub to caves biome + ### 1.26 - Added Sakura biome, pink sakura trees and saplings diff --git a/extra.lua b/extra.lua index 0fac03f..f299fb4 100644 --- a/extra.lua +++ b/extra.lua @@ -1,6 +1,22 @@ local S = ethereal.intllib +-- Etherium Dust +minetest.register_craftitem("ethereal:etherium_dust", { + description = S("Etherium Dust"), + inventory_image = "ethereal_etherium_dust.png", + wield_image = "ethereal_etherium_dust.png", +}) + +-- Ethereium Ore +minetest.register_node("ethereal:etherium_ore", { + description = S("Etherium Ore"), + tiles = {"default_desert_stone.png^ethereal_etherium_ore.png"}, + groups = {cracky = 3}, + drop = "ethereal:etherium_dust", + sounds = default.node_sound_stone_defaults(), +}) + -- Bamboo Flooring minetest.register_node("ethereal:bamboo_floor", { description = S("Bamboo Floor"), diff --git a/init.lua b/init.lua index 472933e..226313b 100644 --- a/init.lua +++ b/init.lua @@ -11,7 +11,7 @@ -- DO NOT change settings below, use the settings.conf file instead ethereal = { - version = "1.26", + version = "1.27", leaftype = 0, -- 0 for 2D plantlike, 1 for 3D allfaces leafwalk = false, -- true for walkable leaves, false to fall through cavedirt = true, -- caves chop through dirt when true diff --git a/mapgen.lua b/mapgen.lua index 578da5c..a00dcc0 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -533,6 +533,8 @@ add_node({"default:dirt_with_dry_grass"}, 0.25, {"savannah"}, 1, 100, {"default: "default:dry_grass_3", "default:dry_grass_4", "default:dry_grass_5"}, nil, nil, nil, ethereal.savannah) add_node({"default:dirt_with_dry_grass"}, 0.10, {"mesa"}, 1, 100, {"default:dry_grass_2", "default:dry_grass_3", "default:dry_grass_4", "default:dry_grass_5"}, nil, nil, nil, ethereal.mesa) +add_node({"default:desert_stone"}, 0.005, {"caves"}, 5, 40, {"default:dry_grass_2", + "default:dry_grass_3", "default:dry_shrub"}, nil, nil, nil, ethereal.caves) -- flowers & strawberry add_node({"default:dirt_with_grass"}, 0.025, {"grassy"}, 1, 100, {"flowers:dandelion_white", diff --git a/ores.lua b/ores.lua index c536b54..27daa3f 100644 --- a/ores.lua +++ b/ores.lua @@ -54,31 +54,38 @@ local add_ore = function(a, b, c, d, e, f, g) end -- Coal - add_ore("default:stone_with_coal", "default:desert_stone", 24*24*24, 27, 6, -31000, -16) -- Iron - add_ore("default:stone_with_iron", "default:desert_stone", 9*9*9, 5, 3, -63, -16) add_ore("default:stone_with_iron", "default:desert_stone", 24*24*24, 27, 6, -31000, -64) --Mese - add_ore("default:stone_with_mese", "default:desert_stone", 14*14*14, 5, 3, -31000, -256) -- Gold - add_ore("default:stone_with_gold", "default:desert_stone", 15*15*15, 3, 2, -255, -64) add_ore("default:stone_with_gold", "default:desert_stone", 13*13*13, 5, 3, -31000, -256) -- Diamond - add_ore("default:stone_with_diamond", "default:desert_stone", 17*17*17, 4, 3, -255, -128) add_ore("default:stone_with_diamond", "default:desert_stone", 15*15*15, 4, 3, -31000, -256) -- Copper - add_ore("default:stone_with_copper", "default:desert_stone", 9*9*9, 5, 3, -31000, -64) -- Coral Sand add_ore("ethereal:sandy", "default:sand", 10*10*10, 24, 4, -100, -10) + +-- Etherium +minetest.register_ore({ + ore_type = "scatter", + ore = "ethereal:etherium_ore", + wherein = "default:desert_stone", + clust_scarcity = 10*10*10, + clust_num_ores = 1, + clust_size = 1, + y_min = 5, + y_max = 40, + biomes = {"caves"}, +}) diff --git a/textures/ethereal_etherium_dust.png b/textures/ethereal_etherium_dust.png new file mode 100644 index 0000000..65a3e08 Binary files /dev/null and b/textures/ethereal_etherium_dust.png differ diff --git a/textures/ethereal_etherium_ore.png b/textures/ethereal_etherium_ore.png new file mode 100644 index 0000000..19ab81b Binary files /dev/null and b/textures/ethereal_etherium_ore.png differ