diff --git a/fake_fire/modfiles/abms.lua b/fake_fire/modfiles/abms.lua index 9951ae9..cef987a 100644 --- a/fake_fire/modfiles/abms.lua +++ b/fake_fire/modfiles/abms.lua @@ -57,6 +57,7 @@ minetest.register_abm({ interval = 1, chance = 2, action = function(pos, node) + local image_number = math.random(4) minetest.add_particlespawner( 8, --particles amount 1, --time @@ -68,10 +69,10 @@ minetest.register_abm({ {x=0,y=0,z=0}, --max. particle acceleration 0.5, --min. time particle expiration 3, --max. time particle expiration - 8, --min. particle size + 2, --min. particle size 10, --max. particle size false, --collision detection - "smoke_particle.png" --textures + "smoke_particle_"..image_number..".png" --textures ) end, }) diff --git a/fake_fire/textures/smoke_particle.png b/fake_fire/textures/smoke_particle.png deleted file mode 100644 index dc961dc..0000000 Binary files a/fake_fire/textures/smoke_particle.png and /dev/null differ diff --git a/fake_fire/textures/smoke_particle_1.png b/fake_fire/textures/smoke_particle_1.png new file mode 100644 index 0000000..9605eb2 Binary files /dev/null and b/fake_fire/textures/smoke_particle_1.png differ diff --git a/fake_fire/textures/smoke_particle_2.png b/fake_fire/textures/smoke_particle_2.png new file mode 100644 index 0000000..df57d1e Binary files /dev/null and b/fake_fire/textures/smoke_particle_2.png differ diff --git a/fake_fire/textures/smoke_particle_3.png b/fake_fire/textures/smoke_particle_3.png new file mode 100644 index 0000000..3eb9de8 Binary files /dev/null and b/fake_fire/textures/smoke_particle_3.png differ diff --git a/fake_fire/textures/smoke_particle_4.png b/fake_fire/textures/smoke_particle_4.png new file mode 100644 index 0000000..c6aec12 Binary files /dev/null and b/fake_fire/textures/smoke_particle_4.png differ