Removed old glazed terracotta blocks
|
@ -4,22 +4,22 @@ local doc_mod = minetest.get_modpath("doc")
|
||||||
local block = {}
|
local block = {}
|
||||||
|
|
||||||
block.dyes = {
|
block.dyes = {
|
||||||
{ "white", S("White Terracotta"), S("White Glazed Terracotta"), "white" },
|
{ "white", S("White Terracotta"), "white" },
|
||||||
{ "grey", S("Grey Terracotta"), S("Grey Glazed Terracotta"), "dark_grey" },
|
{ "grey", S("Grey Terracotta"), "dark_grey" },
|
||||||
{ "silver", S("Light Grey Terracotta"), S("Light Grey Glazed Terracotta"), "grey" },
|
{ "silver", S("Light Grey Terracotta"), "grey" },
|
||||||
{ "black", S("Black Terracotta"), S("Black Glazed Terracotta"), "black" },
|
{ "black", S("Black Terracotta"), "black" },
|
||||||
{ "red", S("Red Terracotta"), S("Red Glazed Terracotta"), "red" },
|
{ "red", S("Red Terracotta"), "red" },
|
||||||
{ "yellow", S("Yellow Terracotta"), S("Yellow Glazed Terracotta"), "yellow" },
|
{ "yellow", S("Yellow Terracotta"), "yellow" },
|
||||||
{ "green", S("Green Terracotta"), S("Green Glazed Terracotta"), "dark_green"},
|
{ "green", S("Green Terracotta"), "dark_green"},
|
||||||
{ "cyan", S("Cyan Terracotta"), S("Cyan Glazed Terracotta"), "cyan" },
|
{ "cyan", S("Cyan Terracotta"), "cyan" },
|
||||||
{ "blue", S("Blue Terracotta"), S("Blue Glazed Terracotta"), "blue" },
|
{ "blue", S("Blue Terracotta"), "blue" },
|
||||||
{ "magenta", S("Magenta Terracotta"), S("Magenta Glazed Terracotta"), "magenta" },
|
{ "magenta", S("Magenta Terracotta"), "magenta" },
|
||||||
{ "orange", S("Orange Terracotta"), S("Orange Glazed Terracotta"), "orange" },
|
{ "orange", S("Orange Terracotta"), "orange" },
|
||||||
{ "purple", S("Purple Terracotta"), S("Purple Glazed Terracotta"), "violet" },
|
{ "purple", S("Purple Terracotta"), "violet" },
|
||||||
{ "brown", S("Brown Terracotta"), S("Brown Glazed Terracotta"), "brown" },
|
{ "brown", S("Brown Terracotta"), "brown" },
|
||||||
{ "pink", S("Pink Terracotta"), S("Pink Glazed Terracotta"), "pink" },
|
{ "pink", S("Pink Terracotta"), "pink" },
|
||||||
{ "lime", S("Lime Terracotta"), S("Lime Glazed Terracotta"), "green" },
|
{ "lime", S("Lime Terracotta"), "green" },
|
||||||
{ "light_blue", S("Light Blue Terracotta"), S("Light Blue Glazed Terracotta"), "lightblue" },
|
{ "light_blue", S("Light Blue Terracotta"), "lightblue" },
|
||||||
}
|
}
|
||||||
local canonical_color = "yellow"
|
local canonical_color = "yellow"
|
||||||
|
|
||||||
|
@ -44,19 +44,13 @@ minetest.register_craft({
|
||||||
cooktime = 10,
|
cooktime = 10,
|
||||||
})
|
})
|
||||||
|
|
||||||
local on_rotate
|
|
||||||
if minetest.get_modpath("screwdriver") then
|
|
||||||
on_rotate = screwdriver.rotate_simple
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, row in ipairs(block.dyes) do
|
for _, row in ipairs(block.dyes) do
|
||||||
local name = row[1]
|
local name = row[1]
|
||||||
local is_canonical = name == canonical_color
|
local is_canonical = name == canonical_color
|
||||||
local sdesc_hc = row[2]
|
local sdesc_hc = row[2]
|
||||||
local sdesc_gt = row[3]
|
local ldesc_hc
|
||||||
local ldesc_hc, ldesc_gt
|
|
||||||
local create_entry
|
local create_entry
|
||||||
local ename_hc, ename_gt
|
local ename_hc
|
||||||
if is_canonical then
|
if is_canonical then
|
||||||
ldesc_hc = hc_desc
|
ldesc_hc = hc_desc
|
||||||
ldesc_gt = gt_desc
|
ldesc_gt = gt_desc
|
||||||
|
@ -80,27 +74,8 @@ for _, row in ipairs(block.dyes) do
|
||||||
_mcl_hardness = 1.25,
|
_mcl_hardness = 1.25,
|
||||||
})
|
})
|
||||||
|
|
||||||
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 = sdesc_gt,
|
|
||||||
_doc_items_longdesc = ldesc_gt,
|
|
||||||
_doc_items_create_entry = create_entry,
|
|
||||||
_doc_items_entry_name = ename_gt,
|
|
||||||
tiles = texes,
|
|
||||||
groups = {handy=1,pickaxey=1, glazed_terracotta=1,building_block=1, material_stone=1},
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
stack_max = 64,
|
|
||||||
is_ground_content = false,
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 4.2,
|
|
||||||
_mcl_hardness = 1.4,
|
|
||||||
on_rotate = on_rotate,
|
|
||||||
})
|
|
||||||
|
|
||||||
if not is_canonical and doc_mod then
|
if not is_canonical and doc_mod then
|
||||||
doc.add_entry_alias("nodes", "mcl_colorblocks:hardened_clay_"..canonical_color, "nodes", "mcl_colorblocks:hardened_clay_"..name)
|
doc.add_entry_alias("nodes", "mcl_colorblocks:hardened_clay_"..canonical_color, "nodes", "mcl_colorblocks:hardened_clay_"..name)
|
||||||
doc.add_entry_alias("nodes", "mcl_colorblocks:glazed_terracotta_"..canonical_color, "nodes", "mcl_colorblocks:glazed_terracotta_"..name)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Crafting recipes
|
-- Crafting recipes
|
||||||
|
@ -113,11 +88,5 @@ for _, row in ipairs(block.dyes) do
|
||||||
{"mcl_colorblocks:hardened_clay", "mcl_colorblocks:hardened_clay", "mcl_colorblocks:hardened_clay"},
|
{"mcl_colorblocks:hardened_clay", "mcl_colorblocks:hardened_clay", "mcl_colorblocks:hardened_clay"},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "mcl_colorblocks:glazed_terracotta_"..name,
|
|
||||||
recipe = "mcl_colorblocks:hardened_clay_"..name,
|
|
||||||
cooktime = 10,
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Before Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 189 B |
Before Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 168 B |
Before Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 229 B |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 138 B |
Before Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 142 B |
Before Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 168 B |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 170 B |