summaryrefslogtreecommitdiff
path: root/player_textures
diff options
context:
space:
mode:
Diffstat (limited to 'player_textures')
-rw-r--r--player_textures/README.txt15
-rw-r--r--player_textures/depends.txt1
-rw-r--r--player_textures/init.lua27
-rw-r--r--player_textures/textures/player_Calinou.pngbin0 -> 2493 bytes
-rw-r--r--player_textures/textures/player_Evergreen.pngbin0 -> 8362 bytes
-rw-r--r--player_textures/textures/player_Jordach.pngbin0 -> 2955 bytes
-rw-r--r--player_textures/textures/player_PilzAdam.pngbin0 -> 879 bytes
-rw-r--r--player_textures/textures/player_PilzAdam_back.pngbin0 -> 152 bytes
-rw-r--r--player_textures/textures/player_ShadowNinja.pngbin0 -> 158 bytes
-rw-r--r--player_textures/textures/player_Sokomine.pngbin0 -> 2108 bytes
-rw-r--r--player_textures/textures/player_VanessaEzekowitz.pngbin0 -> 2678 bytes
-rw-r--r--player_textures/textures/player_Zeg9.pngbin0 -> 2704 bytes
-rw-r--r--player_textures/textures/player_cheapie.pngbin0 -> 679 bytes
-rw-r--r--player_textures/textures/player_crazyginger72.pngbin0 -> 60056 bytes
-rw-r--r--player_textures/textures/player_kaeza.pngbin0 -> 3773 bytes
-rw-r--r--player_textures/textures/player_oOChainLynxOo.pngbin0 -> 1071 bytes
-rw-r--r--player_textures/textures/player_playzooki.pngbin0 -> 627 bytes
-rw-r--r--player_textures/textures/player_sdzen.pngbin0 -> 2427 bytes
-rw-r--r--player_textures/textures/player_shadowzone.pngbin0 -> 274679 bytes
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
new file mode 100644
index 0000000..fb3026d
--- /dev/null
+++ b/player_textures/textures/player_Calinou.png
Binary files differ
diff --git a/player_textures/textures/player_Evergreen.png b/player_textures/textures/player_Evergreen.png
new file mode 100644
index 0000000..39b9bee
--- /dev/null
+++ b/player_textures/textures/player_Evergreen.png
Binary files differ
diff --git a/player_textures/textures/player_Jordach.png b/player_textures/textures/player_Jordach.png
new file mode 100644
index 0000000..d1204a6
--- /dev/null
+++ b/player_textures/textures/player_Jordach.png
Binary files differ
diff --git a/player_textures/textures/player_PilzAdam.png b/player_textures/textures/player_PilzAdam.png
new file mode 100644
index 0000000..795b7a0
--- /dev/null
+++ b/player_textures/textures/player_PilzAdam.png
Binary files differ
diff --git a/player_textures/textures/player_PilzAdam_back.png b/player_textures/textures/player_PilzAdam_back.png
new file mode 100644
index 0000000..588e5fb
--- /dev/null
+++ b/player_textures/textures/player_PilzAdam_back.png
Binary files differ
diff --git a/player_textures/textures/player_ShadowNinja.png b/player_textures/textures/player_ShadowNinja.png
new file mode 100644
index 0000000..a1d49cf
--- /dev/null
+++ b/player_textures/textures/player_ShadowNinja.png
Binary files differ
diff --git a/player_textures/textures/player_Sokomine.png b/player_textures/textures/player_Sokomine.png
new file mode 100644
index 0000000..5885f1a
--- /dev/null
+++ b/player_textures/textures/player_Sokomine.png
Binary files differ
diff --git a/player_textures/textures/player_VanessaEzekowitz.png b/player_textures/textures/player_VanessaEzekowitz.png
new file mode 100644
index 0000000..4a47814
--- /dev/null
+++ b/player_textures/textures/player_VanessaEzekowitz.png
Binary files differ
diff --git a/player_textures/textures/player_Zeg9.png b/player_textures/textures/player_Zeg9.png
new file mode 100644
index 0000000..ca604be
--- /dev/null
+++ b/player_textures/textures/player_Zeg9.png
Binary files differ
diff --git a/player_textures/textures/player_cheapie.png b/player_textures/textures/player_cheapie.png
new file mode 100644
index 0000000..19c2eff
--- /dev/null
+++ b/player_textures/textures/player_cheapie.png
Binary files differ
diff --git a/player_textures/textures/player_crazyginger72.png b/player_textures/textures/player_crazyginger72.png
new file mode 100644
index 0000000..dabe922
--- /dev/null
+++ b/player_textures/textures/player_crazyginger72.png
Binary files differ
diff --git a/player_textures/textures/player_kaeza.png b/player_textures/textures/player_kaeza.png
new file mode 100644
index 0000000..fcfb03b
--- /dev/null
+++ b/player_textures/textures/player_kaeza.png
Binary files differ
diff --git a/player_textures/textures/player_oOChainLynxOo.png b/player_textures/textures/player_oOChainLynxOo.png
new file mode 100644
index 0000000..6987918
--- /dev/null
+++ b/player_textures/textures/player_oOChainLynxOo.png
Binary files differ
diff --git a/player_textures/textures/player_playzooki.png b/player_textures/textures/player_playzooki.png
new file mode 100644
index 0000000..dbf9925
--- /dev/null
+++ b/player_textures/textures/player_playzooki.png
Binary files differ
diff --git a/player_textures/textures/player_sdzen.png b/player_textures/textures/player_sdzen.png
new file mode 100644
index 0000000..2fd9973
--- /dev/null
+++ b/player_textures/textures/player_sdzen.png
Binary files differ
diff --git a/player_textures/textures/player_shadowzone.png b/player_textures/textures/player_shadowzone.png
new file mode 100644
index 0000000..4255bfb
--- /dev/null
+++ b/player_textures/textures/player_shadowzone.png
Binary files differ