Enderman powers

Discussion in 'Plugin Requests' started by Lilystarflower, Mar 18, 2021.

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

    Lilystarflower

    Plugin category: FUN

    Suggested name: Enderman powers

    Version: 1.6.5+

    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 :)


    (I stole this from this thread https://bukkit.org/threads/enderman-powers.325881/ , I know it says to be orginal when you request but no one did it and it was from a few years ago and I really liked it. )
     
  2. Offline

    gochi9

    This is the plugin

    Commands:

    /endermantoggle - No Permission - Use to activate/deactivate the enderman power

    /endermantoggle info - No Permission - See if you have your powers activated/deactivated

    /enderman reload - Permission: endermanpowers.reload - Use to reload the config
     
Thread Status:
Not open for further replies.

Share This Page