Solved Temporarily get rid of an entity

Discussion in 'Plugin Development' started by FisheyLP, May 31, 2015.

Thread Status:
Not open for further replies.
  1. Whats the best way to temporarily get rid or hide an entity? I already tried PacketPlayOutEntityDestroy and PacketPlayOutSpawnEntity but that didn't work well...
    The hiding worked (I didn't see the entity but it was still there), but on the spawning, it was like a wolf that is a boat
    Code:
    PacketPlayOutSpawnEntity packet = new PacketPlayOutSpawnEntity((CraftWolf) wolf).getHandle(), 1);
    When I change the Integer to 2, it is a wolf that looks like a dropped stone item
     
    Last edited: May 31, 2015
  2. Offline

    Dudemister1999

    @FisheyLP
    For hiding an entity, consider ProtocolLib. You can keep track of hidden UUID's (Entity id's) and stop related packets being sent to the client if the entity UUID is one you're tracking.
     
  3. Offline

    Konato_K

    @FisheyLP Try PacketPlayOutSpawnEntityLiving
     
  4. I used the easiest solution: Just teleport them to an other Location
     
Thread Status:
Not open for further replies.

Share This Page