aboutsummaryrefslogtreecommitdiff
path: root/data/mods
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-30 23:38:18 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-30 23:38:18 +0200
commit1b61ca412bc2ceba4a4b7a711a1decea59751657 (patch)
tree7a689eb374d07fafa7feb2246852c1745dea5f27 /data/mods
parentcd563473fa298db3b910009f26ba263bacd84be9 (diff)
downloadminetest-1b61ca412bc2ceba4a4b7a711a1decea59751657.tar.gz
minetest-1b61ca412bc2ceba4a4b7a711a1decea59751657.tar.bz2
minetest-1b61ca412bc2ceba4a4b7a711a1decea59751657.zip
ObjectRef:get_player_name, ObjectRef:inventory_set_list, ObjectRef:inventory_get_list
Diffstat (limited to 'data/mods')
-rw-r--r--data/mods/default/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 5b94a13a0..f04f381c4 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -97,6 +97,10 @@
-- - settexturemod(mod)
-- - setsprite(p={x=0,y=0}, num_frames=1, framelength=0.2,
-- - select_horiz_by_yawpitch=false)
+-- Player-only:
+-- - get_player_name(): will return nil if is not a player
+-- - inventory_set_list(name, {item1, item2, ...})
+-- - inventory_get_list(name)
--
-- Registered entities:
-- - Functions receive a "luaentity" as self: