Add files via upload

master
zing269 2017-06-11 12:03:09 -04:00 committed by GitHub
parent 8f0f6d44f4
commit 5c76bd51e9
1 changed files with 11 additions and 0 deletions

11
init.lua Normal file
View File

@ -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 })