Mob Disguises

Discussion in 'Plugin Development' started by MCCoding, Feb 27, 2015.

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

    MCCoding

    I have created some mob disguises but I'm having an issue when a player is far away from someone who is disguised and then goes back to the person disguised the disguise gets removed, how would I fix this? do I just need to resend the disguise packets? If so would the ChunkLoadEvent work since the chunk would never would get unloaded since the disguised player is keeping it loaded.
     
  2. Offline

    LetsTalkTnTHere

    Could you show your code that handles what happens when you get disguised?
    I think there is something like
    Code:
    public void spawnZombie(Player p) {
          Zombie z = (Zombie) p.getWorld().spawnEntity(p.getLocation, EntityType.ZOMBIE);
    
    z.setRemoveWhenFarAway(false); //Does not remove the entity
    
    }
     
Thread Status:
Not open for further replies.

Share This Page