mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
add 3d extras mod with 3d nodebox-based bookshelf
by default, this redefines the default bookshelf.
This commit is contained in:
parent
7bf1c43c2d
commit
3db939fca2
1
homedecor_3d_extras/depends.txt
Normal file
1
homedecor_3d_extras/depends.txt
Normal file
@ -0,0 +1 @@
|
||||
default
|
57
homedecor_3d_extras/init.lua
Normal file
57
homedecor_3d_extras/init.lua
Normal file
@ -0,0 +1,57 @@
|
||||
minetest.override_item("default:bookshelf", {
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"3dbookshelf_top.png",
|
||||
"3dbookshelf_bottom.png",
|
||||
"3dbookshelf_sides.png",
|
||||
"3dbookshelf_sides.png",
|
||||
"3dbookshelf_fb.png",
|
||||
"3dbookshelf_fb.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.1875, 0.5, 0.5, 0.1875}, -- NodeBox1
|
||||
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, -- NodeBox2
|
||||
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}, -- NodeBox3
|
||||
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox4
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, -- NodeBox5
|
||||
{-0.5, -0.0625, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox6
|
||||
{-0.4375, 0.0625, -0.4375, -0.3125, 0.375, -0.125}, -- NodeBox7
|
||||
{-0.3125, 0.0625, -0.4375, -0.25, 0.3125, -0.125}, -- NodeBox8
|
||||
{-0.25, 0.0625, -0.4375, -0.125, 0.375, -0.125}, -- NodeBox9
|
||||
{-0.125, 0.0625, -0.4375, 0, 0.4375, -0.125}, -- NodeBox10
|
||||
{0, 0.0625, -0.4375, 0.0625, 0.3125, -0.125}, -- NodeBox11
|
||||
{0.0625, 0.0625, -0.4375, 0.125, 0.375, -0.125}, -- NodeBox12
|
||||
{0.125, 0.0625, -0.4375, 0.1875, 0.25, -0.125}, -- NodeBox13
|
||||
{0.1875, 0.0625, -0.4375, 0.25, 0.3125, -0.125}, -- NodeBox14
|
||||
{0.25, 0.0625, -0.4375, 0.3125, 0.25, -0.125}, -- NodeBox15
|
||||
{0.3125, 0.0625, -0.4375, 0.4375, 0.375, -0.125}, -- NodeBox16
|
||||
{-0.4375, -0.4375, -0.4375, -0.25, -0.125, -0.125}, -- NodeBox17
|
||||
{-0.25, -0.4375, -0.4375, -0.125, -0.1875, -0.125}, -- NodeBox18
|
||||
{-0.125, -0.4375, -0.4375, -0.0625, -0.125, -0.125}, -- NodeBox19
|
||||
{-0.0625, -0.4375, -0.4375, 0.25, -0.1875, -0.125}, -- NodeBox22
|
||||
{0.25, -0.4375, -0.4375, 0.375, -0.125, -0.125}, -- NodeBox23
|
||||
{0.375, -0.4375, -0.4375, 0.4375, -0.1875, -0.125}, -- NodeBox24
|
||||
{0.3125, 0.0625, 0.125, 0.4375, 0.375, 0.4375}, -- NodeBox25
|
||||
{0.25, 0.0625, 0.125, 0.3125, 0.3125, 0.4375}, -- NodeBox26
|
||||
{0.125, 0.0625, 0.125, 0.25, 0.375, 0.4375}, -- NodeBox27
|
||||
{0, 0.0625, 0.125, 0.125, 0.5, 0.4375}, -- NodeBox28
|
||||
{-0.0625, 0.0625, 0.125, 0, 0.3125, 0.4375}, -- NodeBox29
|
||||
{-0.125, 0.0625, 0.125, -0.0625, 0.375, 0.4375}, -- NodeBox30
|
||||
{-0.1875, 0.0625, 0.125, -0.125, 0.25, 0.4375}, -- NodeBox31
|
||||
{-0.25, 0.0625, 0.125, -0.1875, 0.3125, 0.4375}, -- NodeBox32
|
||||
{-0.3125, 0.0625, 0.125, -0.25, 0.25, 0.4375}, -- NodeBox33
|
||||
{-0.4375, 0.0625, 0.125, -0.3125, 0.375, 0.4375}, -- NodeBox34
|
||||
{0.25, -0.4375, 0.125, 0.4375, -0.125, 0.4375}, -- NodeBox35
|
||||
{0.125, -0.4375, 0.125, 0.25, -0.1875, 0.4375}, -- NodeBox36
|
||||
{0.0625, -0.4375, 0.125, 0.125, -0.125, 0.4375}, -- NodeBox37
|
||||
{-0.1875, -0.4375, 0.1875, 0.0625, -0.1875, 0.4375}, -- NodeBox38
|
||||
{-0.25, -0.4375, 0.125, -0.1875, -0.125, 0.4375}, -- NodeBox39
|
||||
{-0.375, -0.4375, 0.125, -0.25, -0.0625, 0.4375}, -- NodeBox40
|
||||
{-0.4375, -0.4375, 0.125, -0.375, -0.125, 0.4375}, -- NodeBox41
|
||||
}
|
||||
}
|
||||
})
|
BIN
homedecor_3d_extras/textures/3dbookshelf_bottom.png
Normal file
BIN
homedecor_3d_extras/textures/3dbookshelf_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 317 B |
BIN
homedecor_3d_extras/textures/3dbookshelf_fb.png
Normal file
BIN
homedecor_3d_extras/textures/3dbookshelf_fb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 523 B |
BIN
homedecor_3d_extras/textures/3dbookshelf_sides.png
Normal file
BIN
homedecor_3d_extras/textures/3dbookshelf_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 317 B |
BIN
homedecor_3d_extras/textures/3dbookshelf_top.png
Normal file
BIN
homedecor_3d_extras/textures/3dbookshelf_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 317 B |
Loading…
Reference in New Issue
Block a user