1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-22 16:10:18 +01:00

use four randomly-chosen smoke textures derived from real smoke,

also widen the particle size range
makes for a much more varied smoke pattern
This commit is contained in:
Vanessa Ezekowitz 2014-07-28 19:26:01 -04:00
parent 375a5701c9
commit c9133337a2
6 changed files with 3 additions and 2 deletions

View File

@ -57,6 +57,7 @@ minetest.register_abm({
interval = 1, interval = 1,
chance = 2, chance = 2,
action = function(pos, node) action = function(pos, node)
local image_number = math.random(4)
minetest.add_particlespawner( minetest.add_particlespawner(
8, --particles amount 8, --particles amount
1, --time 1, --time
@ -68,10 +69,10 @@ minetest.register_abm({
{x=0,y=0,z=0}, --max. particle acceleration {x=0,y=0,z=0}, --max. particle acceleration
0.5, --min. time particle expiration 0.5, --min. time particle expiration
3, --max. time particle expiration 3, --max. time particle expiration
8, --min. particle size 2, --min. particle size
10, --max. particle size 10, --max. particle size
false, --collision detection false, --collision detection
"smoke_particle.png" --textures "smoke_particle_"..image_number..".png" --textures
) )
end, end,
}) })

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 B