copy all standard Dreambuilder mods in from the old subgame
(exactly as last supplied there, updates to these mods will follow later)
15
player_textures/README.txt
Normal 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
|
1
player_textures/depends.txt
Normal file
@@ -0,0 +1 @@
|
||||
default
|
27
player_textures/init.lua
Normal file
@@ -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)
|
||||
|
||||
|
BIN
player_textures/textures/player_Calinou.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
player_textures/textures/player_Evergreen.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
player_textures/textures/player_Jordach.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
player_textures/textures/player_PilzAdam.png
Normal file
After Width: | Height: | Size: 879 B |
BIN
player_textures/textures/player_PilzAdam_back.png
Normal file
After Width: | Height: | Size: 152 B |
BIN
player_textures/textures/player_ShadowNinja.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
player_textures/textures/player_Sokomine.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
player_textures/textures/player_VanessaEzekowitz.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
player_textures/textures/player_Zeg9.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
player_textures/textures/player_cheapie.png
Normal file
After Width: | Height: | Size: 679 B |
BIN
player_textures/textures/player_crazyginger72.png
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
player_textures/textures/player_kaeza.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
player_textures/textures/player_oOChainLynxOo.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
player_textures/textures/player_playzooki.png
Normal file
After Width: | Height: | Size: 627 B |
BIN
player_textures/textures/player_sdzen.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
player_textures/textures/player_shadowzone.png
Normal file
After Width: | Height: | Size: 268 KiB |