initial upload to github
|
@ -0,0 +1,22 @@
|
|||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
*.sln merge=union
|
||||
*.csproj merge=union
|
||||
*.vbproj merge=union
|
||||
*.fsproj merge=union
|
||||
*.dbproj merge=union
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
|
@ -0,0 +1,163 @@
|
|||
#################
|
||||
## Eclipse
|
||||
#################
|
||||
|
||||
*.pydevproject
|
||||
.project
|
||||
.metadata
|
||||
bin/
|
||||
tmp/
|
||||
*.tmp
|
||||
*.bak
|
||||
*.swp
|
||||
*~.nib
|
||||
local.properties
|
||||
.classpath
|
||||
.settings/
|
||||
.loadpath
|
||||
|
||||
# External tool builders
|
||||
.externalToolBuilders/
|
||||
|
||||
# Locally stored "Eclipse launch configurations"
|
||||
*.launch
|
||||
|
||||
# CDT-specific
|
||||
.cproject
|
||||
|
||||
# PDT-specific
|
||||
.buildpath
|
||||
|
||||
|
||||
#################
|
||||
## Visual Studio
|
||||
#################
|
||||
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.sln.docstates
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Rr]elease/
|
||||
*_i.c
|
||||
*_p.c
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.vspscc
|
||||
.builds
|
||||
*.dotCover
|
||||
|
||||
## TODO: If you have NuGet Package Restore enabled, uncomment this
|
||||
#packages/
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish
|
||||
|
||||
# Others
|
||||
[Bb]in
|
||||
[Oo]bj
|
||||
sql
|
||||
TestResults
|
||||
*.Cache
|
||||
ClientBin
|
||||
stylecop.*
|
||||
~$*
|
||||
*.dbmdl
|
||||
Generated_Code #added for RIA/Silverlight projects
|
||||
|
||||
# Backup & report files from converting an old project file to a newer
|
||||
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
|
||||
|
||||
|
||||
############
|
||||
## Windows
|
||||
############
|
||||
|
||||
# Windows image file caches
|
||||
Thumbs.db
|
||||
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
|
||||
#############
|
||||
## Python
|
||||
#############
|
||||
|
||||
*.py[co]
|
||||
|
||||
# Packages
|
||||
*.egg
|
||||
*.egg-info
|
||||
dist
|
||||
build
|
||||
eggs
|
||||
parts
|
||||
bin
|
||||
var
|
||||
sdist
|
||||
develop-eggs
|
||||
.installed.cfg
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
.coverage
|
||||
.tox
|
||||
|
||||
#Translations
|
||||
*.mo
|
||||
|
||||
#Mr Developer
|
||||
.mr.developer.cfg
|
||||
|
||||
# Mac crap
|
||||
.DS_Store
|
|
@ -0,0 +1,73 @@
|
|||
Living Room Furniture (lrfurn) mod for Minetest
|
||||
|
||||
|
||||
by thefamilygrog66
|
||||
|
||||
Description:
|
||||
Coloured Sofas, Armchairs, Coffee Tables and End Tables, loosely based on PilzAdam's beds mod. There are 9 colours in all: red, orange, yellow, green, blue, violet, black, grey and white.
|
||||
|
||||
When you right-click on a sofa or armchair, it transports you onto it, and replenishes your HP. Good if you've just escaped nasty mobs, didn't fare so well in battle, or just had a bad fall. The coffee table - which isn't coloured, just wooden - is pretty much just for decoration. It stands half a block high and nearly 2 blocks long. The end table is similar to the coffee table, though roughly half the length (i.e. only one block) and square.
|
||||
|
||||
Recipes:
|
||||
Sofa
|
||||
|
||||
+---------------+---------------+---------------+
|
||||
| coloured wool | coloured wool | coloured wool |
|
||||
+---------------+---------------+---------------+
|
||||
| wood slab | wood slab | wood slab |
|
||||
+---------------+---------------+---------------+
|
||||
| stick | | stick |
|
||||
+---------------+---------------+---------------+
|
||||
|
||||
Armchair
|
||||
|
||||
+---------------+---------------+-------+
|
||||
| coloured wool | coloured wool | |
|
||||
+---------------+---------------+-------+
|
||||
| wood slab | wood slab | |
|
||||
+---------------+---------------+-------+
|
||||
| stick | stick | |
|
||||
+---------------+---------------+-------+
|
||||
|
||||
Coffee Table (only wood texture)
|
||||
|
||||
+-----------+-----------+-----------+
|
||||
| | | |
|
||||
+-----------+-----------+-----------+
|
||||
| wood slab | wood slab | wood slab |
|
||||
+-----------+-----------+-----------+
|
||||
| stick | | stick |
|
||||
+-----------+-----------+-----------+
|
||||
|
||||
End Table (only wood texture)
|
||||
|
||||
+-----------+-----------+-----------+
|
||||
| | | |
|
||||
+-----------+-----------+-----------+
|
||||
| wood slab | wood slab | |
|
||||
+-----------+-----------+-----------+
|
||||
| stick | stick | |
|
||||
+-----------+-----------+-----------+
|
||||
|
||||
Mod dependencies: default, wool
|
||||
|
||||
License:
|
||||
Sourcecode: WTFPL (see below)
|
||||
Graphics: WTFPL (see below)
|
||||
|
||||
See also:
|
||||
http://minetest.net/
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
|
@ -0,0 +1,76 @@
|
|||
local armchairs_list = {
|
||||
{ "Red Armchair", "red"},
|
||||
{ "Orange Armchair", "orange"},
|
||||
{ "Yellow Armchair", "yellow"},
|
||||
{ "Green Armchair", "green"},
|
||||
{ "Blue Armchair", "blue"},
|
||||
{ "Violet Armchair", "violet"},
|
||||
{ "Black Armchair", "black"},
|
||||
{ "Grey Armchair", "grey"},
|
||||
{ "White Armchair", "white"},
|
||||
}
|
||||
|
||||
for i in ipairs(armchairs_list) do
|
||||
local armchairdesc = armchairs_list[i][1]
|
||||
local colour = armchairs_list[i][2]
|
||||
|
||||
minetest.register_node("lrfurn:armchair_"..colour, {
|
||||
description = armchairdesc,
|
||||
drawtype = "nodebox",
|
||||
tiles = {"lrfurn_armchair_top_"..colour..".png", "lrfurn_coffeetable_back.png", "lrfurn_sofa_left_side_"..colour..".png", "lrfurn_sofa_right_side_"..colour..".png", "lrfurn_sofa_back_"..colour..".png", "lrfurn_armchair_front_"..colour..".png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
stack_max = 1,
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
--legs
|
||||
{-0.4375, -0.5, -0.4375, -0.375, -0.375, -0.375},
|
||||
{0.375, -0.5, -0.4375, 0.4375, -0.375, -0.375},
|
||||
{-0.4375, -0.5, 0.375, -0.375, -0.375, 0.4375},
|
||||
{0.375, -0.5, 0.375, 0.4375, -0.375, 0.4375},
|
||||
|
||||
--base/cushion
|
||||
{-0.5, -0.375, -0.5, 0.5, 0, 0.5},
|
||||
|
||||
--back
|
||||
{-0.5, 0, 0.3125, 0.5, 0.5, 0.5},
|
||||
|
||||
--arms
|
||||
{-0.5, 0, -0.5, -0.3125, 0.25, 0.3125},
|
||||
{0.3125, 0, -0.5, 0.5, 0.25, 0.3125},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
}
|
||||
},
|
||||
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
if not clicker:is_player() then
|
||||
return
|
||||
end
|
||||
pos.y = pos.y-0.5
|
||||
clicker:setpos(pos)
|
||||
clicker:set_hp(20)
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lrfurn:armchair_"..colour,
|
||||
recipe = {
|
||||
{"wool:"..colour, "wool:"..colour, "", },
|
||||
{"stairs:slab_wood", "stairs:slab_wood", "", },
|
||||
{"default:stick", "default:stick", "", }
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
minetest.log("action", "armchairs loaded")
|
||||
end
|
|
@ -0,0 +1,106 @@
|
|||
minetest.register_node("lrfurn:coffeetable_back", {
|
||||
description = "Coffee Table",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
stack_max = 1,
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
--legs
|
||||
{-0.375, -0.5, -0.375, -0.3125, -0.0625, -0.3125},
|
||||
{0.3125, -0.5, -0.375, 0.375, -0.0625, -0.3125},
|
||||
|
||||
--tabletop
|
||||
{-0.4375, -0.0625, -0.4375, 0.4375, 0, 0.5},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, 0.4375, 0.0, 1.4375},
|
||||
}
|
||||
},
|
||||
|
||||
on_construct = function(pos)
|
||||
local node = minetest.env:get_node(pos)
|
||||
local param2 = node.param2
|
||||
node.name = "lrfurn:coffeetable_front"
|
||||
if param2 == 0 then
|
||||
pos.z = pos.z+1
|
||||
elseif param2 == 1 then
|
||||
pos.x = pos.x+1
|
||||
elseif param2 == 2 then
|
||||
pos.z = pos.z-1
|
||||
elseif param2 == 3 then
|
||||
pos.x = pos.x-1
|
||||
end
|
||||
if( minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z}).name == "air" ) then
|
||||
minetest.env:set_node(pos, node)
|
||||
end
|
||||
end,
|
||||
|
||||
on_destruct = function(pos)
|
||||
local node = minetest.env:get_node(pos)
|
||||
local param2 = node.param2
|
||||
if param2 == 0 then
|
||||
pos.z = pos.z+1
|
||||
elseif param2 == 1 then
|
||||
pos.x = pos.x+1
|
||||
elseif param2 == 2 then
|
||||
pos.z = pos.z-1
|
||||
elseif param2 == 3 then
|
||||
pos.x = pos.x-1
|
||||
end
|
||||
if( minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z}).name == "lrfurn:coffeetable_front" ) then
|
||||
if( minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z}).param2 == param2 ) then
|
||||
minetest.env:remove_node(pos)
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("lrfurn:coffeetable_front", {
|
||||
drawtype = "nodebox",
|
||||
tiles = {"lrfurn_coffeetable_front.png", "lrfurn_coffeetable_front.png", "lrfurn_coffeetable_front.png", "lrfurn_coffeetable_front.png", "lrfurn_coffeetable_front.png", "lrfurn_coffeetable_front.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
--legs
|
||||
{-0.375, -0.5, 0.3125, -0.3125, -0.0625, 0.375},
|
||||
{0.3125, -0.5, 0.3125, 0.375, -0.0625, 0.375},
|
||||
|
||||
--tabletop
|
||||
{-0.4375, -0.0625, -0.5, 0.4375, 0, 0.4375},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0, 0, 0, 0, 0, 0},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_alias("lrfurn:coffeetable", "lrfurn:coffeetable_back")
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lrfurn:coffeetable",
|
||||
recipe = {
|
||||
{"", "", "", },
|
||||
{"stairs:slab_wood", "stairs:slab_wood", "stairs:slab_wood", },
|
||||
{"default:stick", "", "default:stick", }
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
minetest.log("action", "coffeetable loaded")
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
wool
|
|
@ -0,0 +1,42 @@
|
|||
minetest.register_node("lrfurn:endtable", {
|
||||
description = "End Table",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
stack_max = 1,
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
--legs
|
||||
{-0.375, -0.5, -0.375, -0.3125, -0.0625, -0.3125},
|
||||
{0.3125, -0.5, -0.375, 0.375, -0.0625, -0.3125},
|
||||
{-0.375, -0.5, 0.3125, -0.3125, -0.0625, 0.375},
|
||||
{0.3125, -0.5, 0.3125, 0.375, -0.0625, 0.375},
|
||||
|
||||
--tabletop
|
||||
{-0.4375, -0.0625, -0.4375, 0.4375, 0, 0.4375},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, 0.4375, 0.0, 0.4375},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lrfurn:endtable",
|
||||
recipe = {
|
||||
{"", "", "", },
|
||||
{"stairs:slab_wood", "stairs:slab_wood", "", },
|
||||
{"default:stick", "default:stick", "", }
|
||||
}
|
||||
})
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
minetest.log("action", "endtable loaded")
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
dofile(minetest.get_modpath("lrfurn").."/sofas.lua")
|
||||
dofile(minetest.get_modpath("lrfurn").."/armchairs.lua")
|
||||
dofile(minetest.get_modpath("lrfurn").."/coffeetable.lua")
|
||||
dofile(minetest.get_modpath("lrfurn").."/endtable.lua")
|
|
@ -0,0 +1,144 @@
|
|||
local sofas_list = {
|
||||
{ "Red Sofa", "red"},
|
||||
{ "Orange Sofa", "orange"},
|
||||
{ "Yellow Sofa", "yellow"},
|
||||
{ "Green Sofa", "green"},
|
||||
{ "Blue Sofa", "blue"},
|
||||
{ "Violet Sofa", "violet"},
|
||||
{ "Black Sofa", "black"},
|
||||
{ "Grey Sofa", "grey"},
|
||||
{ "White Sofa", "white"},
|
||||
}
|
||||
|
||||
for i in ipairs(sofas_list) do
|
||||
local sofadesc = sofas_list[i][1]
|
||||
local colour = sofas_list[i][2]
|
||||
|
||||
minetest.register_node("lrfurn:sofa_right_"..colour, {
|
||||
description = sofadesc,
|
||||
drawtype = "nodebox",
|
||||
tiles = {"lrfurn_sofa_right_top_"..colour..".png", "lrfurn_coffeetable_back.png", "lrfurn_sofa_right_front_"..colour..".png", "lrfurn_sofa_back_"..colour..".png", "lrfurn_sofa_left_side_"..colour..".png", "lrfurn_sofa_right_side_"..colour..".png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
stack_max = 1,
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
--legs
|
||||
{-0.4375, -0.5, -0.4375, -0.375, -0.375, -0.375},
|
||||
{0.375, -0.5, -0.4375, 0.4375, -0.375, -0.375},
|
||||
|
||||
--base/cushion
|
||||
{-0.5, -0.375, -0.5, 0.5, 0, 0.5},
|
||||
|
||||
--back
|
||||
{-0.5, 0, -0.5, -0.3125, 0.5, 0.5},
|
||||
|
||||
--arm
|
||||
{-0.3125, 0, -0.5, 0.5, 0.25, -0.3125},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 1.5},
|
||||
}
|
||||
},
|
||||
|
||||
on_construct = function(pos)
|
||||
local node = minetest.env:get_node(pos)
|
||||
local param2 = node.param2
|
||||
node.name = "lrfurn:sofa_left_"..colour
|
||||
if param2 == 0 then
|
||||
pos.z = pos.z+1
|
||||
elseif param2 == 1 then
|
||||
pos.x = pos.x+1
|
||||
elseif param2 == 2 then
|
||||
pos.z = pos.z-1
|
||||
elseif param2 == 3 then
|
||||
pos.x = pos.x-1
|
||||
end
|
||||
if( minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z}).name == "air" ) then
|
||||
minetest.env:set_node(pos, node)
|
||||
end
|
||||
end,
|
||||
|
||||
on_destruct = function(pos)
|
||||
local node = minetest.env:get_node(pos)
|
||||
local param2 = node.param2
|
||||
if param2 == 0 then
|
||||
pos.z = pos.z+1
|
||||
elseif param2 == 1 then
|
||||
pos.x = pos.x+1
|
||||
elseif param2 == 2 then
|
||||
pos.z = pos.z-1
|
||||
elseif param2 == 3 then
|
||||
pos.x = pos.x-1
|
||||
end
|
||||
if( minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z}).name == "lrfurn:sofa_left_"..colour ) then
|
||||
if( minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z}).param2 == param2 ) then
|
||||
minetest.env:remove_node(pos)
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
if not clicker:is_player() then
|
||||
return
|
||||
end
|
||||
pos.y = pos.y-0.5
|
||||
clicker:setpos(pos)
|
||||
clicker:set_hp(20)
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("lrfurn:sofa_left_"..colour, {
|
||||
drawtype = "nodebox",
|
||||
tiles = {"lrfurn_sofa_left_top_"..colour..".png", "lrfurn_coffeetable_back.png", "lrfurn_sofa_left_front_"..colour..".png", "lrfurn_sofa_back_"..colour..".png", "lrfurn_sofa_left_side_"..colour..".png", "lrfurn_sofa_right_side_"..colour..".png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
--legs
|
||||
{-0.4375, -0.5, 0.375, -0.375, -0.375, 0.4375},
|
||||
{0.375, -0.5, 0.375, 0.4375, -0.375, 0.4375},
|
||||
|
||||
--base/cushion
|
||||
{-0.5, -0.375, -0.5, 0.5, 0, 0.5},
|
||||
|
||||
--back
|
||||
{-0.5, 0, -0.5, -0.3125, 0.5, 0.5},
|
||||
|
||||
--arm
|
||||
{-0.3125, 0, 0.3125, 0.5, 0.25, 0.5},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0, 0, 0, 0, 0, 0},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_alias("lrfurn:sofa_"..colour, "lrfurn:sofa_right_"..colour)
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lrfurn:sofa_"..colour,
|
||||
recipe = {
|
||||
{"wool:"..colour, "wool:"..colour, "wool:"..colour, },
|
||||
{"stairs:slab_wood", "stairs:slab_wood", "stairs:slab_wood", },
|
||||
{"default:stick", "", "default:stick", }
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
minetest.log("action", "sofas loaded")
|
||||
end
|
After Width: | Height: | Size: 579 B |
After Width: | Height: | Size: 609 B |
After Width: | Height: | Size: 603 B |
After Width: | Height: | Size: 571 B |
After Width: | Height: | Size: 619 B |
After Width: | Height: | Size: 610 B |
After Width: | Height: | Size: 631 B |
After Width: | Height: | Size: 583 B |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 423 B |
After Width: | Height: | Size: 536 B |
After Width: | Height: | Size: 526 B |
After Width: | Height: | Size: 480 B |
After Width: | Height: | Size: 570 B |
After Width: | Height: | Size: 532 B |
After Width: | Height: | Size: 571 B |
After Width: | Height: | Size: 463 B |
After Width: | Height: | Size: 422 B |
After Width: | Height: | Size: 709 B |
After Width: | Height: | Size: 699 B |
After Width: | Height: | Size: 403 B |
After Width: | Height: | Size: 405 B |
After Width: | Height: | Size: 403 B |
After Width: | Height: | Size: 403 B |
After Width: | Height: | Size: 401 B |
After Width: | Height: | Size: 405 B |
After Width: | Height: | Size: 406 B |
After Width: | Height: | Size: 404 B |
After Width: | Height: | Size: 393 B |
After Width: | Height: | Size: 549 B |
After Width: | Height: | Size: 586 B |
After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 546 B |
After Width: | Height: | Size: 592 B |
After Width: | Height: | Size: 586 B |
After Width: | Height: | Size: 614 B |
After Width: | Height: | Size: 552 B |
After Width: | Height: | Size: 523 B |
After Width: | Height: | Size: 534 B |
After Width: | Height: | Size: 560 B |
After Width: | Height: | Size: 561 B |
After Width: | Height: | Size: 534 B |
After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 575 B |
After Width: | Height: | Size: 533 B |
After Width: | Height: | Size: 504 B |
After Width: | Height: | Size: 437 B |
After Width: | Height: | Size: 480 B |
After Width: | Height: | Size: 489 B |
After Width: | Height: | Size: 424 B |
After Width: | Height: | Size: 524 B |
After Width: | Height: | Size: 419 B |
After Width: | Height: | Size: 520 B |
After Width: | Height: | Size: 428 B |
After Width: | Height: | Size: 405 B |
After Width: | Height: | Size: 562 B |
After Width: | Height: | Size: 596 B |
After Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 556 B |
After Width: | Height: | Size: 597 B |
After Width: | Height: | Size: 588 B |
After Width: | Height: | Size: 622 B |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 528 B |
After Width: | Height: | Size: 558 B |
After Width: | Height: | Size: 578 B |
After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 556 B |
After Width: | Height: | Size: 586 B |
After Width: | Height: | Size: 568 B |
After Width: | Height: | Size: 590 B |
After Width: | Height: | Size: 561 B |
After Width: | Height: | Size: 519 B |
After Width: | Height: | Size: 436 B |
After Width: | Height: | Size: 484 B |
After Width: | Height: | Size: 483 B |
After Width: | Height: | Size: 424 B |
After Width: | Height: | Size: 521 B |
After Width: | Height: | Size: 424 B |
After Width: | Height: | Size: 527 B |
After Width: | Height: | Size: 430 B |
After Width: | Height: | Size: 403 B |
After Width: | Height: | Size: 172 B |