Add concrete and concrete powder blocks
From Minecraft 17w06a
@ -48,18 +48,48 @@ for _, row in ipairs(block.dyes) do
|
||||
stack_max = 64,
|
||||
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
|
||||
minetest.register_craft({
|
||||
output = 'mcl_colorblocks:'..name..' 8',
|
||||
output = 'mcl_colorblocks:hardened_clay_'..name..' 8',
|
||||
recipe = {
|
||||
{'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_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
|
||||
|
||||
-- TODO: ABM: Concrete Powder + Water = Concrete
|
||||
|
||||
local time_to_load= os.clock() - init
|
||||
print(string.format("[MOD] "..minetest.get_current_modname().." loaded in %.4f s", time_to_load))
|
||||
|
||||
|
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_black.png
Normal file
After Width: | Height: | Size: 442 B |
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_blue.png
Normal file
After Width: | Height: | Size: 629 B |
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_brown.png
Normal file
After Width: | Height: | Size: 597 B |
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_cyan.png
Normal file
After Width: | Height: | Size: 652 B |
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_green.png
Normal file
After Width: | Height: | Size: 614 B |
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_grey.png
Normal file
After Width: | Height: | Size: 602 B |
After Width: | Height: | Size: 619 B |
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_lime.png
Normal file
After Width: | Height: | Size: 665 B |
After Width: | Height: | Size: 654 B |
After Width: | Height: | Size: 562 B |
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_pink.png
Normal file
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 |
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_red.png
Normal file
After Width: | Height: | Size: 593 B |
After Width: | Height: | Size: 734 B |
BIN
mods/mcl_colorblocks/textures/mcl_colorblocks_concrete_white.png
Normal file
After Width: | Height: | Size: 583 B |
After Width: | Height: | Size: 606 B |