Solved Make mobs(LivingEntity object) Invincible and unable to move

Discussion in 'Plugin Development' started by whatapigdoes, Oct 31, 2013.

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

    whatapigdoes

    Hi,

    I am making a plugin and i am wondering if there is a way to make sure that certain mobs cannot work.

    I would prefer a potion effect or nbt tag.

    Thanks,

    whatapigdoes
     
  2. Offline

    Windy Day

    Listen for entity damage. If the entity is instanceof that mob cancel that event. For unable to move, if you want to do it with potion effects, get the entity and add a jump effect of 128 along with a slowness effect of 6.
     
  3. Offline

    xTrollxDudex

    whatapigdoes
    Use the freeze entity lib in the resources
     
  4. Offline

    RealDope

    xTrollxDudex
    He said he wanted to use potion effects, the freeze entity lib uses teleportation.
     
  5. Offline

    whatapigdoes

    Thanks,

    Is there any other way to do the invulnerable thing without EntityDamageEvent?

    I know there is an NBT tag but i don't know how to edit it?
     
  6. Offline

    whatapigdoes

    OK,

    Never mind the invulnerable thing i've got that sorted.

    I know i should probably make another post for this but how would i stop a player from moving a certain entity
     
  7. Offline

    whatapigdoes

    Never mind,

    FreezeEntity should be fine.

    Solved
     
Thread Status:
Not open for further replies.

Share This Page