Solved How to spawn a locked mob

Discussion in 'Plugin Development' started by Deleted user, Aug 6, 2014.

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

    Deleted user

    How can I spawn a fixed mob that doesn't check nearby players?
     
  2. Offline

    TheMcScavenger

    You'll have to create your own mob using NMS.
     
  3. Offline

    Bobit

    Or, if you just don't want it to move or something, you could just look into using potion effects.
     
  4. Offline

    TheMcScavenger

    Bobit: I'm not sure how potion effects could cause it not to target players... lol

    @OP: You could also get the mob and set the target to null, but I don't think that'll stop it from checking for new targets.
     
  5. Offline

    Deleted user

  6. Offline

    Bobit

    If it's a zombie, moving is targetting players, in a sense.
     
  7. Offline

    Deleted user

    Bobit No... each mob moves randomly.
     
  8. Offline

    TheMcScavenger

    I know, but that just makes it impossible to move, not impossible to target players. And yes, mobs can jump, but I don't think they'll jump to move if you apply a potion effect.. Otherwise, use a negative jump boost.
     
  9. Joiner They only jump when they're trying to overcome certain obstacles. An inexplicable force compelling them not to move is not one of these obstacles.
     
  10. Offline

    Deleted user

    TheMcScavenger Creepers explode... Skeletons shoot arrows... how can I set the follow range?
     
  11. Offline

    TheMcScavenger

    I suggest just cancelling events..

    EntityTargetEvent
     
  12. Offline

    Bobit

    No. You don't want to have to cancel an event every tick per every mob near a player, or even worse, cause an infinite loop.

    Anyhow, learn2google ppl. Click here.
     
  13. Offline

    Deleted user

  14. Offline

    Bobit

    Wow. That was an incredibly creative solution.
    But...I don't think it will work. To quote the wiki:
    Is that what you want? You said:
    But if you use this they won't move at all, unless you put complex code to give them AI.
     
  15. Offline

    Deleted user

     
  16. Offline

    Bobit

    Um...uh...okay...not sure what you think that means, but it doesn't matter, solved~
     
  17. Offline

    Deleted user

    You said:
    Moving is targetting players.
    I replied:
    Not true.
    It was an answer to you, not what I want from this question.
     
  18. Offline

    Bobit

    What did you mean by this?
     
  19. Offline

    fireblast709

    Bobit a set of mobs have a PathfinderGoalRandomStroll instance in their goalSelector. The name should be descriptive enough ;)
     
  20. Offline

    fireblast709

    AdamQpzm shh, don't spoil the secrets
     
    AdamQpzm likes this.
  21. fireblast709 Skeletons tend to sport extravagant attire, and zombies always look very dashing and fashionable. I'm sure most people assume they stock up on the latest fashion trends while we're not watching :)

    Joiner I think that Bobit was more implying that a zombie (although we know now that's not the only mob you want) cannot move, it can't really target a player. Not that if it can't target a player, it can't move.
     
  22. Offline

    Deleted user

    Please write a simple sentence... Google Translator can't handle that. :D
     
  23. Joiner If a zombie can't move, it can't target players
     
  24. Offline

    Deleted user

    AdamQpzm
     
  25. Joiner I know, but that was the point Bobit was making.

    He said that about zombies only, before you mentioned skeletons and creepers :)
     
  26. Offline

    Deleted user

    Ok, so what do you want to tell me?
     
  27. Joiner I just wanted to clear up the confusion, that is all.
     
  28. Offline

    Bobit

    Now it makes sense... It's cool though. No problem, really.

    That was pure jargon to me lol. I don't know much about AI. This thread is already confusing and pointless enough already, so please don't respond :p

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

    Deleted user

Thread Status:
Not open for further replies.

Share This Page