Add files via upload
parent
8f0f6d44f4
commit
5c76bd51e9
|
@ -0,0 +1,11 @@
|
|||
|
||||
local min_time = minetest.setting_get("fast_trees_min_time") or 60
|
||||
local max_time = minetest.setting_get("fast_trees_max_time") or 3600
|
||||
|
||||
|
||||
minetest.override_item("default:sapling", { on_construct = function(pos) minetest.get_node_timer(pos):start(math.random(min_time,max_time)) end })
|
||||
minetest.override_item("default:junglesapling", { on_construct = function(pos) minetest.get_node_timer(pos):start(math.random(min_time,max_time)) end })
|
||||
minetest.override_item("default:pine_sapling", { on_construct = function(pos) minetest.get_node_timer(pos):start(math.random(min_time,max_time)) end })
|
||||
minetest.override_item("default:acacia_sapling", { on_construct = function(pos) minetest.get_node_timer(pos):start(math.random(min_time,max_time)) end })
|
||||
minetest.override_item("default:aspen_sapling", { on_construct = function(pos) minetest.get_node_timer(pos):start(math.random(min_time,max_time)) end })
|
||||
|
Loading…
Reference in New Issue