From c6f72c473f42faaa8a73e0ad750ca86d86bd8c64 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Sat, 26 Feb 2022 22:12:26 +0100 Subject: [PATCH] make eggs activate target --- mods/ITEMS/mcl_throwing/register.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/ITEMS/mcl_throwing/register.lua b/mods/ITEMS/mcl_throwing/register.lua index b4a535b175..0bfcffc7ba 100644 --- a/mods/ITEMS/mcl_throwing/register.lua +++ b/mods/ITEMS/mcl_throwing/register.lua @@ -177,6 +177,9 @@ local function egg_on_step(self, dtime) end minetest.sound_play("mcl_throwing_egg_impact", { pos = self.object:get_pos(), max_hear_distance=10, gain=0.5 }, true) self.object:remove() + if mod_target and node.name == "mcl_target:target_off" then + mcl_target.hit(vector.round(pos), 0.4) --4 redstone ticks + end return end end