1
0
Fork 0

Add concrete and concrete powder blocks

From Minecraft 17w06a
objects
Wuzzy 2017-02-11 23:33:06 +01:00
parent 2cb1f76c25
commit 6f31f3e815
33 changed files with 38 additions and 8 deletions

View File

@ -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))

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1014 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 B