master
crazyginger72 2014-08-23 22:31:12 -04:00
parent 6023d5bcd4
commit 8aff620780
2 changed files with 2 additions and 9 deletions

View File

@ -202,8 +202,8 @@ minetest.register_abm({
minetest.register_abm({
nodenames = {"default:acaciasapling"},
interval = 1,--10,
chance = 1,--35,
interval = 10,
chance = 35,
action = function(pos, node)
local nu = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name
local is_sand = minetest.get_item_group(nu, "sand")

View File

@ -97,8 +97,6 @@ function default.grow_acaciatree(data, a, pos, seed) --watershed_acaciatree(x, y
local c_actree = minetest.get_content_id("default:acaciatree_gen") --trunk
local c_actree2 = minetest.get_content_id("default:acaciatree_t") --limbs
local c_acleaf = minetest.get_content_id("default:acacialeaves") --leaves
local t1 = os.clock()
for trys = 0, 10000 do
local xa = pos.x
local ya = pos.y
local za = pos.z
@ -188,9 +186,4 @@ for j = -3, 9 do --j is the y axis level of the tree
end
end
end
end
print("10,000 in "..os.clock()-t1)
end