2024-06-09 17:11:46 +02:00
|
|
|
local common_defs = {
|
2024-06-10 01:14:09 +02:00
|
|
|
carpet = {
|
|
|
|
_mcl_blast_resistance = 0.1,
|
|
|
|
_mcl_hardness = 0.1,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
groups = {
|
|
|
|
attached_node = 3, colored_blocks = 1, fire_encouragement = 60,
|
|
|
|
fire_flammability = 20, fuel = 3, handy = 1, wool_carpets = 1
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
|
|
|
type = "fixed"
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
sounds = mcl_sounds.node_sound_wool_defaults(),
|
|
|
|
sunlight_propagates = true,
|
|
|
|
wield_scale = {x = 1, y = 1, z = 0.5}
|
|
|
|
},
|
2024-06-09 17:11:46 +02:00
|
|
|
glass = {
|
|
|
|
_mcl_blast_resistance = 0.3,
|
|
|
|
_mcl_hardness = 0.3,
|
|
|
|
_mcl_silk_touch_drop = true,
|
|
|
|
drawtype = "glasslike",
|
|
|
|
drop = "",
|
|
|
|
groups = {colored_blocks = 1, handy = 1},
|
|
|
|
paramtype = "light",
|
|
|
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
2024-06-09 18:29:44 +02:00
|
|
|
sunlight_propagates = true,
|
|
|
|
use_texture_alpha = "blend"
|
|
|
|
},
|
|
|
|
glazed_terracotta = {
|
|
|
|
_mcl_blast_resistance = 1.4,
|
|
|
|
_mcl_hardness = 1.4,
|
|
|
|
groups = {colored_blocks = 1, pickaxey = 1},
|
|
|
|
paramtype2 = "4dir",
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
tiles = {
|
|
|
|
modifiers = {
|
|
|
|
back = "^[transformR270",
|
|
|
|
front = "^[transformR90",
|
|
|
|
right = "^[transformR180",
|
|
|
|
},
|
|
|
|
type = "modified"
|
|
|
|
}
|
2024-06-09 22:34:22 +02:00
|
|
|
},
|
|
|
|
wool = {
|
|
|
|
_mcl_blast_resistance = 0.8,
|
|
|
|
_mcl_hardness = 0.8,
|
|
|
|
groups = {
|
|
|
|
colored_blocks = 1, fire_encouragement = 30, fire_flammability = 60,
|
|
|
|
fuel = 5, handy = 1, occludes_vibration_signals = 1, shearsy_wool = 1, wool = 1
|
|
|
|
},
|
|
|
|
sounds = mcl_sounds.node_sound_wool_defaults()
|
2024-06-09 17:11:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, color in pairs(voxelibre.colors) do
|
2024-06-10 01:14:09 +02:00
|
|
|
local identifier = color.."_carpet"
|
|
|
|
local image_name = "building_"..color.."_wool.png"
|
|
|
|
|
|
|
|
common_defs.carpet.tiles = {image_name}
|
|
|
|
common_defs.carpet.wield_image = image_name
|
|
|
|
|
|
|
|
voxelibre.register_block(identifier, table.copy(common_defs.carpet))
|
|
|
|
|
|
|
|
identifier = color.."_stained_glass"
|
2024-06-09 17:11:46 +02:00
|
|
|
|
|
|
|
voxelibre.register_block(identifier, table.copy(common_defs.glass))
|
2024-06-09 18:29:44 +02:00
|
|
|
|
|
|
|
identifier = color.."_glazed_terracotta"
|
|
|
|
|
|
|
|
voxelibre.register_block(identifier, table.copy(common_defs.glazed_terracotta))
|
2024-06-09 22:34:22 +02:00
|
|
|
|
|
|
|
identifier = color.."_wool"
|
|
|
|
|
|
|
|
voxelibre.register_block(identifier, table.copy(common_defs.wool))
|
2024-06-09 17:11:46 +02:00
|
|
|
end
|
2024-06-10 01:14:09 +02:00
|
|
|
|
|
|
|
local blocks = {
|
|
|
|
["bamboo_mosaic"] = {
|
|
|
|
_mcl_blast_resistance = 3,
|
|
|
|
_mcl_hardness = 2,
|
|
|
|
groups = {
|
|
|
|
axey = 1, building_blocks = 1, fire_encouragement = 5,
|
|
|
|
fire_flammability = 20, fuel = 15, handy = 1
|
|
|
|
},
|
|
|
|
sounds = mcl_sounds.node_sound_wood_defaults()
|
|
|
|
},
|
|
|
|
["bookshelf"] = {
|
|
|
|
_mcl_blast_resistance = 1.5,
|
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
_mcl_silk_touch_drop = true,
|
|
|
|
drop = "items:book 3",
|
|
|
|
groups = {axey = 1, building_blocks = 1, fire_encouragement = 30,
|
|
|
|
fire_flammability = 20, fuel = 15, handy = 1
|
|
|
|
},
|
|
|
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
|
|
|
tiles = {type = "loglike"}
|
|
|
|
},
|
2024-06-10 01:44:38 +02:00
|
|
|
["crying_obsidian"] = {
|
|
|
|
_mcl_blast_resistance = 1200,
|
|
|
|
_mcl_hardness = 50,
|
|
|
|
groups = {building_blocks = 1, dragon_immune = 1, pickaxey = 5},
|
|
|
|
light_source = 10,
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
|
|
|
["gilded_blackstone"] = {
|
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
_mcl_silk_touch_drop = true,
|
|
|
|
drop = {
|
|
|
|
items = {
|
|
|
|
{items = {"items:gold_nugget 5"}, rarity = 40},
|
|
|
|
{items = {"items:gold_nugget 4"}, rarity = 40},
|
|
|
|
{items = {"items:gold_nugget 3"}, rarity = 40},
|
|
|
|
{items = {"items:gold_nugget 2"}, rarity = 40},
|
|
|
|
{items = {"blocks:gilded_blackstone"}}
|
|
|
|
},
|
|
|
|
max_items = 1
|
|
|
|
},
|
|
|
|
groups = {building_blocks = 1, pickaxey = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
|
|
|
},
|
|
|
|
["glass"] = table.copy(common_defs.glass),
|
|
|
|
["honeycomb_block"] = {
|
|
|
|
_mcl_blast_resistance = 0.6,
|
|
|
|
_mcl_hardness = 0.6,
|
|
|
|
groups = {handy = 1, natural_blocks = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_wood_defaults()
|
|
|
|
},
|
|
|
|
["tinted_glass"] = {
|
|
|
|
_mcl_blast_resistance = 0.3,
|
|
|
|
_mcl_hardness = 0.3,
|
|
|
|
drawtype = "glasslike",
|
|
|
|
groups = {building_blocks = 1, handy = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
|
|
|
use_texture_alpha = "blend"
|
|
|
|
}
|
2024-06-10 01:14:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
for identifier, definitions in pairs(blocks) do
|
|
|
|
voxelibre.register_block(identifier, definitions)
|
|
|
|
end
|