mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-01 14:17:29 +01:00
Slight vl_fireworks reorganisation
This commit is contained in:
parent
9365fb68d3
commit
36b8689bf4
@ -1,6 +1,6 @@
|
||||
Firework mod for VoxeLibre
|
||||
|
||||
by NO11 and and some parts by j45
|
||||
by Herowl and teknomunk, based on the old version by NO11 and j45
|
||||
|
||||
Sound credits:
|
||||
|
||||
|
@ -2,12 +2,12 @@ local path = minetest.get_modpath("vl_fireworks")
|
||||
|
||||
vl_fireworks = {}
|
||||
|
||||
function vl_fireworks.generic_particle_explosion(pos)
|
||||
function vl_fireworks.generic_particle_explosion(pos, size)
|
||||
if pos.object then pos = pos.object:get_pos() end
|
||||
local particle_pattern = math.random(1, 3)
|
||||
local fpitch
|
||||
local type = math.random(1, 2)
|
||||
local size = math.random(1, 3)
|
||||
local size = size or math.random(1, 3)
|
||||
local colors = {"red", "yellow", "blue", "green", "white"}
|
||||
local this_colors = {colors[math.random(#colors)], colors[math.random(#colors)], colors[math.random(#colors)]}
|
||||
|
||||
@ -189,5 +189,6 @@ function vl_fireworks.generic_particle_explosion(pos)
|
||||
return size
|
||||
end
|
||||
|
||||
dofile(path .. "/register.lua")
|
||||
dofile(path .. "/star.lua")
|
||||
dofile(path .. "/rockets.lua")
|
||||
dofile(path .. "/crafting.lua")
|
||||
|
1
mods/ITEMS/vl_fireworks/star.lua
Normal file
1
mods/ITEMS/vl_fireworks/star.lua
Normal file
@ -0,0 +1 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
Loading…
Reference in New Issue
Block a user