0
0
Fork 0

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,22 +88,20 @@ 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, { description = desc.." Glazed Terracotta",
description = desc.." Glazed Terracotta", _doc_items_longdesc = gt_desc,
_doc_items_longdesc = gt_desc, tiles = texes,
tiles = texes, groups = {handy=1,pickaxey=1, glazed_terracotta=1,building_block=1, material_stone=1},
groups = {handy=1,pickaxey=1, glazed_terracotta=1,building_block=1, material_stone=1}, paramtype2 = "facedir",
paramtype2 = "facedir", stack_max = 64,
stack_max = 64, is_ground_content = false,
is_ground_content = false, sounds = mcl_sounds.node_sound_stone_defaults(),
sounds = mcl_sounds.node_sound_stone_defaults(), _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,14 +123,12 @@ 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, recipe = "mcl_colorblocks:hardened_clay_"..name,
recipe = "mcl_colorblocks:hardened_clay_"..name, cooktime = 10,
cooktime = 10, })
})
end
end end
end end

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