Disable mobs movement/a.k.a freeze mobs.

Discussion in 'Plugin Development' started by djmati11, Mar 21, 2012.

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

    djmati11

    I've been searching and nothing.

    I have this code:

    Code:JAVA
    1. package com.djmati11.StuffedMobs;
    2.  
    3. import net.minecraft.server.World;
    4. public class CustomEntityCreeper extends net.minecraft.server.EntityCreeper {
    5.  
    6. public CustomEntityCreeper(World world) {
    7. super(world);
    8.  
    9. // TODO Auto-generated constructor stub
    10. }
    11.  
    12.  
    13. }
    14.  


    How to freeze the creeper?
     
  2. Offline

    Nitnelave

    A dirty solution would be to teleport it to the same location every tick.
     
  3. Offline

    SourceForums

    Nitnelave
    I do realise that I'm tackling a 1 year old thread, but are there any 'clean' ways to do this?
     
  4. Offline

    xize

    You could use potions of jump and slowness both Integers with MAX_VALUE it moves very slow away but though very freezed;)
     
  5. Offline

    HawkEyeDude

    If you set jump to -7 or something it works the same
     
  6. Offline

    L33m4n123

    try to set the velocity of the mob to 0. Do not know if that stays at 0 then or if they try to walk again if it gets increased again​
     
Thread Status:
Not open for further replies.

Share This Page