mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 17:25:09 +00:00
Add magenta, purple, yellow terracotta
This commit is contained in:
parent
a1e96becce
commit
a6c10cb29c
4 changed files with 29 additions and 3 deletions
|
@ -1,19 +1,20 @@
|
||||||
local init = os.clock()
|
local init = os.clock()
|
||||||
|
|
||||||
local block = {}
|
local block = {}
|
||||||
|
|
||||||
block.dyes = {
|
block.dyes = {
|
||||||
{"white", "White", "white"},
|
{"white", "White", "white"},
|
||||||
{"grey", "Grey", "dark_grey"},
|
{"grey", "Grey", "dark_grey"},
|
||||||
{"silver", "Light Grey", "grey"},
|
{"silver", "Light Grey", "grey"},
|
||||||
{"black", "Black", "black"},
|
{"black", "Black", "black"},
|
||||||
{"red", "Red", "red"},
|
{"red", "Red", "red"},
|
||||||
{"yellow", "Yellow", "yellow"},
|
{"yellow", "Yellow", "yellow", true},
|
||||||
{"green", "Green", "dark_green"},
|
{"green", "Green", "dark_green"},
|
||||||
{"cyan", "Cyan", "cyan"},
|
{"cyan", "Cyan", "cyan"},
|
||||||
{"blue", "Blue", "blue"},
|
{"blue", "Blue", "blue"},
|
||||||
{"magenta", "Magenta", "magenta"},
|
{"magenta", "Magenta", "magenta", true},
|
||||||
{"orange", "Orange", "orange"},
|
{"orange", "Orange", "orange"},
|
||||||
{"purple", "Purple", "violet"},
|
{"purple", "Purple", "violet", true},
|
||||||
{"brown", "Brown", "brown"},
|
{"brown", "Brown", "brown"},
|
||||||
{"pink", "Pink", "pink"},
|
{"pink", "Pink", "pink"},
|
||||||
{"lime", "Lime", "green"},
|
{"lime", "Lime", "green"},
|
||||||
|
@ -40,6 +41,8 @@ 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.." Hardened Clay",
|
description = desc.." Hardened Clay",
|
||||||
|
@ -70,6 +73,20 @@ for _, row in ipairs(block.dyes) do
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if terracotta then
|
||||||
|
local tex = "mcl_colorblocks_glazed_terracotta_"..name..".png"
|
||||||
|
local texes = { tex, tex, tex.."^[transformR180", tex, tex.."^[transformR270", tex.."^[transformR90" }
|
||||||
|
minetest.register_node("mcl_colorblocks:glazed_terracotta_"..name, {
|
||||||
|
description = desc.." Glazed Terracotta",
|
||||||
|
tiles = texes,
|
||||||
|
groups = {cracky=3,glazed_terracotta=1,building_block=1},
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
stack_max = 64,
|
||||||
|
is_ground_content = false,
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- Crafting recipes
|
-- Crafting recipes
|
||||||
if craft_color_group then
|
if craft_color_group then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -89,6 +106,15 @@ for _, row in ipairs(block.dyes) do
|
||||||
'mcl_core:sand', 'mcl_core:gravel', 'mcl_core:sand',
|
'mcl_core:sand', 'mcl_core:gravel', 'mcl_core:sand',
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if terracotta then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "mcl_colorblocks:glazed_terracotta_"..name,
|
||||||
|
recipe = "mcl_colorblocks:hardened_clay_"..name,
|
||||||
|
cooktime = 10,
|
||||||
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 589 B |
Binary file not shown.
After Width: | Height: | Size: 800 B |
Binary file not shown.
After Width: | Height: | Size: 727 B |
Loading…
Reference in a new issue