From 107420c80fe0e04eaa05b92516973f7d305b6ca8 Mon Sep 17 00:00:00 2001 From: PrairieWind Date: Mon, 3 Jul 2023 12:41:53 -0600 Subject: [PATCH] Offset smoke a bit --- mods/ITEMS/mcl_campfires/api.lua | 2 +- mods/ITEMS/mcl_campfires/init.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_campfires/api.lua b/mods/ITEMS/mcl_campfires/api.lua index 9dd5540d2..f60aca327 100644 --- a/mods/ITEMS/mcl_campfires/api.lua +++ b/mods/ITEMS/mcl_campfires/api.lua @@ -320,7 +320,7 @@ function mcl_campfires.generate_smoke(pos, haybale) end minetest.add_particle({ - pos = pos, + pos = vector.offset(pos, math.random(-0.5, 0.5), 0, math.random(-0.5, 0.5)), velocity = vector.new(0, 1, 0), texture = "mcl_particles_smoke.png", size = 10, diff --git a/mods/ITEMS/mcl_campfires/init.lua b/mods/ITEMS/mcl_campfires/init.lua index cee898d0e..701fd6095 100644 --- a/mods/ITEMS/mcl_campfires/init.lua +++ b/mods/ITEMS/mcl_campfires/init.lua @@ -1,7 +1,8 @@ -- TO-DO: --- * Add Smoke Particles -- * Add Spark Particles -- * Add Working Sounds +-- * Waterlogging (needs engine change) +-- * Fix the mob damage when mobs go back to burning again local modname = minetest.get_modpath(minetest.get_current_modname()) dofile(modname.."/api.lua") -- Load API File