2024-06-07 11:47:58 +02:00
|
|
|
local commondefs = {
|
2024-06-07 15:24:26 +02:00
|
|
|
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},
|
2024-06-07 11:47:58 +02:00
|
|
|
planks = {
|
2024-06-07 14:34:47 +02:00
|
|
|
_mcl_blast_resistance = 3,
|
|
|
|
_mcl_hardness = 2,
|
2024-06-07 11:47:58 +02:00
|
|
|
groups = {axey = 1, building_blocks = 1, handy = 1, planks = 1},
|
2024-06-07 14:34:47 +02:00
|
|
|
sounds = mcl_sounds.node_sound_wood_defaults()
|
2024-06-07 11:47:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
local planks = {
|
2024-06-07 15:24:26 +02:00
|
|
|
["acacia"] = {groups = commondefs.flammable_planks_groups},
|
|
|
|
["bamboo"] = {groups = commondefs.flammable_planks_groups},
|
|
|
|
["birch"] = {groups = commondefs.flammable_planks_groups},
|
|
|
|
["cherry"] = {groups = commondefs.flammable_planks_groups},
|
|
|
|
["crimson"] = {},
|
|
|
|
["dark_oak"] = {groups = commondefs.flammable_planks_groups},
|
|
|
|
["jungle"] = {groups = commondefs.flammable_planks_groups},
|
|
|
|
["mangrove"] = {groups = commondefs.flammable_planks_groups},
|
|
|
|
["oak"] = {groups = commondefs.flammable_planks_groups},
|
|
|
|
["spruce"] = {groups = commondefs.flammable_planks_groups},
|
|
|
|
["warped"] = {}
|
2024-06-07 11:47:58 +02:00
|
|
|
}
|
|
|
|
|
2024-06-07 15:24:26 +02:00
|
|
|
for _, color in pairs(voxelibre.colors) do
|
|
|
|
local identifier = color.."_concrete"
|
|
|
|
|
|
|
|
voxelibre.register_block(identifier, table.copy(commondefs.concrete))
|
|
|
|
|
|
|
|
identifier = identifier.."_powder"
|
|
|
|
|
|
|
|
voxelibre.register_block(identifier, table.copy(commondefs.concrete_powder))
|
|
|
|
end
|
|
|
|
|
2024-06-07 11:47:58 +02:00
|
|
|
for identifier, definitions in pairs(planks) do
|
2024-06-07 14:34:47 +02:00
|
|
|
voxelibre.register_block(identifier.."_planks", table.merge(commondefs.planks, definitions))
|
2024-06-07 11:47:58 +02:00
|
|
|
end
|
2024-06-07 15:50:14 +02:00
|
|
|
|
|
|
|
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()
|
|
|
|
},
|
2024-06-07 23:17:34 +02:00
|
|
|
["chiseled_nether_bricks"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 2,
|
|
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-07 15:50:14 +02:00
|
|
|
["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()
|
|
|
|
},
|
2024-06-07 23:17:34 +02:00
|
|
|
["cracked_nether_bricks"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 2,
|
|
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-07 15:50:14 +02:00
|
|
|
["cracked_stone_bricks"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
groups = {building_blocks = 1, pickaxey = 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()
|
|
|
|
},
|
2024-06-07 23:17:34 +02:00
|
|
|
["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()
|
|
|
|
},
|
2024-06-07 15:50:14 +02:00
|
|
|
["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()
|
|
|
|
},
|
2024-06-07 23:17:34 +02:00
|
|
|
["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()
|
|
|
|
},
|
|
|
|
["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()
|
|
|
|
},
|
|
|
|
["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()
|
|
|
|
},
|
2024-06-07 15:50:14 +02:00
|
|
|
["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
|