Snassets Library General Wiki › Guides › Use SnAssets Particle Textures in Particle Effects
Use SnAssets Particle Textures in Particle Effects
Setting Up Particle JSON Files
SnAssets Library provides pre-made particle sprite textures for common effects like smoke, sparks, and bullet impacts. To use them, create or modify your mod's particle definition JSON files.
Referencing Particle Sprites
In your particle JSON, reference textures using the snassets: namespace:
`json
{
"textures": ["snassets:particle/smoke/puff_01"]
}
`
Common particle texture paths include:
snassets:particle/smoke/– soft puff and trail spritessnassets:particle/spark/– spark and ember effectssnassets:particle/impact/– bullet holes and blast markssnassets:particle/flame/– fire and explosion visuals
Spawning Particles
Once your particle JSON is configured, spawn particles in your code using your mod's particle system. The texture reference automatically pulls from SnAssets, so you don't need to copy or bundle the sprite files.
This keeps your mod lightweight while maintaining consistent, professional-quality visual effects across multiple projects.