lava particles.
This commit is contained in:
parent
7160c96300
commit
403458ac1b
10
abms.lua
10
abms.lua
@ -127,8 +127,7 @@ minetest.register_abm({ --smoke for embers
|
||||
interval = 1,
|
||||
chance = 2,
|
||||
action = function(pos, node)
|
||||
if minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z}).name == 'air'
|
||||
and minetest.get_node({x=pos.x, y=pos.y+2.0, z=pos.z}).name == 'air' then
|
||||
if minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z}).name == 'air' then
|
||||
smoke_particles(pos)
|
||||
end
|
||||
end
|
||||
@ -139,8 +138,7 @@ minetest.register_abm({ --embers for fire
|
||||
interval = 1,
|
||||
chance = 2,
|
||||
action = function(pos, node)
|
||||
if minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z}).name == 'air'
|
||||
and minetest.get_node({x=pos.x, y=pos.y+2.0, z=pos.z}).name == 'air' then
|
||||
if minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z}).name == 'air' then
|
||||
ember_particles(pos)
|
||||
end
|
||||
end
|
||||
@ -148,8 +146,8 @@ minetest.register_abm({ --embers for fire
|
||||
|
||||
minetest.register_abm({ --lava
|
||||
nodenames = {'default:lava_source', 'default:lava_flowing'},
|
||||
interval = 3,
|
||||
chance = 7,
|
||||
interval = 4,
|
||||
chance = 15,
|
||||
action = function(pos, node)
|
||||
if minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z}).name == 'air' then
|
||||
lava_particles(pos)
|
||||
|
@ -88,18 +88,18 @@ function lava_particles(pos)
|
||||
minetest.add_particlespawner({
|
||||
amount = 2,
|
||||
time = 1,
|
||||
minpos = {x=pos.x, y=pos.y, z=pos.z},
|
||||
minpos = {x=pos.x, y=pos.y-.5, z=pos.z},
|
||||
maxpos = {x=pos.x, y=pos.y, z=pos.z},
|
||||
minvel = {x=-.4, y=.2, z=-.4},
|
||||
maxvel = {x=.6, y=1, z=.6},
|
||||
minacc = {x=-.3, y=.2, z=-.3},
|
||||
maxacc = {x=.3, y=.6, z=.3},
|
||||
minvel = {x=-.4, y=1, z=-.4},
|
||||
maxvel = {x=.4, y=1.5, z=.4},
|
||||
minacc = {x=-.4, y=1, z=-.4},
|
||||
maxacc = {x=.4, y=1.5, z=.4},
|
||||
minexptime = 1,
|
||||
maxexptime = 2,
|
||||
minsize = .4,
|
||||
maxexptime = 1.5,
|
||||
minsize = .6,
|
||||
maxsize = 2,
|
||||
collisiondetection = false,
|
||||
texture = 'default_lava.png',
|
||||
texture = 'more_fire_lava_blob.png',
|
||||
vertical = false,
|
||||
-- playername = 'singleplayer',
|
||||
})
|
||||
|
BIN
textures/more_fire_lava_blob.png
Normal file
BIN
textures/more_fire_lava_blob.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 638 B |
Loading…
x
Reference in New Issue
Block a user