1 -- Minetest 0.4 mod: player
2 -- See README.txt for licensing and other information.
4 -- The API documentation in here was moved into doc/lua_api.txt
6 -- Set mesh for all players
7 function switch_player_visual()
10 textures = {"player.png", },
12 visual_size={x=1, y=1},
14 for _, obj in pairs(minetest.get_connected_players()) do
15 obj:set_properties(prop)
17 minetest.after(1.0, switch_player_visual)
19 minetest.after(1.0, switch_player_visual)
21 -- Definitions made by this mod that other mods can use too
25 dofile(minetest.get_modpath("default").."/mapgen.lua")
26 dofile(minetest.get_modpath("default").."/leafdecay.lua")