aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonBatman <serfdon@gmail.com>2016-08-14 04:40:31 -0700
committerparamat <mat.gregory@virginmedia.com>2016-08-14 16:41:06 +0100
commit986d70ccecb09fcbd247758643a4d623c9c4e1b8 (patch)
treeacdb7fbed9eb0887152e4e66107225bfaf9e8856
parentf21dae63390aa872062bcfc96fc6817b0fcfe601 (diff)
downloadminetest-986d70ccecb09fcbd247758643a4d623c9c4e1b8.tar.gz
minetest-986d70ccecb09fcbd247758643a4d623c9c4e1b8.tar.bz2
minetest-986d70ccecb09fcbd247758643a4d623c9c4e1b8.zip
Lua_api.txt: Change 'maxwear' to 'uses' in 'tool_capabilities'
'maxwear' has been deprecated for over 3 years Add spaces around '=' nearby
-rw-r--r--doc/lua_api.txt21
1 files changed, 10 insertions, 11 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 182f5c821..38f19aadc 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3472,27 +3472,26 @@ Definition tables
{
description = "Steel Axe",
- groups = {}, -- key=name, value=rating; rating=1..3.
+ groups = {}, -- key = name, value = rating; rating = 1..3.
if rating not applicable, use 1.
- e.g. {wool=1, fluffy=3}
- {soil=2, outerspace=1, crumbly=1}
- {bendy=2, snappy=1},
- {hard=1, metal=1, spikes=1}
+ e.g. {wool = 1, fluffy = 3}
+ {soil = 2, outerspace = 1, crumbly = 1}
+ {bendy = 2, snappy = 1},
+ {hard = 1, metal = 1, spikes = 1}
inventory_image = "default_tool_steelaxe.png",
wield_image = "",
- wield_scale = {x=1,y=1,z=1},
+ wield_scale = {x = 1, y = 1, z = 1},
stack_max = 99,
range = 4.0,
liquids_pointable = false,
tool_capabilities = {
full_punch_interval = 1.0,
- max_drop_level=0,
- groupcaps={
+ max_drop_level = 0,
+ groupcaps = {
-- For example:
- snappy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
- choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0}
+ choppy = {times = {[1] = 2.50, [2] = 1.40, [3] = 1.00}, uses = 20, maxlevel = 2},
},
- damage_groups = {groupname=damage},
+ damage_groups = {groupname = damage},
},
node_placement_prediction = nil,
--[[