From 7e219419e0f05adebb32c5c80d0d734eadcf44bd Mon Sep 17 00:00:00 2001 From: Migdyn Date: Mon, 21 Nov 2022 19:14:18 -0500 Subject: [PATCH] Added Robocop ABM --- mods/robocops/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) 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,