1
0
mirror of https://github.com/SmallJoker/minetest-u_skinsdb.git synced 2025-07-16 15:00:23 +02:00

first commit

This commit is contained in:
dmonty2
2014-03-16 22:26:58 -07:00
parent 5e58108006
commit 62be356cab
617 changed files with 679 additions and 0 deletions

25
u_skins/skinlist.lua Normal file
View File

@ -0,0 +1,25 @@
u_skins.list = {}
u_skins.add = function(skin)
table.insert(u_skins.list,skin)
end
local id
id = 1
while true do
local f = io.open(minetest.get_modpath("u_skins").."/textures/player_"..id..".png")
if (not f) then break end
f:close()
u_skins.add("player_"..id)
id = id +1
end
id = 1
while true do
local f = io.open(minetest.get_modpath("u_skins").."/textures/character_"..id..".png")
if (not f) then break end
f:close()
u_skins.add("character_"..id)
id = id +1
end