How to disable Mob's shooting/damagin/exploding players?

Discussion in 'Plugin Development' started by Prex, Jul 21, 2015.

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

    Prex

    Well as the Title says, I need help doing that.
    I need this for my "Pet" plugin. The plugin works BUT the Blaze/Skeleton can still shoot their Projectiles, Zombies/Slimes etc still attack players and Creepers charge and explode.

    So how can I disable it IN the plugin as code?

    Thank you for your help :3




     
  2. Offline

    ShadowLAX

    @Prex Create a custom entity for each entity and clear it's default pathfinders. Then just add only the ones that the entity needs to act like a normal mob.
     
  3. Offline

    Prex

    @ShadowLAX well how do I do that? Could you give me an exampel?

    (im kninda new :3)
     
  4. Offline

    ShadowLAX

    @Prex It requires knowledge of NMS. I'd recommend staying away from NMS until you've learned more about Bukkit's API if you're new, but here's a tutorial for what you need if you want to try and learn it.
     
  5. Offline

    Agentleader1

    True dat. NMS is required, just clear any mob's certain pathfindergoals.
     
  6. Offline

    Prex

    @ShadowLAX,@Agentleader1
    Hm ok I take a look at the code and try to add it to my Plugin. If I need more help Ill reply thank you
     
  7. @ShadowLAX
    :O I know you
    No need for creating a custom entity for it. You can just modify any entity's pathfinders.
     
  8. Offline

    Prex

    @megamichiel well then show me how mate I tryed different things :3
     
Thread Status:
Not open for further replies.

Share This Page