Why can't I do particles?
When I execute this code, Minetest crashes without error.
Can someone tell me what is wrong with this code? I can't find an error.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_abm({
nodenames = {"thaumtest:nitor"},
interval = 0.5,
chance = 1,
action = function(pos)
minetest.add_particle({
pos = pos,
velocity = {x = 0, y = .5, z = 0},
acceleration = {x = 0, y = 0, z = 0},
expirationtime = 1,
texture = "nitorParticle.png",
playername = nil,
})
end
})
Can someone tell me what is wrong with this code? I can't find an error.