diff --git a/README.md b/README.md index 543ac88..5efdaba 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Too Many Stones -This mod is in a quite functional state, but not a polished state. It currently features 17 stone types that all spawn in the world, cobble for most of them, and bricks, cracked brick, and blocks for all stone types. If your game supplies stairs, you will have access to stairs and slabs. If your game has walls, then you will also get walls for most stone types. The placement of the stones in the mapgen is nearing finalization. More stones may be added, and you can put a feature request on ContentDB or the repo for new ones. I probably won't add any boring stones though. +This mod is in a quite functional state, but not a polished state. It currently features 18 stone types that all spawn in the world, cobble for most of them, and bricks, cracked brick, and blocks for all stone types. If your game supplies stairs, you will have access to stairs and slabs. If your game has walls, then you will also get walls for most stone types. The placement of the stones in the mapgen is nearing finalization. More stones may be added, and you can put a feature request on ContentDB or the repo for new ones. I probably won't add any boring stones though. Done: Amazonite-(light green) @@ -20,6 +20,7 @@ Rose Quartz-(pink) Scoria-(red) Slate-(dark grey) Sugilite-(purple) +Turquoise-(light blue) To Do: Find and add ore mods to optional depends diff --git a/crafting.lua b/crafting.lua index 28937a7..1a66e16 100644 --- a/crafting.lua +++ b/crafting.lua @@ -289,6 +289,32 @@ minetest.register_craft({ {"too_many_stones:sugilite", "too_many_stones:sugilite", "too_many_stones:sugilite"}, } }) +-- Turquoise +minetest.register_craft({ + output = "too_many_stones:turquoise_cobble", + recipe = { + {"too_many_stones:turquoise_pebble", "too_many_stones:turquoise_pebble", "too_many_stones:turquoise_pebble"}, + {"too_many_stones:turquoise_pebble", "too_many_stones:turquoise_pebble", "too_many_stones:turquoise_pebble"}, + {"too_many_stones:turquoise_pebble", "too_many_stones:turquoise_pebble", "too_many_stones:turquoise_pebble"}, + } +}) + +minetest.register_craft({ + output = "too_many_stones:turquoise_brick 4", + recipe = { + {"too_many_stones:turquoise", "too_many_stones:turquoise"}, + {"too_many_stones:turquoise", "too_many_stones:turquoise"}, + } +}) + +minetest.register_craft({ + output = "too_many_stones:turquoise_block 9", + recipe = { + {"too_many_stones:turquoise", "too_many_stones:turquoise", "too_many_stones:turquoise"}, + {"too_many_stones:turquoise", "too_many_stones:turquoise", "too_many_stones:turquoise"}, + {"too_many_stones:turquoise", "too_many_stones:turquoise", "too_many_stones:turquoise"}, + } +}) -- -- Cooking recipes -- @@ -437,3 +463,15 @@ minetest.register_craft({ recipe = "too_many_stones:sugilite_brick", }) +minetest.register_craft({ + type = "cooking", + output = "too_many_stones:turquoise", + recipe = "too_many_stones:turquoise_cobble", +}) + +minetest.register_craft({ + type = "cooking", + output = "too_many_stones:turquoise_cracked_brick", + recipe = "too_many_stones:turquoise_brick", +}) + diff --git a/mapgen.lua b/mapgen.lua index 92c1312..b5bcb24 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -1043,3 +1043,62 @@ persist = 0.0 }, }) + +-- Turquoise + + minetest.register_ore({ + ore_type = "blob", + ore = "too_many_stones:sandstone_with_turquoise", + wherein = {"default:sandstone"}, + clust_scarcity = 32 * 32 * 32, + clust_size = 20, + 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}, + seed = 61, + octaves = 1, + persist = 0.0 + }, + }) + + minetest.register_ore({ + ore_type = "blob", + ore = "too_many_stones:desert_sandstone_with_turquoise", + wherein = {"default:desert_sandstone"}, + clust_scarcity = 32 * 32 * 32, + clust_size = 20, + 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}, + seed = 61, + octaves = 1, + persist = 0.0 + }, + }) + + minetest.register_ore({ + ore_type = "blob", + ore = "too_many_stones:silver_sandstone_with_turquoise", + wherein = {"default:silver_sandstone"}, + clust_scarcity = 32 * 32 * 32, + clust_size = 20, + 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}, + seed = 61, + octaves = 1, + persist = 0.0 + }, + }) diff --git a/nodes.lua b/nodes.lua index 0351d58..922916a 100644 --- a/nodes.lua +++ b/nodes.lua @@ -795,6 +795,84 @@ minetest.register_node("too_many_stones:sugilite_cracked_brick", { groups = {cracky = 2, stone = 1}, sounds = default.node_sound_stone_defaults(), }) +-- Turquoise +minetest.register_node("too_many_stones:sandstone_with_turquoise", { + description = S("Turquoise Ore"), + tiles = {"default_sandstone.png^tms_mineral_turquoise.png"}, + is_ground_content = false, + groups = {cracky = 3, stone = 1}, + drop = "too_many_stones:turquoise_pebble 9", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:desert_sandstone_with_turquoise", { + description = S("Turquoise Ore"), + tiles = {"default_desert_sandstone.png^tms_mineral_turquoise.png"}, + is_ground_content = false, + groups = {cracky = 3, stone = 1}, + drop = "too_many_stones:turquoise_pebble 9", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:silver_sandstone_with_turquoise", { + description = S("Turquoise Ore"), + tiles = {"default_silver_sandstone.png^tms_mineral_turquoise.png"}, + is_ground_content = false, + groups = {cracky = 3, stone = 1}, + drop = "too_many_stones:turquoise_pebble 9", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_craftitem("too_many_stones:turquoise_pebble", { + description = S("Turquoise Pebble"), + inventory_image = "tms_turquoise_pebble.png" +}) + +minetest.register_node("too_many_stones:turquoise", { + description = S("Turquoise"), + tiles = {"tms_turquoise.png"}, + is_ground_content = false, + groups = {cracky = 3, stone = 1}, + drop = "too_many_stones:turquoise", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:turquoise_block", { + description = S("Turquoise Block"), + tiles = {"tms_turquoise_block.png"}, + is_ground_content = false, + groups = {cracky = 3, stone = 1}, + drop = "too_many_stones:turquoise_block", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:turquoise_cobble", { + description = S("Cobbled Turquoise"), + tiles = {"tms_turquoise_cobble.png"}, + is_ground_content = false, + groups = {cracky = 3, stone = 2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:turquoise_brick", { + description = S("Turquoise Brick"), + paramtype2 = "facedir", + place_param2 = 0, + tiles = {"tms_turquoise_brick.png"}, + is_ground_content = false, + groups = {cracky = 2, stone = 1}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("too_many_stones:turquoise_cracked_brick", { + description = S("Cracked Turquoise Brick"), + paramtype2 = "facedir", + place_param2 = 0, + tiles = {"tms_turquoise_brick.png^tms_brick_crack_overlay.png"}, + is_ground_content = false, + groups = {cracky = 2, stone = 1}, + sounds = default.node_sound_stone_defaults(), +}) --[[ minetest.register_node("too_many_stones:bluestone", { description = S("Sodalite"), diff --git a/stairs.lua b/stairs.lua index bd42cfc..f6a2f59 100644 --- a/stairs.lua +++ b/stairs.lua @@ -880,4 +880,59 @@ stairs.register_stair_and_slab( default.node_sound_stone_defaults(), false ) +-- Turquoise +stairs.register_stair_and_slab( + "turquoise", + "too_many_stones:turquoise", + {cracky = 3}, + {"tms_turquoise.png"}, + "Turquoise Stair", + "Turquoise Slab", + default.node_sound_stone_defaults(), + true +) + +stairs.register_stair_and_slab( + "turquoise_cobble", + "too_many_stones:turquoise_cobble", + {cracky = 3}, + {"tms_turquoise_cobble.png"}, + "Cobbled Turquoise Stair", + "Cobbled Turquoise Slab", + default.node_sound_stone_defaults(), + true +) + +stairs.register_stair_and_slab( + "turquoise_brick", + "too_many_stones:turquoise_brick", + {cracky = 2}, + {"tms_turquoise_brick.png"}, + "Turquoise Brick Stair", + "Turquoise Brick Slab", + default.node_sound_stone_defaults(), + false +) + +stairs.register_stair_and_slab( + "turquoise_cracked_brick", + "too_many_stones:turquoise_cracked_brick", + {cracky = 2}, + {"tms_turquoise_brick.png^tms_brick_crack_overlay.png"}, + "Cracked Turquoise Brick Stair", + "Cracked Turquoise Brick Slab", + default.node_sound_stone_defaults(), + false +) + +stairs.register_stair_and_slab( + "turquoise_block", + "too_many_stones:turquoise_block", + {cracky = 2}, + {"tms_turquoise_block.png"}, + "Turquoise Block Stair", + "Turquoise Block Slab", + default.node_sound_stone_defaults(), + false +) end