Pets

Discussion in 'Plugin Development' started by IIxUnderWorldxII, Nov 21, 2014.

Thread Status:
Not open for further replies.
  1. I'm working on a hub plugin for a friend and he's asked for pets. I know how to spawn them with a command etc just can't really work out how to make them non-damageable and how to make them follow the player that spawned them, anyone?
     
  2. Offline

    Skionz

  3. Offline

    mrCookieSlime

    IIxUnderWorldxII
    To make them invincible, just add their UUID to a List or even better: a HashMap and simply check for the EntityDamageEvent which will be cancelled if the list contains its UUID.
    To make them follow a Player: Look into NMS as Skionz already suggested.
     
  4. Offline

    Funergy

Thread Status:
Not open for further replies.

Share This Page