Simultaneous instances of particle spawners possible?

Post Reply
User avatar
ratmix
Member
Posts: 149
Joined: Mon May 01, 2017 19:45
In-game: ratmix
Contact:

Simultaneous instances of particle spawners possible?

by ratmix » Post

Minetest 5.0.0-dev

If I try to place multiple instances of a node which has a particle spawning AMB, only one node emits the particles...

Image

If the fire in the above image is dug, the next in line will emit particles. Also, the node which emits the particles seems to be determined by look direction and player position. I have tried other fire mods including more_fire with the same results. Is this an issue with Minetest 5?
King of the Hill :: Modern Warfare Server RATMIX.COM:30000 | King of the Hill Community Site

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Simultaneous instances of particle spawners possible?

by sofar » Post

Post your code, otherwise it's impossible to debug this.

User avatar
ratmix
Member
Posts: 149
Joined: Mon May 01, 2017 19:45
In-game: ratmix
Contact:

Re: Simultaneous instances of particle spawners possible?

by ratmix » Post

Here's the code...

Code: Select all

minetest.register_abm({
    nodenames = {"fire:basic_flame", "fire:permanent_flame"},
    interval = 1,
    chance = 1,
    action = function(pos, node)
            smoke_particles(pos)
    end
})

function smoke_particles(pos)
    local pid = minetest.add_particlespawner({
        amount = 20,
        time = 1,
        minpos = {x=pos.x, y=pos.y, z=pos.z},
        maxpos = {x=pos.x, y=pos.y, z=pos.z},
        minvel = {x=-.2, y=-.2, z=-.2},
        maxvel = {x=.1,  y=.5,  z=.1},
        minacc = {x=0, y=0, z=0},
        maxacc = {x=.1, y=.5, z=.1},
        minexptime = 1,
        maxexptime = 4,
        minsize = 1,
        maxsize = 10,
        collisiondetection = true,
        texture = 'smoke.png',
        vertical = false,
        glow = 2,
    })
end
King of the Hill :: Modern Warfare Server RATMIX.COM:30000 | King of the Hill Community Site

User avatar
ratmix
Member
Posts: 149
Joined: Mon May 01, 2017 19:45
In-game: ratmix
Contact:

Re: Simultaneous instances of particle spawners possible?

by ratmix » Post

The code above works in 0.4.17.1, but not in 5.0.0-dev. Tested with MT5 on 2 machines, same result.

I posted this to GitHub issues: https://github.com/minetest/minetest/issues/8256
King of the Hill :: Modern Warfare Server RATMIX.COM:30000 | King of the Hill Community Site

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests