testing last-played-stone smoke effect, based on experimental function added to nodecore

pull/5/head
capitalthree 1 year ago
parent 625b3e9fa1
commit 300ec81e08
  1. 10
      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

Loading…
Cancel
Save