add wool mod to stairs
This commit is contained in:
parent
146453b486
commit
8ff7698444
@ -1,4 +1,6 @@
|
||||
default
|
||||
3d_armor
|
||||
wool
|
||||
irc ?
|
||||
farming ?
|
||||
darkage ?
|
||||
|
31
init.lua
31
init.lua
@ -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)
|
||||
|
17
stairs.lua
Normal file
17
stairs.lua
Normal file
@ -0,0 +1,17 @@
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user