diff --git a/abms.lua b/abms.lua index f882c48..e8cc47f 100644 --- a/abms.lua +++ b/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) diff --git a/functions.lua b/functions.lua index 7485377..e06d8d5 100644 --- a/functions.lua +++ b/functions.lua @@ -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', }) diff --git a/textures/more_fire_lava_blob.png b/textures/more_fire_lava_blob.png new file mode 100644 index 0000000..15bc8ca Binary files /dev/null and b/textures/more_fire_lava_blob.png differ