particles.lua 553 B

1234567891011121314151617181920
  1. ---@meta
  2. ---Particles
  3. ------------
  4. ---@param particle mt.ParticleDef
  5. function minetest.add_particle(particle) end
  6. ---@param particlespawner mt.ParticleSpawnerDef
  7. ---@return number id
  8. function minetest.add_particlespawner(particlespawner) end
  9. -- Delete `ParticleSpawner` with `id`
  10. -- (return value from `minetest.add_particlespawner`).
  11. --
  12. -- If `playername` is specified, only deletes on the player's client,
  13. -- otherwise on all clients.
  14. ---@param id number
  15. ---@param playername string|nil
  16. function minetest.delete_particlespawner(id, playername) end