mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +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:
parent
375a5701c9
commit
c9133337a2
@ -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 |
BIN
fake_fire/textures/smoke_particle_1.png
Normal file
BIN
fake_fire/textures/smoke_particle_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 690 B |
BIN
fake_fire/textures/smoke_particle_2.png
Normal file
BIN
fake_fire/textures/smoke_particle_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 647 B |
BIN
fake_fire/textures/smoke_particle_3.png
Normal file
BIN
fake_fire/textures/smoke_particle_3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 678 B |
BIN
fake_fire/textures/smoke_particle_4.png
Normal file
BIN
fake_fire/textures/smoke_particle_4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 674 B |
Loading…
Reference in New Issue
Block a user