2016-08-25 15:13:32 +02:00
|
|
|
illuna = {}
|
|
|
|
|
2016-03-15 22:36:23 +01:00
|
|
|
dofile(minetest.get_modpath("illuna").."/nodes.lua")
|
|
|
|
dofile(minetest.get_modpath("illuna").."/crafting.lua")
|
2016-06-05 18:55:27 +02:00
|
|
|
dofile(minetest.get_modpath("illuna").."/commands.lua")
|
2016-06-10 20:01:40 +02:00
|
|
|
dofile(minetest.get_modpath("illuna").."/register.lua")
|
2016-08-02 18:15:52 +02:00
|
|
|
dofile(minetest.get_modpath("illuna").."/aliases.lua")
|
2017-01-06 18:55:57 +01:00
|
|
|
dofile(minetest.get_modpath("illuna").."/functions.lua")
|
2016-10-03 13:32:13 +02:00
|
|
|
dofile(minetest.get_modpath("illuna").."/craftitems.lua")
|
2016-10-03 15:22:25 +02:00
|
|
|
dofile(minetest.get_modpath("illuna").."/shop.lua")
|
2017-01-11 22:17:47 +01:00
|
|
|
dofile(minetest.get_modpath("illuna").."/stairs.lua")
|
2016-08-11 14:32:06 +02:00
|
|
|
if minetest.get_modpath("moreblocks") then
|
|
|
|
dofile(minetest.get_modpath("illuna").."/moreblocks.lua")
|
|
|
|
end
|
2016-12-02 16:51:40 +01:00
|
|
|
if not minetest.get_modpath("ethereal") then
|
2017-01-11 22:17:47 +01:00
|
|
|
dofile(minetest.get_modpath("illuna").."/water.lua")
|
2016-12-02 16:51:40 +01:00
|
|
|
end
|
2017-01-11 22:17:47 +01:00
|
|
|
|
|
|
|
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)
|