forked from VoxeLibre/VoxeLibre
First door migration attemp
This commit is contained in:
parent
87d1812bd9
commit
a6062f87b4
|
@ -0,0 +1 @@
|
|||
voxelibre.load_mod_files()
|
|
@ -0,0 +1,2 @@
|
|||
name = utility
|
||||
depends = voxelibre
|
|
@ -0,0 +1,40 @@
|
|||
# Blender 3.6.4
|
||||
# www.blender.org
|
||||
mtllib utility_door.mtl
|
||||
o Cubo
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 1.500000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 1.500000 0.500000
|
||||
v 0.500000 -0.500000 0.312500
|
||||
v 0.500000 1.500000 0.312500
|
||||
v -0.500000 -0.500000 0.312500
|
||||
v -0.500000 1.500000 0.312500
|
||||
vn -0.0000 -0.0000 1.0000
|
||||
vn -1.0000 -0.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 -0.0000 1.0000 -0.0000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.000000 1.000000
|
||||
vt -0.000000 0.000000
|
||||
vt 0.187500 0.000000
|
||||
vt 0.187500 1.000000
|
||||
vt 0.000000 0.093750
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 -0.000000
|
||||
vt 1.000000 0.093750
|
||||
vt 0.000000 0.906250
|
||||
vt 1.000000 0.906250
|
||||
s 0
|
||||
usemtl Materiais
|
||||
f 1/1/1 2/2/1 4/3/1 3/4/1
|
||||
f 3/5/2 4/6/2 8/7/2 7/8/2
|
||||
f 7/1/3 8/2/3 6/3/3 5/4/3
|
||||
f 5/5/4 6/6/4 2/7/4 1/8/4
|
||||
f 3/9/5 7/10/5 5/11/5 1/12/5
|
||||
f 8/3/6 4/13/6 2/14/6 6/2/6
|
|
@ -0,0 +1,48 @@
|
|||
local common_defs = {
|
||||
doors = {
|
||||
collision_box = {
|
||||
fixed = {-0.5, -0.5, 0.3125, 0.5, 0.5, 0.5},
|
||||
type = "fixed"
|
||||
},
|
||||
drawtype = "mesh",
|
||||
groups = {door = 1, redstone_blocks = 1},
|
||||
mesh = "utility_door.obj",
|
||||
paramtype = "light",
|
||||
paramtype2 = "4dir",
|
||||
selection_box = {
|
||||
fixed = {-0.5, -0.5, 0.3125, 0.5, 0.5, 0.5},
|
||||
type = "fixed"
|
||||
},
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = "clip"
|
||||
}
|
||||
}
|
||||
|
||||
local doors = {
|
||||
["acacia"] = {
|
||||
inventory_image = "utility_acacia_door.png",
|
||||
tiles = {
|
||||
{
|
||||
backface_culling = true,
|
||||
name = "[combine:16x32:0,0=utility_acacia_door_top.png:"..
|
||||
"0,16=utility_acacia_door_bottom.png"
|
||||
}
|
||||
},
|
||||
wield_image = "utility_acacia_door.png"
|
||||
},
|
||||
["birch"] = {
|
||||
inventory_image = "utility_birch_door.png",
|
||||
tiles = {
|
||||
{
|
||||
backface_culling = true,
|
||||
name = "[combine:16x32:0,0=utility_birch_door_top.png:"..
|
||||
"0,16=utility_birch_door_bottom.png"
|
||||
}
|
||||
},
|
||||
wield_image = "utility_birch_door.png"
|
||||
}
|
||||
}
|
||||
|
||||
for identifier, definitions in pairs(doors) do
|
||||
voxelibre.register_block(identifier.."_door", table.merge(common_defs.doors, definitions))
|
||||
end
|
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Loading…
Reference in New Issue