Solved Parrot leave shoulder

Discussion in 'Bukkit Help' started by Fin_skill, Jun 8, 2017.

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

    Fin_skill

    Hi, Im trying to make parrot stay on the shoulder even if player jumps or flies and i cant find any way to do so.
     
  2. Offline

    Zombie_Striker

    @Fin_skill
    1. Create a hashmap that stores player UUIDs as keys and Parrots as values. This links player's to their parrots.
    2. When a player clicks a parrot and is about to 'equip it', add the parrot to the hashmap.
    3. Create a repeating task in the onEnable.
    4. For loop through all the players in the hashmap.
    5. If the parrot is not a passanger to the player, add the parrot as a passager.
     
Thread Status:
Not open for further replies.

Share This Page