"peaceful" zombie

Discussion in 'Plugin Development' started by Mother__, Nov 26, 2013.

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

    Mother__

    how i can make zombie peaceful if containes player in hashmap ?

    Code:java
    1.  
    2. if(hashmap.containesKey(player.getName)){
    3.  
    4. make zombie peaceful
    5.  
    6. }
    7.  
     
  2. Offline

    Chinwe

    You could try cancelling EntityTargetEvent if the targeting entity is a zombie and the targeted entity is a player and in the map :)
     
Thread Status:
Not open for further replies.

Share This Page