2024-06-10 07:55:48 +02:00
|
|
|
local common_defs = {
|
|
|
|
quartz = {
|
|
|
|
_mcl_blast_resistance = 0.8,
|
|
|
|
_mcl_hardness = 0.8,
|
|
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
local quartz_blocks = {
|
|
|
|
["chiseled_quartz_block"] = {
|
|
|
|
groups = {stonecuttable = 1},
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
tiles = {type = "loglike"}
|
|
|
|
},
|
|
|
|
["quartz_block"] = {
|
|
|
|
description = "Block of Quartz",
|
|
|
|
groups = {stonecuttable = 1},
|
|
|
|
tiles = {
|
|
|
|
"building_quartz_block_top.png",
|
|
|
|
"building_quartz_block_bottom.png",
|
|
|
|
"building_quartz_block_side.png"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
["quartz_bricks"] = {},
|
|
|
|
["quartz_pillar"] = {
|
|
|
|
groups = {stonecuttable = 1},
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
tiles = {type = "loglike"}
|
|
|
|
},
|
|
|
|
["smooth_quartz_block"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 2,
|
|
|
|
groups = {stonecuttable = 1},
|
|
|
|
tiles = {"building_quartz_block_bottom.png"}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for identifier, definitions in pairs(quartz_blocks) do
|
|
|
|
voxelibre.register_block(identifier, table.merge(common_defs.quartz, definitions))
|
|
|
|
end
|
2024-06-10 02:06:33 +02:00
|
|
|
|
|
|
|
local blocks = {
|
|
|
|
["amethyst_block"] = {
|
|
|
|
_mcl_blast_resistance = 1.5,
|
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
description = "Block of Amethyst",
|
|
|
|
groups = {building_blocks = 1, natural_blocks = 1, pickaxey = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_glass_defaults()
|
|
|
|
},
|
|
|
|
["coal_block"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 5,
|
|
|
|
description = "Block of Coal",
|
|
|
|
groups = {building_blocks = 1, fuel = 800, pickaxey = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
|
|
|
["diamond_block"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 5,
|
|
|
|
description = "Block of Diamond",
|
|
|
|
groups = {beacon_base_blocks = 1, building_blocks = 1, pickaxey = 4},
|
|
|
|
sounds = mcl_sounds.node_sound_metal_defaults()
|
|
|
|
},
|
|
|
|
["emerald_block"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 5,
|
|
|
|
description = "Block of Emerald",
|
|
|
|
groups = {beacon_base_blocks = 1, building_blocks = 1, pickaxey = 4},
|
|
|
|
sounds = mcl_sounds.node_sound_metal_defaults()
|
|
|
|
},
|
|
|
|
["gold_block"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 3,
|
|
|
|
description = "Block of Gold",
|
|
|
|
groups = {beacon_base_blocks = 1, building_blocks = 1, guarded_by_piglins = 1, pickaxey = 4},
|
|
|
|
sounds = mcl_sounds.node_sound_metal_defaults()
|
|
|
|
},
|
|
|
|
["iron_block"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 5,
|
|
|
|
description = "Block of Iron",
|
|
|
|
groups = {beacon_base_blocks = 1, building_blocks = 1, pickaxey = 3},
|
|
|
|
sounds = mcl_sounds.node_sound_metal_defaults()
|
2024-06-10 07:55:48 +02:00
|
|
|
},
|
|
|
|
["lapis_block"] = {
|
|
|
|
_mcl_blast_resistance = 3,
|
|
|
|
_mcl_hardness = 3,
|
|
|
|
description = "Block of Lapis Lazuli",
|
|
|
|
groups = {building_blocks = 1, pickaxey = 3},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
|
|
|
["netherite_block"] = {
|
|
|
|
_mcl_blast_resistance = 1200,
|
|
|
|
_mcl_hardness = 50,
|
|
|
|
description = "Block of Netherite",
|
|
|
|
groups = {beacon_base_blocks = 1, building_blocks = 1, pickaxey = 5},
|
|
|
|
sounds = mcl_sounds.node_sound_metal_defaults()
|
|
|
|
},
|
|
|
|
["raw_copper_block"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 5,
|
|
|
|
description = "Block of Raw Copper",
|
|
|
|
groups = {building_blocks = 1, pickaxey = 3},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
|
|
|
["raw_gold_block"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 5,
|
|
|
|
description = "Block of Raw Gold",
|
|
|
|
groups = {building_blocks = 1, pickaxey = 4},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
|
|
|
["raw_iron_block"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 5,
|
|
|
|
description = "Block of Raw Iron",
|
|
|
|
groups = {building_blocks = 1, pickaxey = 3},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
2024-06-10 02:06:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for identifier, definitions in pairs(blocks) do
|
|
|
|
voxelibre.register_block(identifier, definitions)
|
|
|
|
end
|