private void createParticle(Location location) {
double mobHeight = 1.8; // Высота в блоках
double radius = mobHeight / 2;
Location center = location.clone().add(0, mobHeight / 2, 0);
for (int i = 0; i < 360; i += 10) {
double angle = Math.toRadians(i);
double x = Math.cos(angle) * radius;
double y = Math.sin(angle) * radius;
Location particleLocation = center.clone().add(x, y, 0);
location.getWorld().spawnParticle(Particle.FLAME, particleLocation, 0);
}
for (int i = 0; i < 360; i += 10) {
double angle = Math.toRadians(i);
double z = Math.cos(angle) * radius;
double y = Math.sin(angle) * radius;
Location particleLocation = center.clone().add(0, y, z);
location.getWorld().spawnParticle(Particle.FLAME, particleLocation, 0);
}
}