Spawning a mob relative to the block your looking at

Discussion in 'Plugin Development' started by SoTotallyRoary, Apr 17, 2014.

Thread Status:
Not open for further replies.
  1. Basically the title XD

    I just wanna know how this would be done... I just have no idea...

    Thanks for the help
     
  2. Offline

    Stackore

    Code:java
    1. Player p = (Player) sender;
    2. if(label.equalsIgnoreCase("spawnmob"));
    3. p.getWorld().spawnEntity(p.getLocation(), EntityType.CHICKEN);
     
    SoTotallyRoary likes this.
  3. Thank you!
     
Thread Status:
Not open for further replies.

Share This Page