Add green, red, grey, light gray glazed terracotta

This commit is contained in:
Wuzzy 2017-07-17 12:38:58 +02:00
parent ba0d15608e
commit a0900ec363
5 changed files with 32 additions and 38 deletions

View file

@ -3,22 +3,22 @@ local init = os.clock()
local block = {} local block = {}
block.dyes = { block.dyes = {
{"white", "White", "white", true}, {"white", "White", "white"},
{"grey", "Grey", "dark_grey"}, {"grey", "Grey", "dark_grey"},
{"silver", "Light Grey", "grey"}, {"silver", "Light Grey", "grey"},
{"black", "Black", "black", true}, {"black", "Black", "black"},
{"red", "Red", "red"}, {"red", "Red", "red"},
{"yellow", "Yellow", "yellow", true}, {"yellow", "Yellow", "yellow"},
{"green", "Green", "dark_green"}, {"green", "Green", "dark_green"},
{"cyan", "Cyan", "cyan", true}, {"cyan", "Cyan", "cyan"},
{"blue", "Blue", "blue", true}, {"blue", "Blue", "blue"},
{"magenta", "Magenta", "magenta", true}, {"magenta", "Magenta", "magenta"},
{"orange", "Orange", "orange", true}, {"orange", "Orange", "orange"},
{"purple", "Purple", "violet", true}, {"purple", "Purple", "violet"},
{"brown", "Brown", "brown", true}, {"brown", "Brown", "brown"},
{"pink", "Pink", "pink", true}, {"pink", "Pink", "pink"},
{"lime", "Lime", "green", true}, {"lime", "Lime", "green"},
{"light_blue", "Light Blue", "lightblue", true}, {"light_blue", "Light Blue", "lightblue"},
} }
local hc_desc = "Terracotta is a basic building material. It comes in many different colors." local hc_desc = "Terracotta is a basic building material. It comes in many different colors."
@ -49,8 +49,6 @@ for _, row in ipairs(block.dyes) do
local name = row[1] local name = row[1]
local desc = row[2] local desc = row[2]
local craft_color_group = row[3] local craft_color_group = row[3]
-- TODO: Remove when all 16 terracotta textures are available
local terracotta = row[4]
-- Node Definition -- Node Definition
minetest.register_node("mcl_colorblocks:hardened_clay_"..name, { minetest.register_node("mcl_colorblocks:hardened_clay_"..name, {
description = desc.." Terracotta", description = desc.." Terracotta",
@ -90,7 +88,6 @@ for _, row in ipairs(block.dyes) do
_mcl_hardness = 1.8, _mcl_hardness = 1.8,
}) })
if terracotta then
local tex = "mcl_colorblocks_glazed_terracotta_"..name..".png" local tex = "mcl_colorblocks_glazed_terracotta_"..name..".png"
local texes = { tex, tex, tex.."^[transformR180", tex, tex.."^[transformR270", tex.."^[transformR90" } local texes = { tex, tex, tex.."^[transformR180", tex, tex.."^[transformR270", tex.."^[transformR90" }
minetest.register_node("mcl_colorblocks:glazed_terracotta_"..name, { minetest.register_node("mcl_colorblocks:glazed_terracotta_"..name, {
@ -105,7 +102,6 @@ for _, row in ipairs(block.dyes) do
_mcl_blast_resistance = 7, _mcl_blast_resistance = 7,
_mcl_hardness = 1.4, _mcl_hardness = 1.4,
}) })
end
-- Crafting recipes -- Crafting recipes
if craft_color_group then if craft_color_group then
@ -127,7 +123,6 @@ for _, row in ipairs(block.dyes) do
} }
}) })
if terracotta then
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "mcl_colorblocks:glazed_terracotta_"..name, output = "mcl_colorblocks:glazed_terracotta_"..name,
@ -135,7 +130,6 @@ for _, row in ipairs(block.dyes) do
cooktime = 10, cooktime = 10,
}) })
end end
end
end end
-- When water touches concrete powder, it turns into concrete of the same color -- When water touches concrete powder, it turns into concrete of the same color

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B