forked from VoxeLibre/VoxeLibre
Tweak crying obsidian particles
This commit is contained in:
parent
b08a79b070
commit
27a945b8f3
|
@ -1702,40 +1702,64 @@ end
|
|||
|
||||
-- Obsidian crying
|
||||
|
||||
local crying_obsidian_tears = {
|
||||
"mcl_core_crying_obsidian_tear.png",
|
||||
"mcl_core_crying_obsidian_tear2.png",
|
||||
"mcl_core_crying_obsidian_tear3.png"
|
||||
}
|
||||
|
||||
local psdef = {
|
||||
amount = 10,
|
||||
amount = 1,
|
||||
time = 0.9, --everything longer than 1 is a coord exploit
|
||||
minvel = vector.new(0,-0.15,0),
|
||||
maxvel = vector.new(0,-0.001,0),
|
||||
minacc = vector.new(0,-0.1,0),
|
||||
maxacc = vector.new(0,-0.001,0),
|
||||
minvel = vector.new(0,-2,0),
|
||||
maxvel = vector.new(0,-0.5,0),
|
||||
minacc = vector.new(0,-10,0),
|
||||
maxacc = vector.new(0,-8,0),
|
||||
minexptime = 1,
|
||||
maxexptime = 6,
|
||||
minsize = 0.1,
|
||||
maxsize = 0.25,
|
||||
minsize = 1.5,
|
||||
maxsize = 2,
|
||||
collisiondetection = true,
|
||||
collision_removal = true,
|
||||
object_collision = true,
|
||||
vertical = true,
|
||||
texture = "mcl_core_crying_obsidian_tear.png",
|
||||
}
|
||||
local psdef2 = {
|
||||
amount = 1,
|
||||
time = 0.9, --everything longer than 1 is a coord exploit
|
||||
minvel = vector.new(0,-0.01,0),
|
||||
maxvel = vector.new(0,-0.005,0),
|
||||
minacc = vector.new(0,-0.1,0),
|
||||
maxacc = vector.new(0,-0.01,0),
|
||||
minexptime = 2,
|
||||
maxexptime = 3,
|
||||
minsize = 0.3,
|
||||
maxsize = 0.6,
|
||||
collisiondetection = true,
|
||||
collision_removal = true,
|
||||
object_collision = true,
|
||||
vertical = true,
|
||||
texture = "mcl_core_crying_obsidian_tear.png",
|
||||
}
|
||||
|
||||
minetest.register_abm({
|
||||
label = "Obsidian cries",
|
||||
nodenames = {"mcl_core:crying_obsidian"},
|
||||
interval = 60,
|
||||
interval = 5,
|
||||
chance = 10,
|
||||
action = function(pos, node)
|
||||
minetest.after(math.random(0.1,1.5),function()
|
||||
psdef.minpos = vector.offset(pos,-0.6,-0.51,-0.6)
|
||||
psdef.maxpos = vector.offset(pos,0.6,-0.51,0.6)
|
||||
for _,t in pairs(crying_obsidian_tears) do
|
||||
psdef.texture = t
|
||||
psdef.maxpos = vector.offset(pos,0.6,0.51,0.6)
|
||||
minetest.add_particlespawner(psdef)
|
||||
end
|
||||
psdef2.minpos = vector.offset(pos,-0.55,-0.51,-0.55)
|
||||
psdef2.maxpos = vector.offset(pos,-0.5,0.51,-0.5)
|
||||
minetest.add_particlespawner(psdef2)
|
||||
psdef2.minpos = vector.offset(pos,0.55,-0.51,-0.55)
|
||||
psdef2.maxpos = vector.offset(pos,0.5,0.51,-0.5)
|
||||
minetest.add_particlespawner(psdef2)
|
||||
psdef2.minpos = vector.offset(pos,0.55,-0.51,0.55)
|
||||
psdef2.maxpos = vector.offset(pos,0.5,0.51,0.5)
|
||||
minetest.add_particlespawner(psdef2)
|
||||
psdef2.minpos = vector.offset(pos,-0.55,-0.51,0.55)
|
||||
psdef2.maxpos = vector.offset(pos,-0.5,0.51,0.5)
|
||||
minetest.add_particlespawner(psdef2)
|
||||
|
||||
end)
|
||||
end
|
||||
})
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 91 B After Width: | Height: | Size: 378 B |
Loading…
Reference in New Issue