From b6c1121e2bc112cf11c2b39a0c4ef46a4982825d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Fri, 6 Apr 2018 21:29:47 +0200 Subject: added missing textures --- crafting.lua | 48 +++++++++++++++++++++++++++-- nodes.lua | 32 ++++++++++++++----- redefinitions.lua | 9 +++++- textures/moreblocks_checker_stone_tile.png | Bin 0 -> 306 bytes textures/moreblocks_dirt_compressed.png | Bin 0 -> 318 bytes textures/moreblocks_trap_box.png | Bin 0 -> 135 bytes textures/moreblocks_trap_box_glass.png | Bin 0 -> 160 bytes 7 files changed, 79 insertions(+), 10 deletions(-) create mode 100644 textures/moreblocks_checker_stone_tile.png create mode 100644 textures/moreblocks_dirt_compressed.png create mode 100644 textures/moreblocks_trap_box.png create mode 100644 textures/moreblocks_trap_box_glass.png diff --git a/crafting.lua b/crafting.lua index 56ffa35..f2e370d 100644 --- a/crafting.lua +++ b/crafting.lua @@ -201,6 +201,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "moreblocks:split_stone_tile 9", + recipe = { + {"moreblocks:stone_tile","moreblocks:stone_tile","moreblocks:stone_tile"}, + {"moreblocks:stone_tile","moreblocks:stone_tile","moreblocks:stone_tile"}, + {"moreblocks:stone_tile","moreblocks:stone_tile","moreblocks:stone_tile"}, + } +}) + minetest.register_craft({ output = "moreblocks:split_stone_tile_alt", recipe = { @@ -208,6 +217,32 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "moreblocks:split_stone_tile_alt 9", + recipe = { + {"moreblocks:split_stone_tile","moreblocks:split_stone_tile","moreblocks:split_stone_tile"}, + {"moreblocks:split_stone_tile","moreblocks:split_stone_tile","moreblocks:split_stone_tile"}, + {"moreblocks:split_stone_tile","moreblocks:split_stone_tile","moreblocks:split_stone_tile"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:stone_tile", + recipe = { + {"moreblocks:split_stone_tile_alt"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:stone_tile 9", + recipe = { + {"moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt"}, + {"moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt"}, + {"moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt"}, + } +}) + + minetest.register_craft({ output = "moreblocks:grey_bricks 2", type = "shapeless", @@ -535,9 +570,18 @@ minetest.register_craft({ minetest.register_craft({ type = "shapeless", output = "moreblocks:copperpatina", - recipe = {"group:bucket_water", "default:copperblock"}, + recipe = {"bucket:bucket_water", "default:copperblock"}, + replacements = { + {"bucket:bucket_water", "bucket:bucket_empty"} + } +}) + +minetest.register_craft({ + type = "shapeless", + output = "moreblocks:copperpatina", + recipe = {"bucket:bucket_river_water", "default:copperblock"}, replacements = { - {"group:bucket_water", "bucket:bucket_empty"} + {"bucket:bucket_river_water", "bucket:bucket_empty"} } }) diff --git a/nodes.lua b/nodes.lua index 54ff1d7..895a292 100644 --- a/nodes.lua +++ b/nodes.lua @@ -179,7 +179,7 @@ local nodes = { description = S("Clean Glass"), drawtype = "glasslike_framed_optional", tiles = {"moreblocks_clean_glass.png", "moreblocks_clean_glass_detail.png"}, - tiles = {"moreblocks_clean_glass.png"}, + -- tiles = {"moreblocks_clean_glass.png"}, one_texture = true, paramtype = "light", sunlight_propagates = true, @@ -346,7 +346,7 @@ local nodes = { description = S("Glow Glass"), drawtype = "glasslike_framed_optional", tiles = {"moreblocks_glow_glass.png", "moreblocks_glow_glass_detail.png"}, - tiles = {"moreblocks_glow_glass.png"}, + -- tiles = {"moreblocks_glow_glass.png"}, one_texture = true, paramtype = "light", sunlight_propagates = true, @@ -358,7 +358,7 @@ local nodes = { description = S("Trap Glow Glass"), drawtype = "glasslike_framed_optional", tiles = {"moreblocks_trap_glass.png", "moreblocks_glow_glass_detail.png"}, - --tiles = {"moreblocks_trap_glass.png"}, + -- tiles = {"moreblocks_trap_glass.png"}, paramtype = "light", sunlight_propagates = true, light_source = 11, @@ -371,9 +371,9 @@ local nodes = { description = S("Super Glow Glass"), drawtype = "glasslike_framed_optional", tiles = {"moreblocks_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"}, - --tiles = {"moreblocks_super_glow_glass.png"}, - one_texture = true, + -- tiles = {"moreblocks_super_glow_glass.png"}, -- tiles = {"default_glass.png^[colorize:#FFFF78"}, + one_texture = true, paramtype = "light", sunlight_propagates = true, light_source = 14, @@ -384,7 +384,7 @@ local nodes = { description = S("Trap Super Glow Glass"), drawtype = "glasslike_framed_optional", tiles = {"moreblocks_trap_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"}, - --tiles = {"moreblocks_trap_super_glow_glass.png"}, + -- tiles = {"moreblocks_trap_super_glow_glass.png"}, paramtype = "light", sunlight_propagates = true, light_source = 14, @@ -432,11 +432,15 @@ for name, def in pairs(nodes) do minetest.register_alias(name, "moreblocks:" ..name) if not def.no_stairs then local groups = {} + temp_tiles = def.tiles + if def.one_texture then + temp_tiles = { def.tiles[1]} + end for k, v in pairs(def.groups) do groups[k] = v end stairsplus:register_all("moreblocks", name, "moreblocks:" ..name, { description = def.description, groups = groups, - tiles = def.tiles, + tiles = temp_tiles, sunlight_propagates = def.sunlight_propagates, light_source = def.light_source, sounds = def.sounds, @@ -456,3 +460,17 @@ minetest.register_craftitem("moreblocks:nothing", { inventory_image = "invisible.png", on_use = function() end, }) + + + + + + + + + + + + + + diff --git a/redefinitions.lua b/redefinitions.lua index 08ec220..d02ed7d 100644 --- a/redefinitions.lua +++ b/redefinitions.lua @@ -129,6 +129,13 @@ end -- wood tiles minetest.register_alias("moreblocks:wood_tile_offset", "moreblocks:wood_tile_up") +-- desert stone stair +-- created in dungeons + +minetest.register_alias("stairs:stair_desert_stone","moreblocks:stair_desert_stone") + + + -- new trapstones and other blocks -- all_faces_acaia_tree @@ -138,4 +145,4 @@ minetest.register_alias("moreblocks:wood_tile_offset", "moreblocks:wood_tile_up" -- trap_obsidian -- trap_obsidian_glass -- trap_sandstone --- TODO: in nodes.lua and crafting.lua +-- in nodes.lua and crafting.lua diff --git a/textures/moreblocks_checker_stone_tile.png b/textures/moreblocks_checker_stone_tile.png new file mode 100644 index 0000000..9d11b4f Binary files /dev/null and b/textures/moreblocks_checker_stone_tile.png differ diff --git a/textures/moreblocks_dirt_compressed.png b/textures/moreblocks_dirt_compressed.png new file mode 100644 index 0000000..0a98272 Binary files /dev/null and b/textures/moreblocks_dirt_compressed.png differ diff --git a/textures/moreblocks_trap_box.png b/textures/moreblocks_trap_box.png new file mode 100644 index 0000000..292ae88 Binary files /dev/null and b/textures/moreblocks_trap_box.png differ diff --git a/textures/moreblocks_trap_box_glass.png b/textures/moreblocks_trap_box_glass.png new file mode 100644 index 0000000..fbb25ca Binary files /dev/null and b/textures/moreblocks_trap_box_glass.png differ -- cgit v1.2.3