From 299df834a76fb3314eb8d8ce57e8e45322d1d9ce Mon Sep 17 00:00:00 2001 From: TechDudie Date: Thu, 25 Mar 2021 19:00:49 +0000 Subject: [PATCH] Add abm.lua with Sweet Berry Bushes --- abm.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 abm.lua diff --git a/abm.lua b/abm.lua new file mode 100644 index 0000000..66ab09d --- /dev/null +++ b/abm.lua @@ -0,0 +1,18 @@ +minetest.register_abm({ + nodenames = {"mc:sweet_berry_bush_0"}, + interval = 10.0, + chance = 16, + action = function(pos, node, active_object_count, active_object_count_wider) minetest.set_node(pos, {name = "mc:sweet_berry_bush_1"}) end +}) +minetest.register_abm({ + nodenames = {"mc:sweet_berry_bush_1"}, + interval = 10.0, + chance = 16, + action = function(pos, node, active_object_count, active_object_count_wider) minetest.set_node(pos, {name = "mc:sweet_berry_bush_2"}) end +}) +minetest.register_abm({ + nodenames = {"mc:sweet_berry_bush_2"}, + interval = 10.0, + chance = 16, + action = function(pos, node, active_object_count, active_object_count_wider) minetest.set_node(pos, {name = "mc:sweet_berry_bush_3"}) end +}) \ No newline at end of file