mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-05 01:40:39 +02:00
adding achievements! Almost all untested yet.
This commit is contained in:
@ -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
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user