copy all standard Dreambuilder mods in from the old subgame

(exactly as last supplied there, updates to these mods will follow later)
This commit is contained in:
Vanessa Ezekowitz
2016-04-01 20:02:19 -04:00
parent 615b22df4d
commit da66780a56
6453 changed files with 267406 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

27
player_textures/init.lua Normal file
View 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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 879 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB