forked from VoxeLibre/VoxeLibre
144 lines
4.6 KiB
Lua
144 lines
4.6 KiB
Lua
local common_defs = {
|
|
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}
|
|
},
|
|
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(),
|
|
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"
|
|
}
|
|
},
|
|
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()
|
|
}
|
|
}
|
|
|
|
for _, color in pairs(voxelibre.colors) do
|
|
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"
|
|
|
|
voxelibre.register_block(identifier, table.copy(common_defs.glass))
|
|
|
|
identifier = color.."_glazed_terracotta"
|
|
|
|
voxelibre.register_block(identifier, table.copy(common_defs.glazed_terracotta))
|
|
|
|
identifier = color.."_wool"
|
|
|
|
voxelibre.register_block(identifier, table.copy(common_defs.wool))
|
|
end
|
|
|
|
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"}
|
|
},
|
|
["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"
|
|
}
|
|
}
|
|
|
|
for identifier, definitions in pairs(blocks) do
|
|
voxelibre.register_block(identifier, definitions)
|
|
end
|