Skip to content

Particles

SashaKYotoz edited this page Aug 5, 2026 · 2 revisions

AniTexLibRegs.Particles


AniTexLib adds 5 brand new ParticleType:

  1. SPARK_LIKE_PARTICLE
  2. WISP_LIKE_PARTICLE
  3. WAVE_LIKE_PARTICLE
  4. CIRCLE_LIKE_PARTICLE
  5. CUBE_LIKE_PARTICLE

Spark, wisp and cube particle types use ColorableParticleOption

Circle and wave particle types accordingly use CircleParticleOption and WaveParticleOption

These particle options on its hand require following parameters to be pass for /particle command or in-code declaration:

ColorableParticleOption(String type, float redColor, float greenColor, float blueColor)

  • note: type parameter accepts only sparkle, cube and default fallback to wisp

CircleParticleOption(float criticalAngle, float scale, float redColor, float greenColor, float blueColor)

  • note: criticalAngle parameter is the value of angle that particle will be turned to

WaveParticleOption(float roll, float scale, float redColor, float greenColor, float blueColor)

  • note: roll parameter is the value of angle that particle will be faced to

JsonModelParticle

The basic Particle class to render model provided in json file

The inheritor of this class can modify position, rotation and scale by overriding setupTransformations() and provide texture to render by overriding getTexture()

Note: any created model that you suppose to be rendered on particle lifetime needs to declare ModelResourceLocation by registering additional model(see ParticleModelRegistry.getAllModelLocations() implementations)

Clone this wiki locally