Add abm.lua with Sweet Berry Bushes

This commit is contained in:
TechDudie 2021-03-25 19:00:49 +00:00
parent 33494e4282
commit 299df834a7
1 changed files with 18 additions and 0 deletions

18
abm.lua Normal file
View File

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