Make a mob shiftable?

Discussion in 'Plugin Development' started by VictoryShot, Mar 31, 2014.

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

    VictoryShot

    I want my baby zombie to be crouching so how would I do that?

    My code atm:

    Code:java
    1. public void spawnBABYZOMBIE(Player player)
    2. {
    3. Zombie z = (Zombie) player.getLocation().getWorld().spawn(player.getLocation(), Zombie.class);
    4. z.setBaby(true);
    5. }
     
  2. Mobs can't sneak.
     
  3. AdamQpzm Mobs can sneak, if youre using NMS you will see you can make mob sneak, not all mobs can sneak tho... (some that can sneak: zombie, pigman) , it will hide their names even if they cant sneak, mobs can sprint too...
    also, for OP : getHandle() and setSneaking(true);
    PROOF: http://prntscr.com/35q584
     
    AdamQpzm likes this.
  4. Someone_Like_You Ah, my apologise. I assumed that if they could sneak that I would've seen it by now, but apparently not!
     
  5. AdamQpzm Lol haha, :p I didnt noticed it too , but when Ive coded pets to my server... Ive saw .setSneaking and .setSprinting xD
     
  6. Offline

    VictoryShot

    Thanks ill try that.
     
Thread Status:
Not open for further replies.

Share This Page