Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Circle

Comments in 'Plugin Development' started by Primus, Jul 19, 2015.

  1. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    Works! :3 thank you)
  2. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    And, last question, if you do not mind)
    Not sure how to remove all particles of a player?
    ie instant removal
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Depends on your particle. I don't think it is possible for most particles except FloatingTextParticle.
  4. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    I'm talking specifically about FloatingTextParticle
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    $particle->setInvisible();
    $level->addParticle($particle);
  6. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    okay, thanks :3
  7. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Why would you want to spawn FT like that?
  8. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    Actually I'm Russian, but Google translator says that you ask why I want to throw eggs xD
    jojoe77777 and PEMapModder like this.
  9. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    LMAO...lol XDXDXD
  10. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    I again about these particles :)
    Is it possible to change the radius?
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Yep. Just multiply $x and $z.
    BlackJIeB likes this.
  12. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    ok, thanks)
  13. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    Oh, and don't know how to make a simple circle? (as in a spiral, but just around the player)
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Use the code for a sphere in the previous page but keep the Y axis at the same place, and delete the randomization.
    BlackJIeB likes this.
  15. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    okay, thanks
  16. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    I seem invalid, because did not understand how to extend the spiral..
    PHP:
        public function spiral() {
            
    $level $this->getServer()->getDefaultLevel();
            
    $x 128.5;
            
    $y 66.8;
            
    $z 128.5;
            
    $center = new Vector3($x$y$z);
            
    $radius 5;
            
    $count 100;
            
    $particle = new PortalParticle($center);
            for(
    $yaw 3$y $center->y$y $center->4$yaw += (M_PI 2) / 30$y += 25){
                
    $x = -sin($yaw) + $center->x;
                
    $z cos($yaw) + $center->z;
                
    $particle->setComponents($x$y$z);
                
    $level->addParticle($particle);
            }
        }
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Oh. Then, modify my spiral code. Stop modifying Y. Instead, make an increasing radius.
  18. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
  19. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  20. BlackJIeB
    Offline

    BlackJIeB New Member

    Joined:
    Oct 12, 2014
    Posts:
    28
    Minecraft User:
    BlackJIeB
    okay, waiting, please)

Share This Page

Advertisement