Enderman powers

Discussion in 'Archived: Plugin Requests' started by Trolltheking, Dec 1, 2014.

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

    Trolltheking

    Plugin category: FUN

    Suggested name: Enderman powers

    What I want: I'd like to see a plugin where you can have the power of an enderman. By this I mean to possess a few more abilities rather than simply teleportation.
    Powers:
    1. Immunity to arrows: when someone shoots a projectile at a player (with the enderman powers enabled), the player will instantly teleport away and then teleport back, avoiding the projectile.

    2. counter attack: When the player (with the enderman powers enabled) blocks with his/her sword, he enters an invulnerable state. And when someone attacks him/her, the player (with the enderman powers enabled) will teleport behind the attacker and attack.
    Well, I have been looking into this ability for a few months and I think this code might help some developers who are willing to code this:
    =======================================================================
    Player damagee = event.GetDamageePlayer();
    if (damagee == null) return;

    if (!damagee.isBlocking()) {
    return;
    }

    if (!this._active.contains(damagee)) {
    return;
    }

    LivingEntity damager = event.GetDamagerEntity(false);
    if (damager == null) return;

    int level = GetLevel(damagee);
    if (level == 0) return;

    if (!Recharge.Instance.use(damagee, GetName(), 500L, false)) {
    return;
    }

    event.SetCancelled(GetName());

    Location target = null;
    if (damagee.isSneaking()) target = FindLocationBack(damager, damagee); else
    target = FindLocationBehind(damager, damagee);
    if (target == null) {
    return;
    }

    =======================================================================
    ^ Hope this can help.

    Ideas for commands: /endermanpowertoggleon, /endermanpowertoggleoff

    Ideas for permissions: enderman.power

    When I'd like it by: As soon as possible, I really want to see this plugin to be created :)
     
  2. Offline

    Trolltheking

    Also maybe when the player blocks, there can be a message saying you have now entered invulnerable mode. Hope someone would take this plugin on.
     
  3. Offline

    Trolltheking

    bump, will anyone take on this project?
     
    Ender_Coder likes this.
Thread Status:
Not open for further replies.

Share This Page