forked from VoxeLibre/VoxeLibre
284 lines
10 KiB
Lua
284 lines
10 KiB
Lua
local common_defs = {
|
|
concrete = {
|
|
_mcl_blast_resistance = 1.8,
|
|
_mcl_hardness = 1.8,
|
|
groups = {colored_blocks = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
concrete_powder = {
|
|
_mcl_blast_resistance = 0.5,
|
|
_mcl_hardness = 0.5,
|
|
groups = {colored_blocks = 1, falling_node = 1, handy = 1, shovely = 1},
|
|
sounds = mcl_sounds.node_sound_sand_defaults()
|
|
},
|
|
flammable_planks_groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
|
|
planks = {
|
|
_mcl_blast_resistance = 3,
|
|
_mcl_hardness = 2,
|
|
groups = {axey = 1, building_blocks = 1, handy = 1, planks = 1},
|
|
sounds = mcl_sounds.node_sound_wood_defaults()
|
|
}
|
|
}
|
|
|
|
local planks = {
|
|
["acacia"] = {groups = common_defs.flammable_planks_groups},
|
|
["bamboo"] = {groups = common_defs.flammable_planks_groups},
|
|
["birch"] = {groups = common_defs.flammable_planks_groups},
|
|
["cherry"] = {groups = common_defs.flammable_planks_groups},
|
|
["crimson"] = {},
|
|
["dark_oak"] = {groups = common_defs.flammable_planks_groups},
|
|
["jungle"] = {groups = common_defs.flammable_planks_groups},
|
|
["mangrove"] = {groups = common_defs.flammable_planks_groups},
|
|
["oak"] = {groups = common_defs.flammable_planks_groups},
|
|
["spruce"] = {groups = common_defs.flammable_planks_groups},
|
|
["warped"] = {}
|
|
}
|
|
|
|
for _, color in pairs(voxelibre.colors) do
|
|
local identifier = color.."_concrete"
|
|
|
|
voxelibre.register_block(identifier, table.copy(common_defs.concrete))
|
|
|
|
identifier = identifier.."_powder"
|
|
|
|
voxelibre.register_block(identifier, table.copy(common_defs.concrete_powder))
|
|
end
|
|
|
|
for identifier, definitions in pairs(planks) do
|
|
voxelibre.register_block(identifier.."_planks", table.merge(common_defs.planks, definitions))
|
|
end
|
|
|
|
local blocks = {
|
|
["bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 2,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["chiseled_nether_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 2,
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["chiseled_polished_blackstone"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["chiseled_red_sandstone"] = {
|
|
_mcl_blast_resistance = 0.8,
|
|
_mcl_hardness = 0.8,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
tiles = {
|
|
"natural_red_sandstone_top.png",
|
|
"natural_red_sandstone_bottom.png",
|
|
"building_chiseled_red_sandstone.png"
|
|
}
|
|
},
|
|
["chiseled_sandstone"] = {
|
|
_mcl_blast_resistance = 0.8,
|
|
_mcl_hardness = 0.8,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
tiles = {
|
|
"natural_sandstone_top.png",
|
|
"natural_sandstone_bottom.png",
|
|
"building_chiseled_sandstone.png"
|
|
}
|
|
},
|
|
["chiseled_stone_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["cracked_deepslate_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 3.5,
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["cracked_nether_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 2,
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["cracked_polished_blackstone_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["cracked_stone_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["cut_red_sandstone"] = {
|
|
_mcl_blast_resistance = 0.8,
|
|
_mcl_hardness = 0.8,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
tiles = {
|
|
"natural_red_sandstone_top.png",
|
|
"natural_red_sandstone_top.png",
|
|
"building_cut_red_sandstone.png"
|
|
}
|
|
},
|
|
["cut_sandstone"] = {
|
|
_mcl_blast_resistance = 0.8,
|
|
_mcl_hardness = 0.8,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
tiles = {
|
|
"natural_sandstone_top.png",
|
|
"natural_sandstone_top.png",
|
|
"building_cut_sandstone.png"
|
|
}
|
|
},
|
|
["dark_prismarine"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["deepslate_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 3.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["end_stone_bricks"] = {
|
|
_mcl_blast_resistance = 9,
|
|
_mcl_hardness = 3,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["mossy_stone_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["mud_bricks"] = {
|
|
_mcl_blast_resistance = 3,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["nether_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 2,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["packed_mud"] = {
|
|
_mcl_blast_resistance = 3,
|
|
_mcl_hardness = 1,
|
|
groups = {building_blocks = 1, handy = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["polished_andesite"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["polished_blackstone"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 2,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["polished_blackstone_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["polished_deepslate"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 3.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["polished_diorite"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["polished_granite"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["prismarine_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["purpur_block"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["purpur_pillar"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
on_place = minetest.rotate_node,
|
|
paramtype2 = "facedir",
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
tiles = {type = "loglike"}
|
|
},
|
|
["red_nether_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 2,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["smooth_red_sandstone"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 2,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["smooth_sandstone"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 2,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["smooth_stone"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 2,
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["stone_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
},
|
|
["tuff_bricks"] = {
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 1.5,
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
}
|
|
}
|
|
|
|
for identifier, definitions in pairs(blocks) do
|
|
voxelibre.register_block(identifier, definitions)
|
|
end
|