diff options
Diffstat (limited to 'player_textures')
19 files changed, 43 insertions, 0 deletions
diff --git a/player_textures/README.txt b/player_textures/README.txt new file mode 100644 index 0000000..ffd9dc1 --- /dev/null +++ b/player_textures/README.txt @@ -0,0 +1,15 @@ +Player Textures Mod for Minetest +================================ + +This mod allows players to use different textures. Just place the texture in +the player_textures/textures/ folder like this: +player_<player_name>.png +and the player with the name <player_name> will have this textures. + +License of source code: +----------------------- +WTFPL + +License of the example textures: +-------------------------------- +WTFPL diff --git a/player_textures/depends.txt b/player_textures/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/player_textures/depends.txt @@ -0,0 +1 @@ +default diff --git a/player_textures/init.lua b/player_textures/init.lua new file mode 100644 index 0000000..c38b347 --- /dev/null +++ b/player_textures/init.lua @@ -0,0 +1,27 @@ +local mod_path = minetest.get_modpath(minetest.get_current_modname()) +local got_tex = {} +local got_gdl = minetest.get_dir_list + +if got_gdl then + for _, name in pairs(minetest.get_dir_list(mod_path.."/textures")) do + if name:sub(1, 7) == "player_" then + local player_name = name:sub(8):match("(.+)%.") + got_tex[player_name] = true + end + end +end + +minetest.register_on_joinplayer(function(player) + local player_name = player:get_player_name() + local tex = "player_"..player_name..".png" + if got_gdl then + if not got_tex[player_name] then return end + else + if not io.open(mod_path.."/textures/"..tex) then + return + end + end + player:set_properties({textures = {tex}}) +end) + + diff --git a/player_textures/textures/player_Calinou.png b/player_textures/textures/player_Calinou.png Binary files differnew file mode 100644 index 0000000..fb3026d --- /dev/null +++ b/player_textures/textures/player_Calinou.png diff --git a/player_textures/textures/player_Evergreen.png b/player_textures/textures/player_Evergreen.png Binary files differnew file mode 100644 index 0000000..39b9bee --- /dev/null +++ b/player_textures/textures/player_Evergreen.png diff --git a/player_textures/textures/player_Jordach.png b/player_textures/textures/player_Jordach.png Binary files differnew file mode 100644 index 0000000..d1204a6 --- /dev/null +++ b/player_textures/textures/player_Jordach.png diff --git a/player_textures/textures/player_PilzAdam.png b/player_textures/textures/player_PilzAdam.png Binary files differnew file mode 100644 index 0000000..795b7a0 --- /dev/null +++ b/player_textures/textures/player_PilzAdam.png diff --git a/player_textures/textures/player_PilzAdam_back.png b/player_textures/textures/player_PilzAdam_back.png Binary files differnew file mode 100644 index 0000000..588e5fb --- /dev/null +++ b/player_textures/textures/player_PilzAdam_back.png diff --git a/player_textures/textures/player_ShadowNinja.png b/player_textures/textures/player_ShadowNinja.png Binary files differnew file mode 100644 index 0000000..a1d49cf --- /dev/null +++ b/player_textures/textures/player_ShadowNinja.png diff --git a/player_textures/textures/player_Sokomine.png b/player_textures/textures/player_Sokomine.png Binary files differnew file mode 100644 index 0000000..5885f1a --- /dev/null +++ b/player_textures/textures/player_Sokomine.png diff --git a/player_textures/textures/player_VanessaEzekowitz.png b/player_textures/textures/player_VanessaEzekowitz.png Binary files differnew file mode 100644 index 0000000..4a47814 --- /dev/null +++ b/player_textures/textures/player_VanessaEzekowitz.png diff --git a/player_textures/textures/player_Zeg9.png b/player_textures/textures/player_Zeg9.png Binary files differnew file mode 100644 index 0000000..ca604be --- /dev/null +++ b/player_textures/textures/player_Zeg9.png diff --git a/player_textures/textures/player_cheapie.png b/player_textures/textures/player_cheapie.png Binary files differnew file mode 100644 index 0000000..19c2eff --- /dev/null +++ b/player_textures/textures/player_cheapie.png diff --git a/player_textures/textures/player_crazyginger72.png b/player_textures/textures/player_crazyginger72.png Binary files differnew file mode 100644 index 0000000..dabe922 --- /dev/null +++ b/player_textures/textures/player_crazyginger72.png diff --git a/player_textures/textures/player_kaeza.png b/player_textures/textures/player_kaeza.png Binary files differnew file mode 100644 index 0000000..fcfb03b --- /dev/null +++ b/player_textures/textures/player_kaeza.png diff --git a/player_textures/textures/player_oOChainLynxOo.png b/player_textures/textures/player_oOChainLynxOo.png Binary files differnew file mode 100644 index 0000000..6987918 --- /dev/null +++ b/player_textures/textures/player_oOChainLynxOo.png diff --git a/player_textures/textures/player_playzooki.png b/player_textures/textures/player_playzooki.png Binary files differnew file mode 100644 index 0000000..dbf9925 --- /dev/null +++ b/player_textures/textures/player_playzooki.png diff --git a/player_textures/textures/player_sdzen.png b/player_textures/textures/player_sdzen.png Binary files differnew file mode 100644 index 0000000..2fd9973 --- /dev/null +++ b/player_textures/textures/player_sdzen.png diff --git a/player_textures/textures/player_shadowzone.png b/player_textures/textures/player_shadowzone.png Binary files differnew file mode 100644 index 0000000..4255bfb --- /dev/null +++ b/player_textures/textures/player_shadowzone.png |