Offset smoke a bit

This commit is contained in:
PrairieWind 2023-07-03 12:41:53 -06:00 committed by ancientmarinerdev
parent f9afc74077
commit 107420c80f
2 changed files with 3 additions and 2 deletions

View file

@ -320,7 +320,7 @@ function mcl_campfires.generate_smoke(pos, haybale)
end end
minetest.add_particle({ 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), velocity = vector.new(0, 1, 0),
texture = "mcl_particles_smoke.png", texture = "mcl_particles_smoke.png",
size = 10, size = 10,

View file

@ -1,7 +1,8 @@
-- TO-DO: -- TO-DO:
-- * Add Smoke Particles
-- * Add Spark Particles -- * Add Spark Particles
-- * Add Working Sounds -- * 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()) local modname = minetest.get_modpath(minetest.get_current_modname())
dofile(modname.."/api.lua") -- Load API File dofile(modname.."/api.lua") -- Load API File