mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-13 05:50:41 +01:00
add blue particle effects
This commit is contained in:
parent
8ab47b2c78
commit
c0e05dbc86
25
technic/effects.lua
Normal file
25
technic/effects.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"technic:hv_nuclear_reactor_core_active"},
|
||||
interval = 10,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
minetest.add_particlespawner({
|
||||
amount = 50,
|
||||
time = 10,
|
||||
minpos = {x=pos.x-0.5, y=pos.y-0.5, z=pos.z-0.5},
|
||||
maxpos = {x=pos.x+0.5, y=pos.y+0.5, z=pos.z+0.5},
|
||||
minvel = {x=-0.8, y=-0.8, z=-0.8},
|
||||
maxvel = {x=0.8, y=0.8, z=0.8},
|
||||
minacc = {x=0,y=0,z=0},
|
||||
maxacc = {x=0,y=0,z=0},
|
||||
minexptime = 0.5,
|
||||
maxexptime = 2,
|
||||
minsize = 1,
|
||||
maxsize = 2,
|
||||
texture = "blueparticle.png",
|
||||
glow = 5
|
||||
})
|
||||
end
|
||||
})
|
|
@ -47,6 +47,9 @@ dofile(modpath.."/tools/init.lua")
|
|||
-- Aliases for legacy node/item names
|
||||
dofile(modpath.."/legacy.lua")
|
||||
|
||||
-- visual effects
|
||||
dofile(modpath.."/effects.lua")
|
||||
|
||||
if minetest.settings:get_bool("log_mods") then
|
||||
print(S("[Technic] Loaded in %f seconds"):format(os.clock() - load_start))
|
||||
end
|
||||
|
|
BIN
technic/textures/blueparticle.png
Normal file
BIN
technic/textures/blueparticle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 225 B |
Loading…
Reference in New Issue
Block a user