version 0.21

This commit is contained in:
davedevils 2015-06-29 19:55:56 +02:00
parent bd1233aaf1
commit c8d70b992c
1717 changed files with 68882 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1 @@
default

View file

@ -0,0 +1,10 @@
minetest.register_on_joinplayer(function(player)
local filename = minetest.get_modpath("player_textures").."/textures/player_"..player:get_player_name()
local f = io.open(filename..".png")
if f then
f:close()
player:set_properties({
textures = {"player_"..player:get_player_name()..".png", "player_"..player:get_player_name().."_back.png"},
})
end
end)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB