Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
homedecor_modpack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
homedecor_modpack
Commits
17e872e3
Commit
17e872e3
authored
9 years ago
by
Vanessa Ezekowitz
Browse files
Options
Downloads
Patches
Plain Diff
add collision boxes
parent
9a32904b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lrfurn/armchairs.lua
+0
-2
0 additions, 2 deletions
lrfurn/armchairs.lua
lrfurn/longsofas.lua
+8
-6
8 additions, 6 deletions
lrfurn/longsofas.lua
lrfurn/sofas.lua
+7
-6
7 additions, 6 deletions
lrfurn/sofas.lua
with
15 additions
and
14 deletions
lrfurn/armchairs.lua
+
0
−
2
View file @
17e872e3
...
...
@@ -26,8 +26,6 @@ for i in ipairs(armchairs_list) do
paramtype2
=
"facedir"
,
groups
=
{
snappy
=
1
,
choppy
=
2
,
oddly_breakable_by_hand
=
2
,
flammable
=
3
},
sounds
=
default
.
node_sound_wood_defaults
(),
selection_box
=
{
type
=
"regular"
},
on_rightclick
=
function
(
pos
,
node
,
clicker
)
if
not
clicker
:
is_player
()
then
return
...
...
This diff is collapsed.
Click to expand it.
lrfurn/longsofas.lua
+
8
−
6
View file @
17e872e3
...
...
@@ -10,6 +10,12 @@ local longsofas_list = {
{
"White Long Sofa"
,
"white"
},
}
local
longsofa_cbox
=
{
type
=
"fixed"
,
fixed
=
{
-
0
.
5
,
-
0
.
5
,
-
0
.
5
,
0
.
5
,
0
.
5
,
2
.
5
}
}
for
i
in
ipairs
(
longsofas_list
)
do
local
longsofadesc
=
longsofas_list
[
i
][
1
]
local
colour
=
longsofas_list
[
i
][
2
]
...
...
@@ -26,12 +32,8 @@ for i in ipairs(longsofas_list) do
paramtype2
=
"facedir"
,
groups
=
{
snappy
=
1
,
choppy
=
2
,
oddly_breakable_by_hand
=
2
,
flammable
=
3
},
sounds
=
default
.
node_sound_wood_defaults
(),
selection_box
=
{
type
=
"fixed"
,
fixed
=
{
{
-
0
.
5
,
-
0
.
5
,
-
0
.
5
,
0
.
5
,
0
.
5
,
2
.
5
},
}
},
selection_box
=
longsofa_cbox
,
collision_box
=
longsofa_cbox
,
on_place
=
function
(
itemstack
,
placer
,
pointed_thing
)
local
pos
=
pointed_thing
.
above
local
fdir
=
minetest
.
dir_to_facedir
(
placer
:
get_look_dir
(),
false
)
...
...
This diff is collapsed.
Click to expand it.
lrfurn/sofas.lua
+
7
−
6
View file @
17e872e3
...
...
@@ -10,6 +10,11 @@ local sofas_list = {
{
"White Sofa"
,
"white"
},
}
local
sofa_cbox
=
{
type
=
"fixed"
,
fixed
=
{
-
0
.
5
,
-
0
.
5
,
-
0
.
5
,
0
.
5
,
0
.
5
,
1
.
5
}
}
for
i
in
ipairs
(
sofas_list
)
do
local
sofadesc
=
sofas_list
[
i
][
1
]
local
colour
=
sofas_list
[
i
][
2
]
...
...
@@ -26,12 +31,8 @@ for i in ipairs(sofas_list) do
paramtype2
=
"facedir"
,
groups
=
{
snappy
=
1
,
choppy
=
2
,
oddly_breakable_by_hand
=
2
,
flammable
=
3
},
sounds
=
default
.
node_sound_wood_defaults
(),
selection_box
=
{
type
=
"fixed"
,
fixed
=
{
{
-
0
.
5
,
-
0
.
5
,
-
0
.
5
,
0
.
5
,
0
.
5
,
1
.
5
},
}
},
selection_box
=
sofa_cbox
,
collision_box
=
sofa_cbox
,
on_place
=
function
(
itemstack
,
placer
,
pointed_thing
)
local
pos
=
pointed_thing
.
above
local
fdir
=
minetest
.
dir_to_facedir
(
placer
:
get_look_dir
(),
false
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment