|
@ -41,25 +41,55 @@ for _, row in ipairs(block.dyes) do
|
||||||
local desc = row[2]
|
local desc = row[2]
|
||||||
local craft_color_group = row[3]
|
local craft_color_group = row[3]
|
||||||
-- 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",
|
||||||
tiles = {"hardened_clay_stained_"..name..".png"},
|
tiles = {"hardened_clay_stained_"..name..".png"},
|
||||||
groups = {cracky=3,hardened_clay=1,building_block=1},
|
groups = {cracky=3,hardened_clay=1,building_block=1},
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mcl_colorblocks:concrete_powder_"..name, {
|
||||||
|
description = desc.." Concrete Powder",
|
||||||
|
tiles = {"mcl_colorblocks_concrete_powder_"..name..".png"},
|
||||||
|
groups = {crumbly=3,concrete_powder=1,building_block=1,falling_node=1},
|
||||||
|
stack_max = 64,
|
||||||
|
is_ground_content = false,
|
||||||
|
sounds = mcl_sounds.node_sound_sand_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mcl_colorblocks:concrete_"..name, {
|
||||||
|
description = desc.." Concrete",
|
||||||
|
tiles = {"mcl_colorblocks_concrete_"..name..".png"},
|
||||||
|
groups = {cracky=3,conrete=1,building_block=1},
|
||||||
|
stack_max = 64,
|
||||||
|
is_ground_content = false,
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Crafting recipes
|
||||||
if craft_color_group then
|
if craft_color_group then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'mcl_colorblocks:'..name..' 8',
|
output = 'mcl_colorblocks:hardened_clay_'..name..' 8',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay'},
|
{'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay'},
|
||||||
{'mcl_colorblocks:hardened_clay', 'mcl_dye:'..craft_color_group, 'mcl_colorblocks:hardened_clay'},
|
{'mcl_colorblocks:hardened_clay', 'mcl_dye:'..craft_color_group, 'mcl_colorblocks:hardened_clay'},
|
||||||
{'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({
|
||||||
|
output = 'mcl_colorblocks:concrete_powder_'..name..' 8',
|
||||||
|
recipe = {
|
||||||
|
{'mcl_core:sand', 'mcl_core:gravel', 'mcl_core:sand'},
|
||||||
|
{'mcl_core:gravel', 'mcl_dye:'..craft_color_group, 'mcl_core:gravel'},
|
||||||
|
{'mcl_core:sand', 'mcl_core:gravel', 'mcl_core:sand'},
|
||||||
|
},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- TODO: ABM: Concrete Powder + Water = Concrete
|
||||||
|
|
||||||
local time_to_load= os.clock() - init
|
local time_to_load= os.clock() - init
|
||||||
print(string.format("[MOD] "..minetest.get_current_modname().." loaded in %.4f s", time_to_load))
|
print(string.format("[MOD] "..minetest.get_current_modname().." loaded in %.4f s", time_to_load))
|
||||||
|
|
||||||
|
|
After Width: | Height: | Size: 442 B |
After Width: | Height: | Size: 629 B |
After Width: | Height: | Size: 597 B |
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 614 B |
After Width: | Height: | Size: 602 B |
After Width: | Height: | Size: 619 B |
After Width: | Height: | Size: 665 B |
After Width: | Height: | Size: 654 B |
After Width: | Height: | Size: 562 B |
After Width: | Height: | Size: 677 B |
After Width: | Height: | Size: 952 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 908 B |
After Width: | Height: | Size: 1014 B |
After Width: | Height: | Size: 815 B |
After Width: | Height: | Size: 593 B |
After Width: | Height: | Size: 734 B |
After Width: | Height: | Size: 583 B |
After Width: | Height: | Size: 606 B |