diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-04-01 16:06:01 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-04-01 16:06:01 +0300 |
commit | f0e7da8a63d858f3b511872cf41cde0eaff6585d (patch) | |
tree | 5586e6807b2fc442db9ee99191caf38b7b77d207 /doc | |
parent | 5bd32eca0f4c8afa8d933f7d7d1946cabaa8dc43 (diff) | |
download | minetest-f0e7da8a63d858f3b511872cf41cde0eaff6585d.tar.gz minetest-f0e7da8a63d858f3b511872cf41cde0eaff6585d.tar.bz2 minetest-f0e7da8a63d858f3b511872cf41cde0eaff6585d.zip |
Implement dropped items as LuaEntities; leave the old ones as is for compatibility
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 798ea607c..36c004fa3 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -637,15 +637,18 @@ methods: ^ Returns nil for unloaded area - get_node_light(pos, timeofday) -> 0...15 or nil ^ timeofday: nil = current time, 0 = night, 0.5 = day -- add_entity(pos, name): Returns ObjectRef or nil if failed -- add_item(pos, itemstring) -- add_rat(pos) -- add_firefly(pos) +- add_entity(pos, name): Spawn Lua-defined entity at position + ^ Returns ObjectRef, or nil if failed +- add_item(pos, itemstring): Spawn item + ^ Returns ObjectRef, or nil if failed - get_meta(pos) -- Get a NodeMetaRef at that position - get_player_by_name(name) -- Get an ObjectRef to a player - get_objects_inside_radius(pos, radius) - set_timeofday(val): val: 0...1; 0 = midnight, 0.5 = midday - get_timeofday() +Deprecated: +- add_rat(pos): Add C++ rat object (no-op) +- add_firefly(pos): Add C++ firefly object (no-op) NodeMetaRef (this stuff is subject to change in a future version) methods: |