diff --git a/mods/robocops/init.lua b/mods/robocops/init.lua index c1280a2..bb2df51 100644 --- a/mods/robocops/init.lua +++ b/mods/robocops/init.lua @@ -1,3 +1,12 @@ +minetest.register_abm({ + nodenames = {"poop:poop"}, + interval = 10, + chance = 50, + action = function(pos, node, active_object_count, active_object_count_wider) + minetest.add_entity(pos, "robocops:robocop") + end +}) + mobs:register_mob("robocops:robocop", { type = "monster", passive = false,