adding achievements! Almost all untested yet.

This commit is contained in:
FaceDeer
2022-08-18 21:40:45 -06:00
parent 179e113acd
commit d4fb94acfd
53 changed files with 912 additions and 10 deletions

View File

@ -47,6 +47,9 @@ minetest.register_node("df_trees:blood_thorn", {
_mcl_hardness = 1,
on_construct = function(pos)
if not df_trees.blood_thorn_growth_permitted(pos) then
return
end
minetest.get_node_timer(pos):start(math.random(blood_thorn_min_delay, blood_thorn_max_delay))
end,
on_destruct = function(pos)
@ -234,10 +237,6 @@ function df_trees.grow_blood_thorn(pos, node)
return
end
if not df_trees.blood_thorn_growth_permitted(pos) then
return
end
local height = 0
local max_height = max_bloodthorn_height(pos)
while node.name == "df_trees:blood_thorn" and height < max_height do

View File

@ -350,6 +350,7 @@ minetest.register_node("df_trees:tunnel_tube_sapling", {
df_trees.config.tunnel_tube_delay_multiplier*df_trees.config.tree_max_growth_delay))
end
end,
on_destruct = function(pos)
minetest.get_node_timer(pos):stop()
end,