Removing Entity using packets

Discussion in 'Plugin Development' started by 97WaterPolo, Dec 27, 2014.

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



    I was wondering if you remove an entity using packets, does the server still think it is there and can you use the entity to display effects.

          Arrow a = null;
           PacketPlayOutEntityDestroy packet = new PacketPlayOutEntityDestroy(((CraftArrow)a).getEntityId());
           for (Player p : Bukkit.getOnlinePlayers())
    Basically this removes the arrow, but can I still play effects and such based on the arrows location even if the client doesn't see the entity?

    Trying to create a custom path using arrow's velocity, and I would rather not have the arrow seen, but still play the effects at the arrows location.

    Basically, if I remove the arrow VIA packets, can I still display effects at its location and modify the arrow without it looking weird client side?
  2. @97WaterPolo
    I'm not sure, but why haven't you tried it?
  3. Offline


    Not at my computer at the moment, this is all in theory.
  4. Offline


    Why not just set the entity invisible?

    Entity (minecraft's), contains setInvisible(boolean). I suggest you use that rather then spamming packets.
Thread Status:
Not open for further replies.

Share This Page