forked from VoxeLibre/VoxeLibre
Use add_particle instead of minetest.add_particlespawner for elytra rocket particles
This commit is contained in:
parent
e11dc4b58e
commit
eafb1a2797
|
@ -189,22 +189,15 @@ minetest.register_globalstep(function(dtime)
|
||||||
if vector.length(player_velocity) < 40 then
|
if vector.length(player_velocity) < 40 then
|
||||||
local add_velocity = player.add_velocity or player.add_player_velocity
|
local add_velocity = player.add_velocity or player.add_player_velocity
|
||||||
add_velocity(player, vector.multiply(player:get_look_dir(), 4))
|
add_velocity(player, vector.multiply(player:get_look_dir(), 4))
|
||||||
minetest.add_particlespawner({
|
add_particle({
|
||||||
amount = 1,
|
pos = fly_pos,
|
||||||
time = 0.1,
|
velocity = {x = 0, y = 0, z = 0},
|
||||||
minpos = fly_pos,
|
acceleration = {x = 0, y = 0, z = 0},
|
||||||
maxpos = fly_pos,
|
expirationtime = math.random(0.3, 0.5),
|
||||||
minvel = {x = 0, y = 0, z = 0},
|
size = math.random(1, 2),
|
||||||
maxvel = {x = 0, y = 0, z = 0},
|
|
||||||
minacc = {x = 0, y = 0, z = 0},
|
|
||||||
maxacc = {x = 0, y = 0, z = 0},
|
|
||||||
minexptime = 0.3,
|
|
||||||
maxexptime = 0.5,
|
|
||||||
minsize = 1,
|
|
||||||
maxsize = 2.5,
|
|
||||||
collisiondetection = false,
|
collisiondetection = false,
|
||||||
vertical = false,
|
vertical = false,
|
||||||
texture = "mcl_particles_crit.png^[colorize:#bc7a57:127",
|
texture = "mcl_particles_bonemeal.png^[colorize:#bc7a57:127",
|
||||||
glow = 5,
|
glow = 5,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue