mods/itemshelf/nodes.lua
WilLiam12 d131a94765 .
2021-07-15 22:57:12 -03:00

131 lines
3.1 KiB
Lua

-- Default nodes for Itemshelf mod
-- By Zorman2000
local default_shelf = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, -- NodeBox1
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.4375}, -- NodeBox2
{-0.4375, -0.5, -0.5, 0.4375, -0.4375, 0.4375}, -- NodeBox3
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.4375}, -- NodeBox4
{-0.4375, 0.4375, -0.5, 0.4375, 0.5, 0.4375}, -- NodeBox5
{-0.4375, -0.0625, -0.5, 0.4375, 0.0625, 0.4375}, -- NodeBox6
}
}
local default_half_shelf = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, -- NodeBox1
{-0.5, -0.5, -0.125, -0.4375, 0.5, 0.5}, -- NodeBox2
{0.4375, -0.5, -0.125, 0.5, 0.5, 0.5}, -- NodeBox3
{-0.5, -0.0625, -0.125, 0.5, 0.0625, 0.5}, -- NodeBox4
{-0.5, 0.4375, -0.125, 0.5, 0.5, 0.5}, -- NodeBox5
{-0.5, -0.5, -0.125, 0.5, -0.4375, 0.5}, -- NodeBox6
}
}
local default_half_shelf_open = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.125, -0.4375, 0.5, 0.5}, -- NodeBox2
{0.4375, -0.5, -0.125, 0.5, 0.5, 0.5}, -- NodeBox3
{-0.5, -0.0625, -0.125, 0.5, 0.0625, 0.5}, -- NodeBox4
{-0.5, 0.4375, -0.125, 0.5, 0.5, 0.5}, -- NodeBox5
{-0.5, -0.5, -0.125, 0.5, -0.4375, 0.5}, -- NodeBox6
}
}
itemshelf.register_shelf("small_shelf", {
description = "Shelf (4)",
textures = {
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png"
},
nodebox = default_shelf,
capacity = 4,
shown_items = 4
})
itemshelf.register_shelf("large_shelf", {
description = "Shelf (6)",
textures = {
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png"
},
nodebox = default_shelf,
capacity = 6,
shown_items = 6
})
itemshelf.register_shelf("half_depth_shelf_small", {
description = "Half Shelf (4)",
textures = {
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png"
},
nodebox = default_half_shelf,
capacity = 4,
shown_items = 4,
half_depth = true,
})
itemshelf.register_shelf("half_depth_shelf_large", {
description = "Half Shelf (6)",
textures = {
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png"
},
nodebox = default_half_shelf,
capacity = 6,
shown_items = 6,
half_depth = true,
})
itemshelf.register_shelf("half_depth_open_shelf", {
description = "Half Open-Back Shelf (4)",
textures = {
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png"
},
nodebox = default_half_shelf_open,
capacity = 4,
shown_items = 4,
half_depth = true,
})
itemshelf.register_shelf("half_depth_open_shelf", {
description = "Half Open-Back Shelf (6)",
textures = {
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png",
"baked_clay_white.png"
},
nodebox = default_half_shelf_open,
capacity = 6,
shown_items = 6,
half_depth = true,
})