Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Typed in pastebin, may contain errors!!! (Notify me if it does)
- public YOUR_CLASS_NAME_GOES_HERE getInstance(){
- return this;
- }
- public static void frostLord(final Player player){
- new BukkitRunnable(){
- double t = 0;
- double pi = Math.PI;
- public void run(){
- t += pi / 16;
- Location loc = player.getLocation();
- for(double phi = 0; phi <= 2 * pi; phi += pi / 2){
- double x = 0.3 * (4 * pi - t) * Math.cos(t + phi);
- double y = 0.2 * t;
- double z = 0.3 * (4 * pi - t) * Math.sin(t + phi);
- loc.add(x,y,z);
- ParticleEffect.SNOW_SHOVEL.display(loc,0,0,0,0,1); //customize this for your particleLib
- loc.subtract(x,y,z);
- if(t >= 4 * pi){
- this.cancel();
- loc.add(x,y,z);
- ParticleEffect.SNOW_SHOVEL.display(loc,0,0,0,1,50); //customize this for your particleLib
- loc.subtract(x,y,z);
- }
- }
- }
- }.runTaskTimer(YOUR_CLASS_NAME_GOES_HERE.getInstance(), 0, 1);
- }
- //Code taken from pause at 25:43
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement