Solved Anyone Know of Any 1.11 ParticleAPI?

Discussion in 'Plugin Development' started by fireboyev, Jan 21, 2017.

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

    fireboyev

    Hey all,
    I was wondering if anyone knew of any ACTUALLY working Particle APIs for 1.11?
    All of the ones I found are either outdated or not working
     
  2. Offline

    Zombie_Striker

    @fireboyev
    From what I can tell, there are no more APIs, though nothing has changed.

    I may work on creating an API for this some time in the future, but for now, you will need to use packets to send your particles/ update the imports of other libraries.
     
  3. Offline

    fireboyev

    How do you use particle packets? I never really used packets that much since vanilla minecraft doesn't have a very "friendly" api
     
  4. Offline

    Zombie_Striker

    @fireboyev
    Yeah, I would not have even add "friendly".

    Create a new packet (PacketPlayOutParticle), and fill in the constructor using the variables provided here: http://wiki.vg/Protocol#Particle

    After that, send the packet to the player and you should be done.
     
  5. Offline

    I Al Istannen

  6. Offline

    fireboyev

    The One from the spigot api does not do single particles, that would be an effect.



    I tried that one (PacketPlayOutWorldParticles) but it doesn't accept any parameters.
    I did PacketPlayOutWorldParticles packet = new PacketPlayOutWorldParticles();
    the constructor doesn't accept anything
    -EDIT-
    again with the "friendly api" part, not sure why they have a constructor without perms, its kinda useless, plus they make the x,y,z floats instead of doubles, but anyways I fixed it, Thanks for your help
     
    Last edited: Jan 21, 2017
  7. Offline

    I Al Istannen

    @fireboyev
    What are you talking about?? Just set count to 1 and you have a single particle. It is what I used for particle effects and I am 100% sure it works as you would expect.
     
Thread Status:
Not open for further replies.

Share This Page