Move potion particles to mcl_particles
parent
7f1e90ada9
commit
fa9ce11ddd
Binary file not shown.
Before Width: | Height: | Size: 938 B After Width: | Height: | Size: 126 B |
Binary file not shown.
After Width: | Height: | Size: 164 B |
Binary file not shown.
After Width: | Height: | Size: 137 B |
|
@ -29,9 +29,9 @@ minetest.register_globalstep(function(dtime)
|
||||||
local d = 4 * (vals.timer / 30.0)
|
local d = 4 * (vals.timer / 30.0)
|
||||||
local texture
|
local texture
|
||||||
if vals.is_water then
|
if vals.is_water then
|
||||||
texture = "mcl_potions_droplet.png"
|
texture = "mcl_particles_droplet_bottle.png"
|
||||||
else
|
else
|
||||||
texture = "mcl_potions_sprite.png"
|
texture = "mcl_particles_effect.png"
|
||||||
end
|
end
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
amount = 10 * d^2,
|
amount = 10 * d^2,
|
||||||
|
@ -141,11 +141,11 @@ minetest.register_entity(id.."_flying",{
|
||||||
add_lingering_effect(pos, color, def, name == "water")
|
add_lingering_effect(pos, color, def, name == "water")
|
||||||
local texture, minacc, maxacc
|
local texture, minacc, maxacc
|
||||||
if name == "water" then
|
if name == "water" then
|
||||||
texture = "mcl_potions_droplet.png"
|
texture = "mcl_particles_droplet_bottle.png"
|
||||||
minacc = {x=-0.2, y=-0.05, z=-0.2}
|
minacc = {x=-0.2, y=-0.05, z=-0.2}
|
||||||
maxacc = {x=0.2, y=0.05, z=0.2}
|
maxacc = {x=0.2, y=0.05, z=0.2}
|
||||||
else
|
else
|
||||||
texture = "mcl_potions_sprite.png"
|
texture = "mcl_particles_effect.png"
|
||||||
minacc = {x=-0.2, y=0, z=-0.2}
|
minacc = {x=-0.2, y=0, z=-0.2}
|
||||||
maxacc = {x=0.2, y=.05, z=0.2}
|
maxacc = {x=0.2, y=.05, z=0.2}
|
||||||
end
|
end
|
||||||
|
|
|
@ -68,10 +68,10 @@ function mcl_potions.register_splash(name, descr, color, def)
|
||||||
minetest.sound_play("mcl_potions_breaking_glass", {pos = pos, max_hear_distance = 16, gain = 1})
|
minetest.sound_play("mcl_potions_breaking_glass", {pos = pos, max_hear_distance = 16, gain = 1})
|
||||||
local texture, acc
|
local texture, acc
|
||||||
if name == "water" then
|
if name == "water" then
|
||||||
texture = "mcl_potions_droplet.png"
|
texture = "mcl_particles_droplet_bottle.png"
|
||||||
acc = {x=0, y=-GRAVITY, z=0}
|
acc = {x=0, y=-GRAVITY, z=0}
|
||||||
else
|
else
|
||||||
texture = "mcl_potions_sprite.png"
|
texture = "mcl_particles_effect.png"
|
||||||
acc = {x=0, y=0, z=0}
|
acc = {x=0, y=0, z=0}
|
||||||
end
|
end
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 85 B |
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB |
Loading…
Reference in New Issue