How to spawn a zombie skull in a location

Discussion in 'Plugin Development' started by MrSham, Dec 2, 2013.

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

    MrSham

    I am trying to spawn a zombie skull on top of the block I just placed. How can I do this?
    Code:java
    1. @EventHandler
    2. public void onBlockPlace(BlockPlaceEvent event){
    3. Location blockLoc = event.getBlock().getLocation();
    4. Location headLoc = blockLoc;
    5. headLoc.setY(headLoc.getY() + 1)
    6. //spawn skull in this location
    7. }
     
  2. Offline

    kamcio96

    MrSham likes this.
Thread Status:
Not open for further replies.

Share This Page