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 0000000000..ff77b29a64 --- /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 0602c6e7a7..ef0fc8542c 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 0000000000..2d6ffb1c2b --- /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