Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int max_height = 15;
- double max_radius = 10;
- int lines = 4;
- double height_increasement = 0.5;
- double radius_increasement = max_radius / max_height;
- for (int l = 0; l < lines; l++) {
- for (double y = 0; y < max_height; y+=height_increasement ) {
- double radius = y * radius_increasement;
- double x = Math.cos(Math.toRadians(360/lines*l + y*25 - angle)) * radius;
- double z = Math.sin(Math.toRadians(360/lines*l + y*25 - angle)) * radius;
- ParticleEffect.CLOUD.display(0, 0, 0, 1, 1, location.clone().add(x,y,z), 255);
- }
- }
- angle++;
- demonstration : http://i.imgur.com/Q77CsTz.gif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement