Automatic tamed dogs?

Discussion in 'Plugin Development' started by Treeline1, Jan 16, 2015.

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

    Treeline1

    How would I make it so that when someone places down a spawn wolf egg, it is automatically tamed to that person? So he doesn't need to use bones?
     
  2. Offline

    Bowan

    Check the player spawned the wolf egg.
    Get the uuid of the player.
    Set your UUID to the OwnerUUID on the wolf.
    and your done :)
     
  3. Offline

    drpk

    @Treeline1
    Listen to CreatureSpawnEvent
    Check if entity is wolf
    check if SpawnCause is Egg
    Wolf#setOwner(Player)
    Wolf#setTamed(boolean)
     
Thread Status:
Not open for further replies.

Share This Page