diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-22 17:02:40 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-22 17:02:40 +0200 |
commit | fbc22f91d511b961b4fbf605b7d8e1b07a7c0e06 (patch) | |
tree | 7cdf4197dc91e2c4893340a2a3e3793332bbc5a5 /doc/lua_api.txt | |
parent | 424b36d469e99d5d1bd9bb136477d0dc442376dd (diff) | |
download | minetest-fbc22f91d511b961b4fbf605b7d8e1b07a7c0e06.tar.gz minetest-fbc22f91d511b961b4fbf605b7d8e1b07a7c0e06.tar.bz2 minetest-fbc22f91d511b961b4fbf605b7d8e1b07a7c0e06.zip |
Update doc/lua_api.txt and doc/mapformat.txt even more
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 1fbf7320d..60bc49304 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -145,13 +145,13 @@ Currently the API does not provide any helper functions for addition, subtraction and whatever; you can define those that you need yourself. stackstring/itemstring: A stack of items in serialized format. -eg. 'node "default:dirt" 5' -eg. 'tool "default:pick_wood" 21323' -eg. 'craft "default:apple" 2' +eg. 'default:dirt 5' +eg. 'default:pick_wood 21323' +eg. 'default:apple' item: A stack of items in Lua table format. -eg. {name="default:dirt", count=1, wear=0, metadata=""} - ^ a single dirt node +eg. {name="default:dirt", count=5, wear=0, metadata=""} + ^ 5 dirt nodes eg. {name="default:pick_wood", count=1, wear=21323, metadata=""} ^ a wooden pick about 1/3 weared out eg. {name="default:apple", count=1, wear=0, metadata=""} |