use of hellfirepvp.astralsorcery.client.effect.source.orbital.FXOrbitalPelotrio in project AstralSorcery by HellFirePvP.
the class CEffectPelotrio method playClientEffect.
@Override
@OnlyIn(Dist.CLIENT)
public void playClientEffect(World world, BlockPos pos, TileRitualPedestal pedestal, float alphaMultiplier, boolean extended) {
ConstellationEffectProperties prop = this.createProperties(pedestal.getMirrorCount());
if (rand.nextFloat() < 0.2F) {
Vector3 at = Vector3.random().normalize().multiply(rand.nextFloat() * prop.getSize()).add(pos).add(0.5, 0.5, 0.5);
EffectHelper.spawnSource(new FXOrbitalPelotrio(at).setOrbitAxis(Vector3.random()).setOrbitRadius(0.8 + rand.nextFloat() * 0.7).setTicksPerRotation(20 + rand.nextInt(20)));
}
}
Aggregations