Skip to content
Snippets Groups Projects
Commit 8ff76984 authored by Milan's avatar Milan
Browse files

add wool mod to stairs

parent 146453b4
No related branches found
No related tags found
No related merge requests found
default
3d_armor
wool
irc ?
farming ?
darkage ?
......
......@@ -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)
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment