Small clean-up
This commit is contained in:
parent
5554c0aecf
commit
98c2aa6967
54
nodes.lua
54
nodes.lua
@ -188,14 +188,6 @@ xdecor.register("chandelier", {
|
|||||||
selection_box = xdecor.nodebox.slab_y(0.5, 0.5)
|
selection_box = xdecor.nodebox.slab_y(0.5, 0.5)
|
||||||
})
|
})
|
||||||
|
|
||||||
xdecor.register("coalstone_tile", {
|
|
||||||
drawtype = "normal",
|
|
||||||
description = "Coalstone Tile",
|
|
||||||
tiles = {"xdecor_coalstone_tile.png"},
|
|
||||||
groups = {cracky=2, stone=1},
|
|
||||||
sounds = sound.stone
|
|
||||||
})
|
|
||||||
|
|
||||||
xdecor.register("cobweb", {
|
xdecor.register("cobweb", {
|
||||||
description = "Cobweb",
|
description = "Cobweb",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
@ -263,14 +255,6 @@ xdecor.register("cushion", {
|
|||||||
node_box = xdecor.nodebox.slab_y(-0.5, 0.5)
|
node_box = xdecor.nodebox.slab_y(-0.5, 0.5)
|
||||||
})
|
})
|
||||||
|
|
||||||
xdecor.register("desertstone_tile", {
|
|
||||||
drawtype = "normal",
|
|
||||||
description = "Desert Stone Tile",
|
|
||||||
tiles = {"xdecor_desertstone_tile.png"},
|
|
||||||
groups = {cracky=3, stone=1},
|
|
||||||
sounds = sound.stone
|
|
||||||
})
|
|
||||||
|
|
||||||
local function door_access(door)
|
local function door_access(door)
|
||||||
if door:find("prison") then return true end
|
if door:find("prison") then return true end
|
||||||
return false
|
return false
|
||||||
@ -393,14 +377,6 @@ minetest.register_tool("xdecor:hammer", {
|
|||||||
wield_image = "xdecor_hammer.png"
|
wield_image = "xdecor_hammer.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
xdecor.register("hard_clay", {
|
|
||||||
drawtype = "normal",
|
|
||||||
description = "Hard Clay",
|
|
||||||
tiles = {"xdecor_hard_clay.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = sound.stone
|
|
||||||
})
|
|
||||||
|
|
||||||
xdecor.register("ivy", {
|
xdecor.register("ivy", {
|
||||||
description = "Ivy",
|
description = "Ivy",
|
||||||
drawtype = "signlike",
|
drawtype = "signlike",
|
||||||
@ -507,14 +483,6 @@ xdecor.register("metal_cabinet", {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
xdecor.register("moonbrick", {
|
|
||||||
drawtype = "normal",
|
|
||||||
description = "Moonbrick",
|
|
||||||
tiles = {"xdecor_moonbrick.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = sound.stone
|
|
||||||
})
|
|
||||||
|
|
||||||
xdecor.register("multishelf", {
|
xdecor.register("multishelf", {
|
||||||
description = "Multi Shelf",
|
description = "Multi Shelf",
|
||||||
inventory = {size=24},
|
inventory = {size=24},
|
||||||
@ -551,14 +519,6 @@ xdecor.register("stereo", {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
xdecor.register("stone_rune", {
|
|
||||||
description = "Stone Rune",
|
|
||||||
tiles = {"xdecor_stone_rune.png"},
|
|
||||||
drawtype = "normal",
|
|
||||||
groups = {cracky=2, stone=1},
|
|
||||||
sounds = sound.stone
|
|
||||||
})
|
|
||||||
|
|
||||||
xdecor.register("stonepath", {
|
xdecor.register("stonepath", {
|
||||||
description = "Garden Stone Path",
|
description = "Garden Stone Path",
|
||||||
tiles = {"default_stone.png"},
|
tiles = {"default_stone.png"},
|
||||||
@ -581,13 +541,19 @@ xdecor.register("stonepath", {
|
|||||||
selection_box = xdecor.nodebox.slab_y(0.05)
|
selection_box = xdecor.nodebox.slab_y(0.05)
|
||||||
})
|
})
|
||||||
|
|
||||||
xdecor.register("stone_tile", {
|
local stonish = {"desertstone_tile", "stone_tile", "stone_rune",
|
||||||
description = "Stone Tile",
|
"coalstone_tile", "moonbrick", "hard_clay"}
|
||||||
tiles = {"xdecor_stone_tile.png"},
|
|
||||||
|
for _, t in pairs(stonish) do
|
||||||
|
xdecor.register(t, {
|
||||||
drawtype = "normal",
|
drawtype = "normal",
|
||||||
groups = {cracky=2, stone=1},
|
description = string.sub(t:gsub("%l", string.upper, 1), 1, -6)
|
||||||
|
.." "..t:sub(-4):gsub("%l", string.upper, 1),
|
||||||
|
tiles = {"xdecor_"..t..".png"},
|
||||||
|
groups = {cracky=2},
|
||||||
sounds = sound.stone
|
sounds = sound.stone
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
xdecor.register("table", {
|
xdecor.register("table", {
|
||||||
description = "Table",
|
description = "Table",
|
||||||
|
Loading…
Reference in New Issue
Block a user