Firework texture.

This commit is contained in:
Duane 2016-07-04 01:09:09 -05:00
parent ededbd5a78
commit 2248d65591
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ local function firework()
sky.bgcolor, sky.type, sky.textures = players[i]:get_sky()
ps[#ps+1] = { p = players[i], sky = sky }
--players[i]:set_sky(0xffffff, "plain", {})
players[i]:set_sky('#000000', 'skybox', {'fun_caves_firework_'..math.random(2)..'.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png'})
players[i]:set_sky('#000000', 'skybox', {'fun_caves_firework_'..math.random(3)..'.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png'})
end
end
minetest.sound_play("fireworks", {gain = 1, pos = pp, max_hear_distance = 2})
@ -102,7 +102,7 @@ minetest.register_globalstep(function(dtime)
out:close()
end
if fun_caves.date and fun_caves.date[2] == 7 and fun_caves.date[3] == 3 and math.random(30) == 1 then
if fun_caves.date and fun_caves.date[2] == 7 and fun_caves.date[3] == 4 and math.random(30) == 1 then
firework()
end