New blocks migration (light sources)

This commit is contained in:
JoseDouglas26 2024-06-10 07:33:33 -03:00
parent b5bbfb5477
commit 08a84a28f4
12 changed files with 119 additions and 0 deletions

View File

@ -0,0 +1,63 @@
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"
}
}
}
for identifier, definitions in pairs(blocks) do
voxelibre.register_block(identifier, definitions)
end

View File

@ -0,0 +1,56 @@
# Blender 3.6.4
# www.blender.org
mtllib building_end_rod.mtl
o Cube
v -0.125000 -0.437500 0.125000
v -0.125000 -0.500000 0.125000
v -0.125000 -0.437500 -0.125000
v -0.125000 -0.500000 -0.125000
v 0.125000 -0.437500 0.125000
v 0.125000 -0.500000 0.125000
v 0.125000 -0.437500 -0.125000
v 0.125000 -0.500000 -0.125000
v 0.062500 -0.437500 -0.062500
v 0.062500 0.500000 -0.062500
v 0.062500 -0.437500 0.062500
v 0.062500 0.500000 0.062500
v -0.062500 -0.437500 -0.062500
v -0.062500 0.500000 -0.062500
v -0.062500 -0.437500 0.062500
v -0.062500 0.500000 0.062500
vn -0.0000 1.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vt 0.375000 0.812500
vt 0.125000 0.812500
vt 0.125000 0.562500
vt 0.375000 0.562500
vt 0.375000 0.875000
vt 0.125000 0.875000
vt 0.125000 0.062500
vt 0.125000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.062500
vt 0.187500 0.812500
vt 0.187500 0.937500
vt 0.062500 0.937500
vt 0.062500 0.812500
vt 0.250000 1.000000
vt 0.250000 0.875000
s 0
usemtl Materiais
f 1/1/1 5/2/1 7/3/1 3/4/1
f 4/1/2 3/5/2 7/6/2 8/2/2
f 8/1/3 7/5/3 5/6/3 6/2/3
f 6/3/4 2/4/4 4/1/4 8/2/4
f 2/1/5 1/5/5 3/6/5 4/2/5
f 6/1/6 5/5/6 1/6/6 2/2/6
f 9/7/3 10/8/3 12/9/3 11/10/3
f 11/7/6 12/8/6 16/9/6 15/10/6
f 15/7/5 16/8/5 14/9/5 13/10/5
f 13/7/2 14/8/2 10/9/2 9/10/2
f 11/11/4 15/12/4 13/13/4 9/14/4
f 16/15/1 12/8/1 10/6/1 14/16/1

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB