2024-06-15 01:36:26 +02:00
|
|
|
local common_defs = {
|
|
|
|
terracotta = {
|
|
|
|
_mcl_blast_resistance = 4.2,
|
|
|
|
_mcl_hardness = 1.25,
|
|
|
|
groups = {colored_blocks = 1, pickaxey = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-14 12:01:03 +02:00
|
|
|
local blocks = {
|
|
|
|
["andesite"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
groups = {natural_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-14 22:04:24 +02:00
|
|
|
["basalt"] = {
|
|
|
|
_mcl_blast_resistance = 4.2,
|
|
|
|
_mcl_hardness = 1.25,
|
|
|
|
groups = {natural_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
tiles = {type = "loglike"}
|
|
|
|
},
|
2024-06-14 15:10:03 +02:00
|
|
|
["calcite"] = {
|
|
|
|
_mcl_blast_resistance = 0.75,
|
|
|
|
_mcl_hardness = 0.75,
|
|
|
|
groups = {natural_blocks = 1, pickaxey = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-15 00:51:37 +02:00
|
|
|
["cobblestone"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 2,
|
|
|
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-14 15:10:03 +02:00
|
|
|
["deepslate"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 3,
|
|
|
|
_mcl_silk_touch_drop = true,
|
|
|
|
drop = "blocks:cobbled_deepslate",
|
|
|
|
groups = {natural_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
tiles = {type = "loglike"}
|
|
|
|
},
|
2024-06-14 12:01:03 +02:00
|
|
|
["diorite"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
groups = {natural_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-17 13:54:21 +02:00
|
|
|
["end_stone"] = {
|
|
|
|
_mcl_blast_resistance = 9,
|
|
|
|
_mcl_hardness = 3,
|
|
|
|
groups = {natural_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-14 12:01:03 +02:00
|
|
|
["granite"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
groups = {natural_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-14 15:10:03 +02:00
|
|
|
["netherrack"] = {
|
|
|
|
_mcl_blast_resistance = 0.4,
|
|
|
|
_mcl_hardness = 0.4,
|
|
|
|
groups = {natural_blocks = 1, pickaxey = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-14 12:01:03 +02:00
|
|
|
["stone"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
2024-06-14 15:10:03 +02:00
|
|
|
_mcl_silk_touch_drop = true,
|
|
|
|
drop = "blocks:cobblestone",
|
2024-06-14 12:01:03 +02:00
|
|
|
groups = {natural_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
2024-06-15 01:36:26 +02:00
|
|
|
["terracotta"] = table.copy(common_defs.terracotta),
|
2024-06-14 12:01:03 +02:00
|
|
|
["tuff"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
groups = {natural_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
|
2024-06-15 01:36:26 +02:00
|
|
|
|
|
|
|
for _, color in pairs(voxelibre.colors) do
|
|
|
|
voxelibre.register_block(color.."_terracotta", table.copy(common_defs.terracotta))
|
|
|
|
end
|