mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Remove player_textures
This commit is contained in:
parent
9ee0c889f6
commit
d28ec6f5e8
6 changed files with 0 additions and 26 deletions
|
@ -1,15 +0,0 @@
|
||||||
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
|
|
|
@ -1 +0,0 @@
|
||||||
default
|
|
|
@ -1,10 +0,0 @@
|
||||||
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.
Before Width: | Height: | Size: 746 B |
Binary file not shown.
Before Width: | Height: | Size: 664 B |
Binary file not shown.
Before Width: | Height: | Size: 664 B |
Loading…
Reference in a new issue