1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Help

Discussion in 'Development' started by Hen1, Oct 15, 2017.

  1. Hen1

    Hen1 Silverfish

    Messages:
    21
    Está correto mas como particulas não aparecem e não vejo nenhum erro no console

    use pocketmine \ plugin \ PluginBase;
    use pocketmine \ event \ player \ PlayerMoveEvent;
    use minério de bolso \ nível \ partícula \ HeartParticle;
    use minério de bolso \ item \ Item;
    use pocketmine \ event \ Listener;
    use pocketmine \ level \ Position;
    use minério de bolso \ nível \ Localização;
    use a miniaçao de bolso \ math \ Vector3;

    a classe Main extends PluginBase implementa ouvinte {

    Função pública onEnable () {
    $ this-> getServer () -> getPluginManager () -> registerEvents ($ this, $ this);
    }

    Função pública emMove (PlayerMoveEvent $ PME) {
    $ player = $ PME-> getPlayer ();
    se ($ player instanceof Player) {
    se ($ player-> getInventory () -> getItemInHand () -> getId () == 388) {

    $ radio = 1;
    $ count = 100;
    $ partícula = novo HeartParticle ($ player);

    para ($ yw = 0, $ y = $ center-> y; $ y <$ center-> y + 4; $ yaw + = (M_PI * 2) / 20, $ y + = 1/20) {
    $ x = -sin ($ yaw);
    $ z = cos ($ aiw);
    $ particle-> setComponents ($ x, $ y, $ z);
    $ level-> addParticle ($ particle);
    }
    }
    }
    }
    }
     

    Attached Files:

    Last edited: Oct 15, 2017
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    error?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.