From 706125b505679eeb59598d2fbd6f0c672ea8b6b4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 21 Jul 2016 12:37:55 +0200 Subject: [PATCH] Allow to change color by crafting with dyes --- README.md | 4 ++++ init.lua | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/README.md b/README.md index 505c68a..fbcefa6 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,10 @@ color into the crafting grid like this: This yields one concentric color cube of the same color. ## Coloring +All cubes can be colored by multiple means. The first one +is by crafting: Place a dye and a color cube into the crafting +grid (shapeless recipe) to create a color cube of the dye color. + This mod supports the Paint Roller mod [`paint_roller`]. All color cubes can be painted to change their color, provided the color is available. diff --git a/init.lua b/init.lua index ebecf57..d14697d 100644 --- a/init.lua +++ b/init.lua @@ -124,6 +124,33 @@ for i=1,#cc.colors do }, }) + -- Color recipes (dye + color cube) + minetest.register_craft({ + type = "shapeless", + output = "colorcubes:"..c.."_single", + recipe = { "group:dye,"..d, "group:colorcube_single" }, + }) + minetest.register_craft({ + type = "shapeless", + output = "colorcubes:"..c.."_tiled", + recipe = { "group:dye,"..d, "group:colorcube_tiled" }, + }) + minetest.register_craft({ + type = "shapeless", + output = "colorcubes:"..c.."_inward", + recipe = { "group:dye,"..d, "group:colorcube_inward" }, + }) + minetest.register_craft({ + type = "shapeless", + output = "colorcubes:"..c.."_light", + recipe = { "group:dye,"..d, "group:colorcube_light" }, + }) + minetest.register_craft({ + type = "shapeless", + output = "colorcubes:"..c.."_window", + recipe = { "group:dye,"..d, "group:colorcube_window" }, + }) + end --[[ Tiled blocks with 2 different colors (usuall complementary colors) ]] -- 2.11.4.GIT