Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minetest_game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
minetest_game
Commits
0132bfe4
Commit
0132bfe4
authored
7 years ago
by
paramat
Committed by
paramat
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Stairs: Improve inner/outer stair descriptions. Code cleanup
parent
2824e4bb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mods/stairs/init.lua
+12
-6
12 additions, 6 deletions
mods/stairs/init.lua
with
12 additions
and
6 deletions
mods/stairs/init.lua
+
12
−
6
View file @
0132bfe4
...
...
@@ -44,7 +44,8 @@ local function rotate_and_place(itemstack, placer, pointed_thing)
return
minetest
.
item_place
(
itemstack
,
placer
,
pointed_thing
,
param2
)
end
-- Register stairs.
-- Register stair
-- Node will be called stairs:stair_<subname>
function
stairs
.
register_stair
(
subname
,
recipeitem
,
groups
,
images
,
description
,
sounds
)
...
...
@@ -141,7 +142,8 @@ end
-- Slab facedir to placement 6d matching table
local
slab_trans_dir
=
{[
0
]
=
8
,
0
,
2
,
1
,
3
,
4
}
-- Register slabs.
-- Register slab
-- Node will be called stairs:slab_<subname>
function
stairs
.
register_slab
(
subname
,
recipeitem
,
groups
,
images
,
description
,
sounds
)
...
...
@@ -292,7 +294,8 @@ if replace then
})
end
-- Register stairs.
-- Register inner stair
-- Node will be called stairs:stair_inner_<subname>
function
stairs
.
register_stair_inner
(
subname
,
recipeitem
,
groups
,
images
,
description
,
sounds
)
...
...
@@ -317,7 +320,7 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images, descri
end
groups
.
stair
=
1
minetest
.
register_node
(
":stairs:stair_inner_"
..
subname
,
{
description
=
description
..
" Inner"
,
description
=
"Inner "
..
description
,
drawtype
=
"nodebox"
,
tiles
=
stair_images
,
paramtype
=
"light"
,
...
...
@@ -368,7 +371,8 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images, descri
end
end
-- Register stairs.
-- Register outer stair
-- Node will be called stairs:stair_outer_<subname>
function
stairs
.
register_stair_outer
(
subname
,
recipeitem
,
groups
,
images
,
description
,
sounds
)
...
...
@@ -393,7 +397,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images, descri
end
groups
.
stair
=
1
minetest
.
register_node
(
":stairs:stair_outer_"
..
subname
,
{
description
=
description
..
" Outer"
,
description
=
"Outer "
..
description
,
drawtype
=
"nodebox"
,
tiles
=
stair_images
,
paramtype
=
"light"
,
...
...
@@ -443,6 +447,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images, descri
end
end
-- Stair/slab registration function.
-- Nodes will be called stairs:{stair,slab}_<subname>
...
...
@@ -453,6 +458,7 @@ function stairs.register_stair_and_slab(subname, recipeitem, groups, images, des
stairs
.
register_slab
(
subname
,
recipeitem
,
groups
,
images
,
desc_slab
,
sounds
)
end
-- Register default stairs and slabs
stairs
.
register_stair_and_slab
(
...
...
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