Update Trees and small fix
This commit is contained in:
parent
b115ff6154
commit
9d2e5872e7
@ -212,15 +212,29 @@ core.register_entity(":__builtin:item", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local nn = node and node.name or ""
|
if minetest.get_item_group(node.name, "lava") > 0 then
|
||||||
if nn == "default:lava_flowing" or nn == "default:lava_source" then
|
|
||||||
minetest.sound_play("default_cool_lava", {
|
minetest.sound_play("default_cool_lava", {
|
||||||
pos=self.object:getpos(),
|
pos = self.object:get_pos(),
|
||||||
max_hear_distance = 6,
|
max_hear_distance = 8,
|
||||||
gain = 0.5
|
|
||||||
})
|
})
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
return
|
return
|
||||||
|
minetest.add_particlespawner({
|
||||||
|
amount = 3,
|
||||||
|
time = 0.1,
|
||||||
|
minpos = {x = p.x - 0.1, y = p.y + 0.1, z = p.z - 0.1 },
|
||||||
|
maxpos = {x = p.x + 0.1, y = p.y + 0.2, z = p.z + 0.1 },
|
||||||
|
minvel = {x = 0, y = 2.5, z = 0},
|
||||||
|
maxvel = {x = 0, y = 2.5, z = 0},
|
||||||
|
minacc = {x = -0.15, y = -0.02, z = -0.15},
|
||||||
|
maxacc = {x = 0.15, y = -0.01, z = 0.15},
|
||||||
|
minexptime = 4,
|
||||||
|
maxexptime = 6,
|
||||||
|
minsize = 2,
|
||||||
|
maxsize = 4,
|
||||||
|
collisiondetection = true,
|
||||||
|
texture = "item_smoke.png"
|
||||||
|
})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user