From 300ec81e0864d3ec5cfe370a09f5a8321e1b2803 Mon Sep 17 00:00:00 2001 From: capitalthree Date: Sat, 25 Nov 2023 07:56:06 -0600 Subject: [PATCH] testing last-played-stone smoke effect, based on experimental function added to nodecore --- rules.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rules.lua b/rules.lua index f0e0534..8ee007a 100644 --- a/rules.lua +++ b/rules.lua @@ -304,6 +304,16 @@ function lc_liberties.handle_placement(pos) local stone = minetest.get_node(pos).name nodecore.set_loud(pos, {name = "air"}) nodecore.item_eject(pos, stone, 5) + else + for x=pos.x-18, pos.x+18 do + for z=pos.z-18, pos.z+18 do + if (x ~= pos.x) or (z ~= pos.z) then + nodecore.smokequell({x = x, y = pos.y, z = z}) + end + end + end + + nodecore.smokefx(pos, 300, 2) end end end