Stop Mob or Entity form moving

Discussion in 'Plugin Development' started by AndersonEpic, Sep 27, 2014.

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

    AndersonEpic

    Would I make a mob stop moving? I need it for an NPC's that I'm coding.
     
  2. Offline

    Skionz

    Editing NMS or teleporting the entity back every tick
     
  3. Offline

    xTrollxDudex

    Add a slowness potion effect to it. Of course, you would need to prevent it from coming close to 1 block jumps, the it would be able to move.
     
  4. Offline

    AndersonEpic

    Wouldn't teleporting every tick cause lag?

    I was looking for something with NMS(which is why I'm posting this), to just stop the mob from moving in general.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  5. Offline

    RingOfStorms

    Clear the pathfinder goals.
     
  6. Offline

    Skionz

    Yes. NMS is your best option but if you are creating npcs I am pretty sure you can't stop players from pushing them. So you will end up having to teleport them back every few seconds anyway.
     
  7. Offline

    Funergy

    AndersonEpic Create a custom Villager/Entity.
    1. create a class let it implement the entity you want.
    2. and edit the stuff.
     
  8. Offline

    AndersonEpic

    I'll try my best with NMS. I have no idea on how to use it :/
     
  9. Offline

    RingOfStorms

    spoonfeed level 10

    There are countless tutorials on the bukkit resource section and videos obviously. You can google or search for them.
     
    Skionz likes this.
  10. Offline

    Skionz

    I laughed :p
     
    RingOfStorms likes this.
  11. Offline

    Funergy

    RingOfStorms I'm just giving him a tutorial. He explains it really wel. so whats the problem?
     
  12. Offline

    Skionz

    Funergy Its a good tutorial but he posts the source which is super easy to copy and paste. AndersonEpic It is a pretty good tutorial though just don't copy the source or you won't learn anything :p
     
  13. Offline

    AndersonEpic

    Won't copy anything :p
     
    Skionz likes this.
  14. Offline

    xTrollxDudex

    Don't do it harder than you need to do it.
     
  15. Offline

    ChipDev

    or witherSkulls :)

    read this.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  16. Offline

    Skionz

  17. Offline

    xXRobbie21Xx

    Hey do you play on a server called promcgames? I think I have seen you around. If you want to work together with some dev projects, send me a pm with your skype!
     
  18. Offline

    AndersonEpic

    What do wither skulls do?
     
  19. Offline

    Skionz

    AndersonEpic You can create invisible ones and make entities ride on them which basically makes them not able to move. Look at ChipDev 's tutorial
     
  20. Offline

    RingOfStorms

    Using witherskulls would be counter intuitive in this scenario. He wants to make NPC's, and if he ever expands their functionality or wants them to move in any way, then the witherskull will not work.

    Clearing the pathfinder goals is the easiest and most clean way.
     
  21. Offline

    AndersonEpic

    I'll try it out.

    Yes I do play on ProMcGames. Sorry I work with FireRockerzStudios.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
Thread Status:
Not open for further replies.

Share This Page