summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2018-08-15 21:35:38 +0200
committerParamat <paramat@users.noreply.github.com>2018-08-15 20:35:38 +0100
commit798724efeab2d71da4f041be99de86baa3d3cdd5 (patch)
treeaed2403102a7ae36233077de04338fee5275e842 /doc/lua_api.txt
parent28a3c4963e0f4b5c82762432a3b10db1070cf012 (diff)
downloadminetest-798724efeab2d71da4f041be99de86baa3d3cdd5.tar.gz
minetest-798724efeab2d71da4f041be99de86baa3d3cdd5.tar.bz2
minetest-798724efeab2d71da4f041be99de86baa3d3cdd5.zip
lua_api.txt: Refine 'Item types' for 4e2eeee (#7648)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index a8e843878..0c331577b 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1365,16 +1365,15 @@ Item types
There are three kinds of items: nodes, tools and craftitems.
-* Node: An item that can be placed in the world as a node.
-* Tool: An item that can be worn out and repaired, cannot be stacked, and often
- digs or deals damage.
-* Craftitem: A general purpose item that can be used in crafting recipes, eaten,
- dropped, or used on things in the world.
+* Node: Can be placed in the world's voxel grid
+* Tool: Has a wear property but cannot be stacked. The default use action is to
+ dig nodes or hit objects according to its tool capabilities.
+* Craftitem: Cannot dig nodes or be placed
Amount and wear
---------------
-All item stacks have an amount between 0 to 65535. It is 1 by
+All item stacks have an amount between 0 and 65535. It is 1 by
default. Tool item stacks can not have an amount greater than 1.
Tools use a wear (damage) value ranging from 0 to 65535. The