Mobs help you in pvp

Discussion in 'Plugin Requests' started by glasseater, Sep 19, 2015.

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

    glasseater

    Hey guys,

    I was wondering if there were any plugins that allows you to summon mobs that will help you pvp. I.E they will not attack you but will attack the closest entity. I don't want a wolf, but a skeleton, zombie, or any other mob would be cool!
     
  2. Offline

    mcdorli

    You can't change the AI of a mob
     
  3. Offline

    Binner_Done

    You can probably have it to damage the nearest mob according to the 'tamed' mob. I'm not sure who would make this though
     
  4. Online

    timtower Administrator Administrator Moderator

    Yes you can, it requires NMS though, can give a creeper melee attacks if we want.
    And we can just set the target of the mob.
     
  5. Offline

    glasseater

    @timtower
    Can't I use an API like CustomEnitiesAPI1.8
     
  6. Offline

    KoleDogCodes

    You can use the EntityTargetEvent and EntityDamageByEntityEvent to do this.
    So basically when a player damages a entity make the mob target that entity.
    Then in the EntityTargetEvent cancel the event when the mob wants to attack its Owner, so this basically makes its so that only entities around the owner are attacked. You can store the "mob helper" in a hashmap so the entity can be easily obtained again when need be.

    Also you should take a look at the plugin: Faction Mobs.
     
  7. Online

    timtower Administrator Administrator Moderator

    Not sure, don't even know what it does.
     
  8. Offline

    glasseater

  9. Offline

    KoleDogCodes

    Hostile mobs work with the EntityTargetEvent.
     
  10. Offline

    mcdorli

    Can anybody do this? I don't have the time right now, and everybody is just gives more ideas, to how to do it.
     
    glasseater likes this.
  11. Offline

    glasseater

    @KoleDogCodes
    Last time I checked it didn't because they have their own following system.
     
  12. Online

    timtower Administrator Administrator Moderator

    Doesn't mean that we can't force their targets
     
  13. Offline

    mcdorli

    I only did it with the ender ddagon (that's how those ender dragon riding plugins work too). I never actually tested on a normal mob.
     
Thread Status:
Not open for further replies.

Share This Page