local common_defs = { froglight = { _mcl_blast_resistance = 0.3, _mcl_hardness = 0.3, groups = {building_blocks = 1, handy = 1}, light_source = 14, on_place = minetest.rotate_node, paramtype = "light", paramtype2 = "facedir", sounds = mcl_sounds.node_sound_defaults(), tiles = {type = "loglike"} } } local froglights = {"ochre", "pearlescent", "verdant"} for _, name in pairs(froglights) do voxelibre.register_block(name.."_froglight", table.copy(common_defs.froglight)) end local blocks = { ["end_rod"] = { collision_box = { fixed = {-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, type = "fixed" }, drawtype = "mesh", groups = {building_blocks = 1, handy = 1}, light_source = 14, mesh = "building_end_rod.obj", on_place = minetest.rotate_node, paramtype = "light", paramtype2 = "facedir", selection_box = { fixed = {-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, type = "fixed" }, sunlight_propagates = true, use_texture_alpha = "clip" }, ["jack_o_lantern"] = { _mcl_blast_resistance = 1, _mcl_hardness = 1, description = "Jack o'Lantern", groups = {axey = 1, building_blocks = 1, handy = 1}, light_source = 14, paramtype = "light", paramtype2 = "4dir", sounds = mcl_sounds.node_sound_wood_defaults(), tiles = { "biota_pumpkin_top.png", "biota_pumpkin_side.png", "biota_pumpkin_side.png", "biota_pumpkin_side.png", "biota_pumpkin_side.png", "building_jack_o_lantern.png" } }, ["sea_lantern"] = { _mcl_blast_resistance = 0.3, _mcl_hardness = 0.3, _mcl_silk_touch_drop = true, drop = { items = { {items = {"items:prismarine_crystals 3"}, rarity = 2}, {items = {"items:prismarine_crystals 2"}} }, max_items = 1 }, groups = {building_blocks = 1, handy = 1}, light_source = 14, paramtype = "light", sounds = mcl_sounds.node_sound_glass_defaults(), tiles = { { animation = { aspect_h = 16, aspect_w = 16, length = 1.25, type = "vertical_frames" }, name = "building_sea_lantern.png" } } } } for identifier, definitions in pairs(blocks) do voxelibre.register_block(identifier, definitions) end