Helix effect

Discussion in 'Plugin Development' started by DaanSander, Mar 22, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    DaanSander

    Hello i am trying to make a helixeffect whith the EffectLib library but when i join it wont spawn any particles

    code:
    Code:
    private EffectManager effectManager;
    
        @Override
        public void onEnable() {
            Bukkit.getPluginManager().registerEvents(this, this);
            EffectLib lib = EffectLib.instance();
            effectManager = new EffectManager(lib);
        }
    
        @Override
        public void onDisable() {
            effectManager.dispose();
            HandlerList.unregisterAll((Listener) this);
        }
    
        @EventHandler
        public void onPlayerJoin(final PlayerJoinEvent event) {
            HelixEffect helix = new HelixEffect(effectManager);
            BleedEffect bleed = new BleedEffect()
            //add , event.getPlayer()
            // Add a callback to the effect
            helix.callback = new Runnable() {
                @Override
                public void run() {
                    event.getPlayer().sendMessage("You bleeded out..");
                }
    
            };
            // Blood-particles lays around for 30 ticks (1.5 seconds)
            //helix.duration = 30;
            // Bleeding takes 15 seconds
            // period * iterations = time of effect
            helix.iterations = 15 * 20;
            helix.radius = 10;
            helix.start();
        }
    sorry for bad english
     
  2. Offline

    Funergy

    @DaanSander @Skionz has made a great tutorial without using EffectLib and NO dependencies.
     
    mine-care likes this.
  3. Offline

    Regablith

    I know you aren't good with English - But "bleeded" should be "bled"
     
    tomudding likes this.
  4. Offline

    Funergy

    @Regablith What a nice offtopic message. And the message didnt even include any help for him (You did not answer to his question).

    @DaanSander
    Try messing around with the radius.
     
Thread Status:
Not open for further replies.

Share This Page