From 00bb6e4181cb27ec92911fd79d7db4eeefd50873 Mon Sep 17 00:00:00 2001 From: TheOnlyJoeEnderman Date: Wed, 28 Jun 2023 03:22:38 +0000 Subject: [PATCH] 0.4.0 --- LICENSE.txt | 39 ---------------------- mapgen.lua | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++ mod.conf | 1 + nodes.lua | 61 ++++++++++++++++++++++++++++++---- 4 files changed, 151 insertions(+), 46 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index 1a94070..e57fef0 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -49,45 +49,6 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -License of turquoise ore texture --------------------------------- - -Attribution 3.0 Unported (CC BY 3.0) - -Copyright (C) 2009 cmusounddesign -Copyright (C) 2010 Tomlija -Copyright (C) 2010 lsprice -Copyright (C) 2014 sonictechtonic -Copyright (C) 2015 yadronoff -Copyright (C) 2007 HerbertBoland -Copyright (C) 2006 AGFX - -You are free to: -Share — copy and redistribute the material in any medium or format. -Adapt — remix, transform, and build upon the material for any purpose, even commercially. -The licensor cannot revoke these freedoms as long as you follow the license terms. - -Under the following terms: - -Attribution — You must give appropriate credit, provide a link to the license, and -indicate if changes were made. You may do so in any reasonable manner, but not in any way -that suggests the licensor endorses you or your use. - -No additional restrictions — You may not apply legal terms or technological measures that -legally restrict others from doing anything the license permits. - -Notices: - -You do not have to comply with the license for elements of the material in the public -domain or where your use is permitted by an applicable exception or limitation. -No warranties are given. The license may not give you all of the permissions necessary -for your intended use. For example, other rights such as publicity, privacy, or moral -rights may limit how you use the material. - -For more details: -http://creativecommons.org/licenses/by/3.0/ - - License of geode generation --------------------------- diff --git a/mapgen.lua b/mapgen.lua index 3d542b3..45149c5 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -1944,6 +1944,54 @@ if minetest.get_modpath("default") ~= nil then }, }) +-- Shale + + register_ore_by_climate({ + ore_type = "blob", + ore = "too_many_stones:shale", + wherein = {"mapgen_stone"}, + clust_scarcity = 72 * 72 * 72, + clust_size = 14, + heat_min = 0, + heat_max = 100, + humidity_min = 40, + humidity_max = 100, + y_max = 300, + y_min = -60, + noise_threshold = 0.0, + noise_params = { + offset = 0.5, + scale = 0.2, + spread = {x = 5, y = 5, z = 5}, + octaves = 1, + persist = 0.0, + seed = seed(), + }, + }) + + register_ore_by_climate({ + ore_type = "blob", + ore = "too_many_stones:shale", + wherein = {"mapgen_stone"}, + clust_scarcity = 70 * 70 * 70, + clust_size = 14, + heat_min = 41, + heat_max = 59, + humidity_min = 41, + humidity_max = 100, + y_max = 300, + y_min = -60, + noise_threshold = 0.0, + noise_params = { + offset = 0.5, + scale = 0.2, + spread = {x = 5, y = 5, z = 5}, + octaves = 1, + persist = 0.0, + seed = seed(), + }, + }) + -- Slate register_ore_by_climate({ @@ -6418,6 +6466,54 @@ else }, }) +-- Shale + + register_ore_by_climate({ + ore_type = "blob", + ore = "too_many_stones:shale", + wherein = {"mapgen_stone"}, + clust_scarcity = 72 * 72 * 72, + clust_size = 14, + heat_min = 0, + heat_max = 100, + humidity_min = 40, + humidity_max = 100, + y_max = 300, + y_min = -60, + noise_threshold = 0.0, + noise_params = { + offset = 0.5, + scale = 0.2, + spread = {x = 5, y = 5, z = 5}, + octaves = 1, + persist = 0.0, + seed = seed(), + }, + }) + + register_ore_by_climate({ + ore_type = "blob", + ore = "too_many_stones:shale", + wherein = {"mapgen_stone"}, + clust_scarcity = 70 * 70 * 70, + clust_size = 14, + heat_min = 41, + heat_max = 59, + humidity_min = 41, + humidity_max = 100, + y_max = 300, + y_min = -60, + noise_threshold = 0.0, + noise_params = { + offset = 0.5, + scale = 0.2, + spread = {x = 5, y = 5, z = 5}, + octaves = 1, + persist = 0.0, + seed = seed(), + }, + }) + -- Slate register_ore_by_climate({ diff --git a/mod.conf b/mod.conf index 405152b..2f8dab3 100644 --- a/mod.conf +++ b/mod.conf @@ -3,3 +3,4 @@ description = Adds several new stone types to nearly any Minetest Game and mapge optional_depends = stairs, walls, geodes, moreores, geodes_lib, dye, default, lottmapgen, base_earth min_minetest_version = 5.3 title = Too Many Stones +author = JoeEnderman diff --git a/nodes.lua b/nodes.lua index f8ea60a..8d38a22 100644 --- a/nodes.lua +++ b/nodes.lua @@ -55,6 +55,7 @@ Quartz Rose Quartz Scoria Serpentine +Shale Slate Smokey Quartz Soapstone @@ -1096,7 +1097,7 @@ minetest.register_node("too_many_stones:granite_black_cobble", { description = S("Cobbled Black Granite"), tiles = {"tms_granite_black_cobble.png"}, is_ground_content = false, - groups = {cracky = 3, dark_grey_stone = 1, stone = 2}, + groups = {cracky = 3, black_stone = 1, stone = 2}, sounds = too_many_stones.node_sound_stone_defaults(), }) @@ -1144,7 +1145,7 @@ minetest.register_node("too_many_stones:granite_blue_cobble", { description = S("Cobbled Blue Granite"), tiles = {"tms_granite_blue_cobble.png"}, is_ground_content = false, - groups = {cracky = 3, dark_grey_stone = 1, stone = 2}, + groups = {cracky = 3, blue_stone = 1, stone = 2}, sounds = too_many_stones.node_sound_stone_defaults(), }) @@ -1192,7 +1193,7 @@ minetest.register_node("too_many_stones:granite_gray_cobble", { description = S("Cobbled Gray Granite"), tiles = {"tms_granite_gray_cobble.png"}, is_ground_content = false, - groups = {cracky = 3, dark_grey_stone = 1, stone = 2}, + groups = {cracky = 3, grey_stone = 1, stone = 2}, sounds = too_many_stones.node_sound_stone_defaults(), }) @@ -1240,7 +1241,7 @@ minetest.register_node("too_many_stones:granite_green_cobble", { description = S("Cobbled Green Granite"), tiles = {"tms_granite_green_cobble.png"}, is_ground_content = false, - groups = {cracky = 3, dark_grey_stone = 1, stone = 2}, + groups = {cracky = 3, dark_green_stone = 1, stone = 2}, sounds = too_many_stones.node_sound_stone_defaults(), }) @@ -1288,7 +1289,7 @@ minetest.register_node("too_many_stones:granite_pink_cobble", { description = S("Cobbled Pink Granite"), tiles = {"tms_granite_pink_cobble.png"}, is_ground_content = false, - groups = {cracky = 3, dark_grey_stone = 1, stone = 2}, + groups = {cracky = 3, pink_stone = 1, stone = 2}, sounds = too_many_stones.node_sound_stone_defaults(), }) @@ -1336,7 +1337,7 @@ minetest.register_node("too_many_stones:granite_red_cobble", { description = S("Cobbled Red Granite"), tiles = {"tms_granite_red_cobble.png"}, is_ground_content = false, - groups = {cracky = 3, dark_grey_stone = 1, stone = 2}, + groups = {cracky = 3, red_stone = 1, stone = 2}, sounds = too_many_stones.node_sound_stone_defaults(), }) @@ -1384,7 +1385,7 @@ minetest.register_node("too_many_stones:granite_white_cobble", { description = S("Cobbled White Granite"), tiles = {"tms_granite_white_cobble.png"}, is_ground_content = false, - groups = {cracky = 3, dark_grey_stone = 1, stone = 2}, + groups = {cracky = 3, white_stone = 1, stone = 2}, sounds = too_many_stones.node_sound_stone_defaults(), }) @@ -2302,6 +2303,52 @@ minetest.register_node("too_many_stones:serpentine_cracked_brick", { groups = {cracky = 2, dark_green_stone = 1, stone = 1}, sounds = too_many_stones.node_sound_stone_defaults(), }) +-- Shale +minetest.register_node("too_many_stones:shale", { + description = S("Shale"), + tiles = {"tms_shale.png"}, + is_ground_content = false, + groups = {cracky = 3, dark_green_stone = 1, stone = 1}, + drop = "too_many_stones:shale_cobble", + sounds = too_many_stones.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:shale_block", { + description = S("Shale Block"), + tiles = {"tms_shale_block.png"}, + is_ground_content = false, + groups = {cracky = 3, dark_green_stone = 1, stone = 1}, + drop = "too_many_stones:shale_block", + sounds = too_many_stones.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:shale_cobble", { + description = S("Cobbled Shale"), + tiles = {"tms_shale_cobble.png"}, + is_ground_content = false, + groups = {cracky = 3, dark_green_stone = 1, stone = 2}, + sounds = too_many_stones.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:shale_brick", { + description = S("Shale Brick"), + paramtype2 = "facedir", + place_param2 = 0, + tiles = {"tms_shale_brick.png"}, + is_ground_content = false, + groups = {cracky = 2, dark_green_stone = 1, stone = 1}, + sounds = too_many_stones.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:shale_cracked_brick", { + description = S("Cracked Shale Brick"), + paramtype2 = "facedir", + place_param2 = 0, + tiles = {"tms_shale_cracked_brick.png"}, + is_ground_content = false, + groups = {cracky = 2, dark_green_stone = 1, stone = 1}, + sounds = too_many_stones.node_sound_stone_defaults(), +}) -- Slate minetest.register_node("too_many_stones:slate", { description = S("Slate"),