1
0
mirror of https://github.com/HybridDog/builtin_item.git synced 2024-12-22 17:00:27 +01:00

add smoke

This commit is contained in:
HybridDog 2015-04-09 22:31:21 +02:00
parent 3ba5c899cb
commit f43e39bbdf

View File

@ -84,6 +84,18 @@ item_entity.on_step = function(self, dtime)
if name == "default:lava_flowing" if name == "default:lava_flowing"
or name == "default:lava_source" then or name == "default:lava_source" then
minetest.sound_play("builtin_item_lava", {pos=p}) minetest.sound_play("builtin_item_lava", {pos=p})
minetest.add_particlespawner({
amount = 3,
time = 0.1,
minpos = {x=p.x, y=p.y, z=p.z},
maxpos = {x=p.x, y=p.y+0.2, z=p.z},
minacc = {x=-0.5,y=5,z=-0.5},
maxacc = {x=0.5,y=5,z=0.5},
minexptime = 0.1,
minsize = 2,
maxsize = 4,
texture = "smoke_puff.png"
})
minetest.add_particlespawner ({ minetest.add_particlespawner ({
amount = 1, time = 0.4, amount = 1, time = 0.4,
minpos = {x = p.x, y= p.y + 0.25, z= p.z}, minpos = {x = p.x, y= p.y + 0.25, z= p.z},