From: PilzAdam Date: Sat, 6 Dec 2014 10:01:18 +0000 (+0100) Subject: Move leafdecay doc to game_api.txt X-Git-Tag: 0.4.11~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2c2edfad044fdc4b747931cade5a400d6c1b08f1;p=oweals%2Fminetest_game.git Move leafdecay doc to game_api.txt --- diff --git a/game_api.txt b/game_api.txt index 1ad618dc..9052e2ae 100644 --- a/game_api.txt +++ b/game_api.txt @@ -195,3 +195,16 @@ Model Definition -- ... }, } + +Leafdecay +--------- +To enable leaf decay for a node, add it to the "leafdecay" group. + +The rating of the group determines how far from a node in the group "tree" +the node can be without decaying. + +If param2 of the node is ~= 0, the node will always be preserved. Thus, if +the player places a node of that kind, you will want to set param2=1 or so. + +If the node is in the leafdecay_drop group then it will always be dropped as an +item. diff --git a/mods/default/functions.lua b/mods/default/functions.lua index be1a4cf8..630cdbdb 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -233,17 +233,6 @@ end -- Leafdecay -- --- To enable leaf decay for a node, add it to the "leafdecay" group. --- --- The rating of the group determines how far from a node in the group "tree" --- the node can be without decaying. --- --- If param2 of the node is ~= 0, the node will always be preserved. Thus, if --- the player places a node of that kind, you will want to set param2=1 or so. --- --- If the node is in the leafdecay_drop group then the it will always be dropped --- as an item - default.leafdecay_trunk_cache = {} default.leafdecay_enable_cache = true -- Spread the load of finding trunks