hades_furniture: Indent

master
Wuzzy 2021-10-10 01:27:29 +02:00
parent a7aadbdf3e
commit d5381cf87b
1 changed files with 305 additions and 305 deletions

View File

@ -36,13 +36,13 @@ local S = minetest.get_translator("hades_furniture")
--[[ ----- Basic furniture ----- ]]
-- Table and chair
local furniture_colors = {
-- Table and chair
local furniture_colors = {
{"_uncolored", S("Uncolored Table"), S("Uncolored Chair")},
{"_black", S("Black Table"), S("Black Chair")},
{"_white", S("White Table"), S("White Chair")},
}
for f=1, #furniture_colors do
}
for f=1, #furniture_colors do
local append = furniture_colors[f][1]
local desc_t = furniture_colors[f][2]
local desc_c = furniture_colors[f][3]
@ -106,19 +106,19 @@ local S = minetest.get_translator("hades_furniture")
groups = {chair=1, choppy=3,oddly_breakable_by_hand=2},
sounds = hades_sounds.node_sound_wood_defaults(),
})
end
end
local armchair_colors = {
local armchair_colors = {
{"", S("Black Armchair")},
{"_white", S("White Armchair")},
{"_red", S("Red Armchair")},
{"_brown", S("Brown Armchair")},
{"_blue", S("Blue Armchair")},
{"_dark_green", S("Dark Green Armchair")},
}
}
-- Armchair
for a=1, #armchair_colors do
-- Armchair
for a=1, #armchair_colors do
local append = armchair_colors[a][1]
local desc = armchair_colors[a][2]
minetest.register_node("hades_furniture:armchair"..append,
@ -165,17 +165,17 @@ local S = minetest.get_translator("hades_furniture")
footstep = hades_sounds.node_sound_cloth_defaults().footstep,
}),
})
end
end
-- Table Lamp
local lamps = {
-- Table Lamp
local lamps = {
{ "off", "max", },
{ "low", "off", 4 },
{ "med", "low", 8 },
{ "hi", "med", 12 },
{ "max", "hi", minetest.LIGHT_MAX },
}
for l=1, #lamps do
}
for l=1, #lamps do
local drop, not_in_creative_inventory, tt, desc
if l ~= 1 then
drop = "hades_furniture:table_lamp_off"
@ -232,12 +232,12 @@ local S = minetest.get_translator("hades_furniture")
on_rotate = "simple",
})
end
end
--[[ ----- Medieval theme -----]]
-- Steel Bars (only straight section)
minetest.register_node("hades_furniture:bars", {
-- Steel Bars (only straight section)
minetest.register_node("hades_furniture:bars", {
description = S("Straight Steel Bars"),
tiles = {
"hades_furniture_black_metal_s1.png",
@ -268,11 +268,11 @@ local S = minetest.get_translator("hades_furniture")
sounds = hades_sounds.node_sound_metal_defaults(),
on_rotate = "simple",
_hades_shaper_next = "hades_furniture:L_binding_bars",
})
})
-- Binding steel bars (for corners and junctions).
-- Also, center bar is slightly thicker
minetest.register_node("hades_furniture:L_binding_bars",
-- Binding steel bars (for corners and junctions).
-- Also, center bar is slightly thicker
minetest.register_node("hades_furniture:L_binding_bars",
{ description =S("Binding Steel Bars"),
tiles = {
"hades_furniture_black_metal_s1.png",
@ -332,9 +332,9 @@ local S = minetest.get_translator("hades_furniture")
groups = {cracky=1,},
sounds = hades_sounds.node_sound_metal_defaults(),
_hades_shaper_next = "hades_furniture:bars",
})
})
minetest.register_node("hades_furniture:plant_pot", {
minetest.register_node("hades_furniture:plant_pot", {
description = S("Plant Pot"),
paramtype = "light",
tiles = {"hades_furniture_plant_pot_top.png", "hades_furniture_plant_pot_bottom.png", "hades_furniture_plant_pot_sides.png"},
@ -359,6 +359,6 @@ local S = minetest.get_translator("hades_furniture")
sounds = hades_sounds.node_sound_stone_defaults({
footstep = hades_sounds.node_sound_dirt_defaults().footstep,
}),
})
})