1
0
mirror of https://codeberg.org/minenux/minetest-mod-xdecor synced 2023-10-20 21:43:39 -07:00

Small cleaning on nodes.lua

This commit is contained in:
jp 2015-08-05 20:08:16 +02:00
parent 6231ecaed3
commit 0896285fb7

View File

@ -106,7 +106,7 @@ xdecor.register("cauldron", {
groups = {cracky=1}, groups = {cracky=1},
tiles = { tiles = {
{ name = "xdecor_cauldron_top_anim.png", { name = "xdecor_cauldron_top_anim.png",
animation = {type="vertical_frames", length=3.0} }, animation = {type="vertical_frames", length=3.0} },
"xdecor_cauldron_sides.png" "xdecor_cauldron_sides.png"
} }
}) })
@ -191,7 +191,7 @@ xdecor.register("cobweb", {
local colors = {"red"} -- Add more curtains colors simply here. local colors = {"red"} -- Add more curtains colors simply here.
for _, c in ipairs(colors) do for _, c in pairs(colors) do
xdecor.register("curtain_"..c, { xdecor.register("curtain_"..c, {
description = "Curtain ("..c..")", description = "Curtain ("..c..")",
use_texture_alpha = true, use_texture_alpha = true,
@ -243,8 +243,7 @@ local door_types = {"woodglass", "japanese"}
for _, d in pairs(door_types) do for _, d in pairs(door_types) do
doors.register_door("xdecor:"..d.."_door", { doors.register_door("xdecor:"..d.."_door", {
description = string.sub(string.upper(d), 0, 1).. description = string.gsub(d, "%l", string.upper, 1).." Door",
string.sub(d, 2).." Door",
inventory_image = "xdecor_"..d.."_door_inv.png", inventory_image = "xdecor_"..d.."_door_inv.png",
groups = {choppy=3, flammable=2, door=1}, groups = {choppy=3, flammable=2, door=1},
tiles_bottom = {"xdecor_"..d.."_door_b.png", "xdecor_brown.png"}, tiles_bottom = {"xdecor_"..d.."_door_b.png", "xdecor_brown.png"},
@ -386,7 +385,7 @@ xdecor.register("lantern", {
local flowerstype = { "dandelion_white", "dandelion_yellow", "geranium", local flowerstype = { "dandelion_white", "dandelion_yellow", "geranium",
"rose", "tulip", "viola" } "rose", "tulip", "viola" }
for _, f in ipairs(flowerstype) do for _, f in pairs(flowerstype) do
xdecor.register("potted_"..f, { xdecor.register("potted_"..f, {
description = "Potted Flowers ("..f..")", description = "Potted Flowers ("..f..")",
walkable = false, walkable = false,