Loading init.lua +3 −29 Original line number Diff line number Diff line Loading @@ -15,32 +15,6 @@ end if not minetest.get_modpath("ethereal") then 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...") if minetest.get_modpath("technic") then dofile(minetest.get_modpath("illuna").."/technic.lua") end player:set_properties({ visual = "mesh", textures = {texture..".png"}, visual_size = {x=1, y=1}, }) else return "meh.." end end) ]] technic.lua 0 → 100644 +4 −0 Original line number Diff line number Diff line technic.cnc.register_all("illuna:stonebrick", {cracky=3}, {"default_stone_brick.png"}, "Stonebrick") Loading
init.lua +3 −29 Original line number Diff line number Diff line Loading @@ -15,32 +15,6 @@ end if not minetest.get_modpath("ethereal") then 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...") if minetest.get_modpath("technic") then dofile(minetest.get_modpath("illuna").."/technic.lua") end player:set_properties({ visual = "mesh", textures = {texture..".png"}, visual_size = {x=1, y=1}, }) else return "meh.." end end) ]]
technic.lua 0 → 100644 +4 −0 Original line number Diff line number Diff line technic.cnc.register_all("illuna:stonebrick", {cracky=3}, {"default_stone_brick.png"}, "Stonebrick")