diff --git a/init.lua b/init.lua index 5ef1b1e8c384cc60d3807ef633e8899a7d1ecefb..a4b8d891bd12cd6fa2d232365ef64bac9f547c3f 100644 --- a/init.lua +++ b/init.lua @@ -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...") - end - player:set_properties({ - visual = "mesh", - textures = {texture..".png"}, - visual_size = {x=1, y=1}, - }) - else - return "meh.." - end -end) -]] +if minetest.get_modpath("technic") then + dofile(minetest.get_modpath("illuna").."/technic.lua") +end diff --git a/technic.lua b/technic.lua new file mode 100644 index 0000000000000000000000000000000000000000..dd8c6a308ddb94fd2e76fb410ba3789cc9172d28 --- /dev/null +++ b/technic.lua @@ -0,0 +1,4 @@ +technic.cnc.register_all("illuna:stonebrick", + {cracky=3}, + {"default_stone_brick.png"}, + "Stonebrick")