mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +01:00
10cef3dda1
Just a minimal code reduction, but big reduction in code duplication. This could help if in the future, support for different "internationalization" mods will be added, or in case Minetest supports I18N/L10N internally in the engine.
321 lines
11 KiB
Lua
321 lines
11 KiB
Lua
|
|
local S = homedecor.gettext
|
|
|
|
homedecor.door_models = {
|
|
{
|
|
"closet_mahogany",
|
|
S("Mahogany Closet Door"),
|
|
|
|
{{ -8/16, 5/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
|
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
|
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
|
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
|
{ -8/16, 0/32, 13/32, 8/16, 1/32, 15/32 },
|
|
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
|
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
|
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
|
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
|
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
|
{ -8/16, -12/32, 13/32, 8/16, -11/32, 15/32 },
|
|
{ -8/16, -16/32, 6/16, 8/16, -13/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
|
|
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
|
|
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
|
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
|
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
|
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
|
{ -8/16, 0, 13/32, 8/16, 1/32, 15/32 },
|
|
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
|
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
|
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
|
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
|
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
|
{ -8/16, -16/32, 6/16, 8/16, -11/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, 5/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
|
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
|
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
|
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
|
{ -8/16, 0/32, 13/32, 8/16, 1/32, 15/32 },
|
|
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
|
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
|
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
|
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
|
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
|
{ -8/16, -12/32, 13/32, 8/16, -11/32, 15/32 },
|
|
{ -8/16, -16/32, 6/16, 8/16, -13/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
|
|
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
|
|
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
|
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
|
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
|
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
|
{ -8/16, 0, 13/32, 8/16, 1/32, 15/32 },
|
|
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
|
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
|
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
|
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
|
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
|
{ -8/16, -16/32, 6/16, 8/16, -11/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }}
|
|
},
|
|
|
|
----------
|
|
|
|
{
|
|
"closet_oak",
|
|
S("Oak Closet Door"),
|
|
|
|
{{ -8/16, 5/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
|
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
|
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
|
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
|
{ -8/16, 0/32, 13/32, 8/16, 1/32, 15/32 },
|
|
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
|
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
|
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
|
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
|
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
|
{ -8/16, -12/32, 13/32, 8/16, -11/32, 15/32 },
|
|
{ -8/16, -16/32, 6/16, 8/16, -13/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
|
|
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
|
|
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
|
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
|
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
|
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
|
{ -8/16, 0, 13/32, 8/16, 1/32, 15/32 },
|
|
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
|
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
|
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
|
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
|
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
|
{ -8/16, -16/32, 6/16, 8/16, -11/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, 5/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
|
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
|
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
|
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
|
{ -8/16, 0/32, 13/32, 8/16, 1/32, 15/32 },
|
|
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
|
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
|
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
|
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
|
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
|
{ -8/16, -12/32, 13/32, 8/16, -11/32, 15/32 },
|
|
{ -8/16, -16/32, 6/16, 8/16, -13/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
|
|
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
|
|
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
|
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
|
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
|
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
|
{ -8/16, 0, 13/32, 8/16, 1/32, 15/32 },
|
|
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
|
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
|
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
|
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
|
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
|
{ -8/16, -16/32, 6/16, 8/16, -11/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
},
|
|
|
|
----------
|
|
|
|
{
|
|
"exterior_fancy",
|
|
S("Fancy Wood/Glass Door"),
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 6/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 6/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }}
|
|
},
|
|
|
|
----------
|
|
|
|
{
|
|
"glass",
|
|
S("Glass Office Door"),
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }}
|
|
},
|
|
|
|
----------
|
|
|
|
{
|
|
"wood_glass",
|
|
S("Glass and Wood, Oak-colored"),
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }}
|
|
},
|
|
|
|
----------
|
|
|
|
{
|
|
"wood_glass_mahogany",
|
|
S("Glass and Wood, Mahogany-colored"),
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }}
|
|
},
|
|
|
|
----------
|
|
|
|
{
|
|
"wood_glass_white",
|
|
S("Glass and Wood, White"),
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
|
|
|
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
|
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
|
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
|
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
|
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }}
|
|
},
|
|
|
|
----------
|
|
|
|
{
|
|
"wood_plain",
|
|
S("Plain Wooden Door"),
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
|
|
|
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }}
|
|
},
|
|
|
|
}
|
|
|