Solved Particle Help!

Discussion in 'Plugin Development' started by AngryCupcake274, Oct 21, 2015.

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

    AngryCupcake274

    Hello all,
    I am creating a plugin that needs to run on Bukkit 1.7. I have done particles for MC 1.8, but have not done anything in 1.7. I have come to the Bukkit forums to ask for help by putting our brains together! To sum this all up, my question is:

    How do you show a particle to the player in MC 1.7 from start to finish without using any APIs?
     
  2. Offline

    teej107

    umm......

    Well what's to stop you from using the 1.8 code on 1.7?
     
  3. Offline

    AngryCupcake274

    EnumParticle AKA The bane of particles.
     
  4. Offline

    rbrick

  5. Offline

    AngryCupcake274

    Is that a different packet than PacketPlayOutWorldParticle? For example, the id number next to the name, do I need that?

    UPDATE: I am using the following code:
    Code:
    PacketPlayOutWorldEvent packet = new PacketPlayOutWorldEvent(2001, e.getBlock().getX(), e.getBlock().getY(), e.getBlock().getZ(), 21, false);
    ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet);
    But still do not know how to make special effects like 'happyVillager' or 'reddust'.

    EDIT: PacketPlayOutWorldParticles works a lot better if particles are set to All, not Minimal. At least now we have more than 1 way to do things!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 29, 2015
Thread Status:
Not open for further replies.

Share This Page