Skip to content

Commit 2c2edfa

Browse files
committedDec 6, 2014
Move leafdecay doc to game_api.txt
1 parent 22dd46d commit 2c2edfa

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed
 

‎game_api.txt

+13
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,16 @@ Model Definition
195195
-- ...
196196
},
197197
}
198+
199+
Leafdecay
200+
---------
201+
To enable leaf decay for a node, add it to the "leafdecay" group.
202+
203+
The rating of the group determines how far from a node in the group "tree"
204+
the node can be without decaying.
205+
206+
If param2 of the node is ~= 0, the node will always be preserved. Thus, if
207+
the player places a node of that kind, you will want to set param2=1 or so.
208+
209+
If the node is in the leafdecay_drop group then it will always be dropped as an
210+
item.

‎mods/default/functions.lua

-11
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,6 @@ end
233233
-- Leafdecay
234234
--
235235

236-
-- To enable leaf decay for a node, add it to the "leafdecay" group.
237-
--
238-
-- The rating of the group determines how far from a node in the group "tree"
239-
-- the node can be without decaying.
240-
--
241-
-- If param2 of the node is ~= 0, the node will always be preserved. Thus, if
242-
-- the player places a node of that kind, you will want to set param2=1 or so.
243-
--
244-
-- If the node is in the leafdecay_drop group then the it will always be dropped
245-
-- as an item
246-
247236
default.leafdecay_trunk_cache = {}
248237
default.leafdecay_enable_cache = true
249238
-- Spread the load of finding trunks

0 commit comments

Comments
 (0)
Please sign in to comment.