From 2cb1f76c25d790a7a65a0d565fbc957fbe36130f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 11 Feb 2017 23:17:16 +0100 Subject: [PATCH] =?UTF-8?q?Rename=20mod:=20hardened=5Fclay=20=E2=86=92=20m?= =?UTF-8?q?cl=5Fcolorblocks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../depends.txt | 0 mods/mcl_colorblocks/description.txt | 1 + .../init.lua | 20 +++++++++--------- mods/mcl_colorblocks/mod.conf | 1 + .../textures/hardened_clay.png | Bin .../textures/hardened_clay_stained_black.png | Bin .../textures/hardened_clay_stained_blue.png | Bin .../textures/hardened_clay_stained_brown.png | Bin .../textures/hardened_clay_stained_cyan.png | Bin .../textures/hardened_clay_stained_green.png | Bin .../textures/hardened_clay_stained_grey.png | Bin .../hardened_clay_stained_light_blue.png | Bin .../textures/hardened_clay_stained_lime.png | Bin .../hardened_clay_stained_magenta.png | Bin .../textures/hardened_clay_stained_orange.png | Bin .../textures/hardened_clay_stained_pink.png | Bin .../textures/hardened_clay_stained_purple.png | Bin .../textures/hardened_clay_stained_red.png | Bin .../textures/hardened_clay_stained_silver.png | Bin .../textures/hardened_clay_stained_white.png | Bin .../textures/hardened_clay_stained_yellow.png | Bin 21 files changed, 12 insertions(+), 10 deletions(-) rename mods/{hardened_clay => mcl_colorblocks}/depends.txt (100%) create mode 100644 mods/mcl_colorblocks/description.txt rename mods/{hardened_clay => mcl_colorblocks}/init.lua (71%) create mode 100644 mods/mcl_colorblocks/mod.conf rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_black.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_blue.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_brown.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_cyan.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_green.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_grey.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_light_blue.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_lime.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_magenta.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_orange.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_pink.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_purple.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_red.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_silver.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_white.png (100%) rename mods/{hardened_clay => mcl_colorblocks}/textures/hardened_clay_stained_yellow.png (100%) diff --git a/mods/hardened_clay/depends.txt b/mods/mcl_colorblocks/depends.txt similarity index 100% rename from mods/hardened_clay/depends.txt rename to mods/mcl_colorblocks/depends.txt diff --git a/mods/mcl_colorblocks/description.txt b/mods/mcl_colorblocks/description.txt new file mode 100644 index 00000000..ff77b29a --- /dev/null +++ b/mods/mcl_colorblocks/description.txt @@ -0,0 +1 @@ +Adds blocks which can be colored, namely hardened clay. diff --git a/mods/hardened_clay/init.lua b/mods/mcl_colorblocks/init.lua similarity index 71% rename from mods/hardened_clay/init.lua rename to mods/mcl_colorblocks/init.lua index 0602c6e7..ef0fc854 100644 --- a/mods/hardened_clay/init.lua +++ b/mods/mcl_colorblocks/init.lua @@ -1,7 +1,7 @@ local init = os.clock() -local clay = {} -clay.dyes = { +local block = {} +block.dyes = { {"white", "White", "white"}, {"grey", "Grey", "dark_grey"}, {"silver", "Light Gray", "grey"}, @@ -20,7 +20,7 @@ clay.dyes = { {"light_blue", "Light Blue", "lightblue"}, } -minetest.register_node("hardened_clay:hardened_clay", { +minetest.register_node("mcl_colorblocks:hardened_clay", { description = "Hardened Clay", tiles = {"hardened_clay.png"}, stack_max = 64, @@ -30,18 +30,18 @@ minetest.register_node("hardened_clay:hardened_clay", { minetest.register_craft({ type = "cooking", - output = "hardened_clay:hardened_clay", + output = "mcl_colorblocks:hardened_clay", recipe = "mcl_core:clay", cooktime = 10, }) -for _, row in ipairs(clay.dyes) do +for _, row in ipairs(block.dyes) do local name = row[1] local desc = row[2] local craft_color_group = row[3] -- Node Definition - minetest.register_node("hardened_clay:"..name, { + minetest.register_node("mcl_colorblocks:hardened_clay_"..name, { description = desc.." Hardened Clay", tiles = {"hardened_clay_stained_"..name..".png"}, groups = {cracky=3,hardened_clay=1,building_block=1}, @@ -50,11 +50,11 @@ for _, row in ipairs(clay.dyes) do }) if craft_color_group then minetest.register_craft({ - output = 'hardened_clay:'..name..' 8', + output = 'mcl_colorblocks:'..name..' 8', recipe = { - {'hardened_clay:hardened_clay', 'hardened_clay:hardened_clay', 'hardened_clay:hardened_clay'}, - {'hardened_clay:hardened_clay', 'mcl_dye:'..craft_color_group, 'hardened_clay:hardened_clay'}, - {'hardened_clay:hardened_clay', 'hardened_clay:hardened_clay', 'hardened_clay:hardened_clay'}, + {'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay'}, + {'mcl_colorblocks:hardened_clay', 'mcl_dye:'..craft_color_group, 'mcl_colorblocks:hardened_clay'}, + {'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay'}, }, }) end diff --git a/mods/mcl_colorblocks/mod.conf b/mods/mcl_colorblocks/mod.conf new file mode 100644 index 00000000..2d6ffb1c --- /dev/null +++ b/mods/mcl_colorblocks/mod.conf @@ -0,0 +1 @@ +name = mcl_colorblocks diff --git a/mods/hardened_clay/textures/hardened_clay.png b/mods/mcl_colorblocks/textures/hardened_clay.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay.png rename to mods/mcl_colorblocks/textures/hardened_clay.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_black.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_black.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_black.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_black.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_blue.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_blue.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_blue.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_blue.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_brown.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_brown.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_brown.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_brown.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_cyan.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_cyan.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_cyan.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_cyan.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_green.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_green.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_green.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_green.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_grey.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_grey.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_grey.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_grey.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_light_blue.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_light_blue.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_light_blue.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_light_blue.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_lime.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_lime.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_lime.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_lime.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_magenta.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_magenta.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_magenta.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_magenta.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_orange.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_orange.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_orange.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_orange.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_pink.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_pink.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_pink.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_pink.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_purple.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_purple.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_purple.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_purple.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_red.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_red.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_red.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_red.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_silver.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_silver.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_silver.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_silver.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_white.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_white.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_white.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_white.png diff --git a/mods/hardened_clay/textures/hardened_clay_stained_yellow.png b/mods/mcl_colorblocks/textures/hardened_clay_stained_yellow.png similarity index 100% rename from mods/hardened_clay/textures/hardened_clay_stained_yellow.png rename to mods/mcl_colorblocks/textures/hardened_clay_stained_yellow.png