Move potion particles to mcl_particles
This commit is contained in:
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 |
BIN
mods/CORE/mcl_particles/textures/mcl_particles_effect.png
Normal file
BIN
mods/CORE/mcl_particles/textures/mcl_particles_effect.png
Normal file
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 texture
|
||||
if vals.is_water then
|
||||
texture = "mcl_potions_droplet.png"
|
||||
texture = "mcl_particles_droplet_bottle.png"
|
||||
else
|
||||
texture = "mcl_potions_sprite.png"
|
||||
texture = "mcl_particles_effect.png"
|
||||
end
|
||||
minetest.add_particlespawner({
|
||||
amount = 10 * d^2,
|
||||
@ -141,11 +141,11 @@ minetest.register_entity(id.."_flying",{
|
||||
add_lingering_effect(pos, color, def, name == "water")
|
||||
local texture, minacc, maxacc
|
||||
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}
|
||||
maxacc = {x=0.2, y=0.05, z=0.2}
|
||||
else
|
||||
texture = "mcl_potions_sprite.png"
|
||||
texture = "mcl_particles_effect.png"
|
||||
minacc = {x=-0.2, y=0, z=-0.2}
|
||||
maxacc = {x=0.2, y=.05, z=0.2}
|
||||
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})
|
||||
local texture, acc
|
||||
if name == "water" then
|
||||
texture = "mcl_potions_droplet.png"
|
||||
texture = "mcl_particles_droplet_bottle.png"
|
||||
acc = {x=0, y=-GRAVITY, z=0}
|
||||
else
|
||||
texture = "mcl_potions_sprite.png"
|
||||
texture = "mcl_particles_effect.png"
|
||||
acc = {x=0, y=0, z=0}
|
||||
end
|
||||
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
Block a user