Added wall shelves
This commit is contained in:
parent
ee54e2259b
commit
f8f104f36f
@ -183,6 +183,7 @@ function register.register_furniture_unit(name, def, craft_def)
|
||||
|
||||
if craft_def then
|
||||
minetest.register_craft({
|
||||
type = craft_def.type,
|
||||
output = f_name,
|
||||
recipe = craft_def.recipe,
|
||||
replacements = craft_def.replacements or nil
|
||||
|
BIN
modern/models/multidecor_wall_shelf.b3d
Normal file
BIN
modern/models/multidecor_wall_shelf.b3d
Normal file
Binary file not shown.
BIN
modern/models/multidecor_wall_shelf.blend
Normal file
BIN
modern/models/multidecor_wall_shelf.blend
Normal file
Binary file not shown.
BIN
modern/models/multidecor_wall_shelf.blend1
Normal file
BIN
modern/models/multidecor_wall_shelf.blend1
Normal file
Binary file not shown.
112
modern/models/multidecor_wall_shelf.obj
Normal file
112
modern/models/multidecor_wall_shelf.obj
Normal file
@ -0,0 +1,112 @@
|
||||
# Blender v2.82 (sub 7) OBJ File: 'multidecor_wall_shelf.blend'
|
||||
# www.blender.org
|
||||
o Cube
|
||||
v 1.000000 -0.000000 1.000000
|
||||
v 1.000000 -0.000000 0.800000
|
||||
v 1.000000 -1.000000 1.000000
|
||||
v 1.000000 -1.000000 0.800000
|
||||
v -1.000000 -0.000000 1.000000
|
||||
v -1.000000 -0.000000 0.800000
|
||||
v -1.000000 -1.000000 1.000000
|
||||
v -1.000000 -1.000000 0.800000
|
||||
v 0.800000 -1.000000 0.300000
|
||||
v 0.800000 -1.000000 0.800000
|
||||
v 0.800000 -0.000000 0.500000
|
||||
v 0.800000 -0.000000 0.800000
|
||||
v 1.000000 -1.000000 0.300000
|
||||
v 1.000000 -1.000000 0.800000
|
||||
v 1.000000 -0.000000 0.500000
|
||||
v 1.000000 -0.000000 0.800000
|
||||
v 0.800000 -0.500000 0.300000
|
||||
v 1.000000 -0.500000 0.300000
|
||||
v -0.800000 -1.000000 0.300000
|
||||
v -0.800000 -1.000000 0.800000
|
||||
v -0.800000 -0.000000 0.500000
|
||||
v -0.800000 -0.000000 0.800000
|
||||
v -1.000000 -1.000000 0.300000
|
||||
v -1.000000 -1.000000 0.800000
|
||||
v -1.000000 -0.000000 0.500000
|
||||
v -1.000000 -0.000000 0.800000
|
||||
v -0.800000 -0.500000 0.300000
|
||||
v -1.000000 -0.500000 0.300000
|
||||
vt 0.352864 0.646758
|
||||
vt 0.352863 0.058969
|
||||
vt 0.646758 0.058968
|
||||
vt 0.646758 0.646758
|
||||
vt 0.705537 0.646758
|
||||
vt 0.705537 0.058968
|
||||
vt 0.646758 0.000189
|
||||
vt 0.352863 0.000190
|
||||
vt 0.294084 0.058969
|
||||
vt 0.294084 0.646758
|
||||
vt 0.000189 0.646758
|
||||
vt 0.000189 0.058969
|
||||
vt 0.352864 0.705537
|
||||
vt 0.646758 0.705537
|
||||
vt 0.705916 0.000189
|
||||
vt 0.852863 0.000189
|
||||
vt 0.852863 0.294084
|
||||
vt 0.764695 0.294084
|
||||
vt 0.705916 0.147137
|
||||
vt 0.971179 0.452351
|
||||
vt 0.971179 0.540520
|
||||
vt 0.912400 0.540520
|
||||
vt 0.912400 0.452351
|
||||
vt 0.058968 0.705916
|
||||
vt 0.147137 0.705916
|
||||
vt 0.147137 0.999811
|
||||
vt 0.000189 0.999811
|
||||
vt 0.000189 0.852863
|
||||
vt 0.912400 0.147137
|
||||
vt 0.912400 0.000189
|
||||
vt 0.971179 0.000189
|
||||
vt 0.971179 0.147137
|
||||
vt 0.705916 0.294463
|
||||
vt 0.852863 0.294463
|
||||
vt 0.852863 0.588358
|
||||
vt 0.764695 0.588358
|
||||
vt 0.705916 0.441410
|
||||
vt 0.912400 0.294084
|
||||
vt 0.971179 0.294084
|
||||
vt 0.912021 0.452351
|
||||
vt 0.912021 0.540520
|
||||
vt 0.853242 0.540520
|
||||
vt 0.853242 0.452351
|
||||
vt 0.764695 0.588736
|
||||
vt 0.852863 0.588736
|
||||
vt 0.852863 0.882631
|
||||
vt 0.705916 0.882631
|
||||
vt 0.705916 0.735684
|
||||
vt 0.853242 0.147137
|
||||
vt 0.853242 0.000189
|
||||
vt 0.912021 0.000189
|
||||
vt 0.912021 0.147137
|
||||
vt 0.853242 0.294084
|
||||
vt 0.912021 0.294084
|
||||
vn 0.0000 -0.0000 1.0000
|
||||
vn 0.0000 -1.0000 0.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 0.3714 -0.9285
|
||||
vn 0.0000 -0.3714 0.9285
|
||||
s off
|
||||
f 1/1/1 5/2/1 7/3/1 3/4/1
|
||||
f 4/5/2 3/4/2 7/3/2 8/6/2
|
||||
f 8/7/3 7/3/3 5/2/3 6/8/3
|
||||
f 6/9/4 2/10/4 4/11/4 8/12/4
|
||||
f 2/13/5 1/1/5 3/4/5 4/14/5
|
||||
f 6/9/6 5/2/6 1/1/6 2/10/6
|
||||
f 9/15/3 10/16/3 12/17/3 11/18/3 17/19/3
|
||||
f 11/20/6 12/21/6 16/22/6 15/23/6
|
||||
f 15/24/5 16/25/5 14/26/5 13/27/5 18/28/5
|
||||
f 13/29/2 14/30/2 10/31/2 9/32/2
|
||||
f 19/33/3 20/34/3 22/35/3 21/36/3 27/37/3
|
||||
f 11/20/7 15/23/7 18/38/7 17/39/7
|
||||
f 17/39/4 18/38/4 13/29/4 9/32/4
|
||||
f 21/40/2 22/41/2 26/42/2 25/43/2
|
||||
f 25/44/5 26/45/5 24/46/5 23/47/5 28/48/5
|
||||
f 23/49/6 24/50/6 20/51/6 19/52/6
|
||||
f 21/40/8 25/43/8 28/53/8 27/54/8
|
||||
f 27/54/1 28/53/1 23/49/1 19/52/1
|
@ -46,4 +46,26 @@ for _, wood_n in ipairs({"", "jungle", "pine", "aspen"}) do
|
||||
{"", "", ""}
|
||||
}
|
||||
})
|
||||
|
||||
register.register_table("modern_wooden_" .. wood_n .. "wall_shelf", {
|
||||
style = "modern",
|
||||
material = "wood",
|
||||
visual_scale = 0.5,
|
||||
paramtype2 = "wallmounted",
|
||||
description = "Modern Wooden " .. wood_n:sub(1, 1):upper() .. wood_n:sub(2, -1) .. " Wall Shelf",
|
||||
mesh = "multidecor_wall_shelf.obj",
|
||||
tiles = {tex},
|
||||
bounding_boxes = {
|
||||
{-0.5, 0, 0.4, 0.5, -0.5, 0.5},
|
||||
{-0.5, 0, 0.15, -0.4, -0.5, 0.4},
|
||||
{0.4, 0, 0.15, 0.5, -0.5, 0.4}
|
||||
--[[{-0.5, 0.4, 0, 0.5, 0.5, 0.5},
|
||||
{-0.5, 0.15, 0, -0.4, 0.4, 0.5},
|
||||
{0.4, 0.15, 0, 0.5, 0.4, 0.5}]]
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "shapeless",
|
||||
recipe = {"multidecor:" .. wood_n .. "plank", "multidecor:" .. wood_n .. "plank"}
|
||||
})
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user