Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna
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
illuna
Commits
8ff76984
Commit
8ff76984
authored
8 years ago
by
Milan
Browse files
Options
Downloads
Patches
Plain Diff
add wool mod to stairs
parent
146453b4
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
depends.txt
+2
-0
2 additions, 0 deletions
depends.txt
init.lua
+30
-1
30 additions, 1 deletion
init.lua
stairs.lua
+17
-0
17 additions, 0 deletions
stairs.lua
with
49 additions
and
1 deletion
depends.txt
+
2
−
0
View file @
8ff76984
default
3d_armor
wool
irc ?
farming ?
darkage ?
...
...
This diff is collapsed.
Click to expand it.
init.lua
+
30
−
1
View file @
8ff76984
...
...
@@ -8,9 +8,38 @@ dofile(minetest.get_modpath("illuna").."/aliases.lua")
dofile
(
minetest
.
get_modpath
(
"illuna"
)
..
"/functions.lua"
)
dofile
(
minetest
.
get_modpath
(
"illuna"
)
..
"/craftitems.lua"
)
dofile
(
minetest
.
get_modpath
(
"illuna"
)
..
"/shop.lua"
)
dofile
(
minetest
.
get_modpath
(
"illuna"
)
..
"/stairs.lua"
)
if
minetest
.
get_modpath
(
"moreblocks"
)
then
dofile
(
minetest
.
get_modpath
(
"illuna"
)
..
"/moreblocks.lua"
)
end
if
not
minetest
.
get_modpath
(
"ethereal"
)
then
dofile
(
minetest
.
get_modpath
(
"illuna"
)
..
"/water.lua"
dofile
(
minetest
.
get_modpath
(
"illuna"
)
..
"/water.lua"
)
end
minetest
.
register_on_joinplayer
(
function
(
player
)
--skinname = player:get_player_name()
local
customskin
=
player
:
get_player_name
()
..
".png"
--local io.open(minetest.get_modpath("illuna").."/textures/"..player:get_player_name()..".png","r"
--if customskin~=nil
-- then
-- io.close(customskin)
player
:
set_properties
({
visual
=
"mesh"
,
mesh
=
"character.b3d"
,
visual_size
=
{
x
=
1
,
y
=
1
},
textures
=
{
"singleplayer.png"
},
})
core
.
chat_send_all
(
customskin
)
--return ""
-- else
-- core.chat_send_all("found nothing :(, anyway...")
--[[end
player:set_properties({
visual = "mesh",
textures = {texture..".png"},
visual_size = {x=1, y=1},
})
else
return "meh.."
end]]
end
)
This diff is collapsed.
Click to expand it.
stairs.lua
0 → 100644
+
17
−
0
View file @
8ff76984
for
_
,
name
in
ipairs
({
"red"
,
"green"
,
"white"
,
"black"
,
"blue"
,
"brown"
,
"cyan"
,
"grey"
,
"dark_green"
,
"woold:dark_grey"
,
"magenta"
,
"orange"
,
"pink"
,
"red"
,
"violet"
,
"yellow"
})
do
local
nodename
=
"wool:"
..
name
local
tmp
=
minetest
.
registered_nodes
[
nodename
]
if
not
tmp
then
return
end
local
desc
=
tmp
.
description
stairs
.
register_stair_and_slab
(
"wool_"
..
name
,
nodename
,
tmp
.
groups
,
{
"wool_"
..
name
..
".png"
},
desc
..
" Stair"
,
desc
..
" Slab"
,
tmp
.
sounds
)
end
This diff is collapsed.
Click to expand it.
Milan
@milan
mentioned in commit
9a4e7824
·
8 years ago
mentioned in commit
9a4e7824
mentioned in commit 9a4e782473e8426c4a18a14a373a086e95d28832
Toggle commit list
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