Spawn baby sheep?

Discussion in 'Plugin Development' started by SzymonOwca, Sep 3, 2013.

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

    SzymonOwca

    Hi i want to spawn baby sheep but i dont known how it do xd

    code:

    Code:java
    1. Player player = (Player)sender;
    2. Location location = new Location(player.getWorld(), player.getLocation().getX() + 1.0D, player.getLocation().getY() + 1.0D, player.getLocation().getZ());
    3. player.getWorld().spawnEntity(location, EntityType. ? );
     
  2. Offline

    tommycake50

    Sheep s = (Sheep)player.getWorld().spawnEntity(location, EntityType.SHEEP);
    s.setBaby();
     
    SzymonOwca likes this.
  3. Offline

    SzymonOwca

    thanks !
     
Thread Status:
Not open for further replies.

Share This Page