Aggressive Animals ➤ Mobs take revenge [1.8-1.17] icon

Aggressive Animals ➤ Mobs take revenge [1.8-1.17] -----

Animals become hostile mobs if you threaten them (or pacify hostile mobs)!




Caves & Cliffs Part 1 Update
The plugin is now working for 1.17 and now supports Axolotl and Goats!

Citizen Support
NPCs from the Citizens plugin are now ignored.
NPCs and mobs from the Shopkeepers, Infernal Mobs, and EliteMobs plugins are also ignored.
----------, Jul 10, 2021

Nether Update
The plugin is now working for 1.16 and adds supports for the following mobs:
  • Strider
  • Zombified Piglin
Unfortunately, Hoglin, Piglin, and Zoglins are not working correctly at the moment as their targeting seems to work differently compared to the other mobs.

Filter Conditions
As suggested, an option to only allow mobs with a certain name to be aggressive.
Code (YAML):
# All of the filter conditions must be true if you want the mob to be able to turn aggressive.
    filter-conditions
:
      # What should the mob be named as?
      name
: Jeff
Fixes
Solved some harmless exceptions.
----------, Jul 2, 2020

As suggested by players I have implemented the following conditions:
  • Enderman-like attack condition
    This is implemented within the advanced distance Attack Condition like:
    Code (YAML):
         distance:
             _
    : 20
             player
    :
               looking
    : true # Only attack players that are looking at it (like an Enderman)


  • Potion stop condition
    If the player has one of the potion effects below the mob will give up attacking
    Code (YAML):
         potion:
             speed
    : 1
             slow
    : 2 # Only Slowness II would make the mob give up


  • Feeding stop condition
    Interact with the mob using the item in your hand (and optionally consume it).
    Code (YAML):
          # Right clicking the mob will cause it to give up on attacking
          interact
    :
             duration
    : 20 # How long will the mob remember the interaction? (in seconds)
             material
    :
              - stick

          # Same as the above, but also consumes the item
          consume
    :
             duration
    : 60
             material
    :
              - bread
----------, May 12, 2020

Before we had the following attack condition to attack players:
Code (YAML):
distance : 10
With the advanced distance attack condition, you have more control over this setting, for example:
  • Let the mob only attack sprinting players.
  • Allow mobs to fight each other, for example, chickens VS cows.
Code (YAML):
     distance:
         _
: 20
         player
: # Only if the below is true, the mob will attack a player
           sneaking
: false
           walking
: false
           sprinting
: true # Only attack players that are sprinting
        cow
: { } # Any cow will be attacked if you add the '{}'
        chicken
:
          baby
: true # Only attack baby chickens
        wolf
:
          tamed
: false # Don't attack tamed wolves.
What if you also wanted to attack close players? You can't have the same name in the config twice, but you may add any text within { } to make it unique, for example:
Code (YAML):
     distance{your_unique_text}:
         _
: 5
         player
: { }
And lastly, ' group-aggro-distance' will now only work for mobs of the same type
----------, Apr 13, 2020

Even though this plugin is called Aggressive Animals, I decided to add support for nearly every mob. You're also able to make some mobs, for example, zombies or wolves completely passive!

To make some mobs ignore their vanilla behavior, you will have to edit the configuration file:
Code (YAML):
wolf :
  # If true, remove vanilla targeting behavior and only use attack-conditions. (Wolf won't attack back, creepers/skeletons/zombies won't be hostile, etc.)
  override-targeting
: false
  speed
: 1
  navigation-range
: 16
  attack-conditions
:
  stop-conditions
:
However, take note that these mobs do not have an attack-speed, attack-damage, or attack-range as they are already able to attack.
----------, Apr 9, 2020

As requested, a way to allow randomness in the attacking mobs!

The example code below only gives the chicken 25% of attacking the player once attacked.
Code (YAML):
      chance:
        percentage
: 25 # How much chance that the mob will attack the player? (in percentage)
        duration
: 0 # How long will the mob remember the chance result? (in seconds)
        conditions
: # The conditions which will trigger the chance: (anything from 'attack-conditions')
          health-percentage
: 100
Additionally, you may want to use the 'duration' variable, which allows a mob to remember the result of the chance (the "dice roll") so it won't trigger for some seconds. Duration is especially useful in case you used 'distance' as one of the conditions.

In the example below, every minute, the chickens have 1% of attacking a close player
Code (YAML):
      chance:
        percentage
: 1
        duration
: 60 # = 1 minute
        conditions
:
          distance
: 20
----------, Apr 3, 2020

Previously the plugin only supported chickens, hence Chicken Attack.
After multiple requests of including more mobs, I have created the Aggressive Animals plugin which supports the following animals:
  • Chicken
  • Pig
  • Sheep
  • Cow
  • Mushroom Cow
  • Donkey
  • Mule
  • Ocelot
  • Rabbit
  • Parrot
  • Turtle
  • Cat
  • Panda
  • Fox
  • Horse
  • Skeleton Horse
  • Zombie Horse
More will be added in the future!

Additionally, a new setting was added:
Code (YAML):
# From how many blocks away can the mob hit the player? (in blocks)
    attack-range
: 1
----------, Apr 2, 2020

By default, Minecraft mobs can look 16 blocks ahead to find a player. However, zombies can see 40.
With the following setting, you can change how 'smart' the mobs are. This is most useful in the Minecraft versions below 1.14 as they require the player to be in this range. In Minecraft 1.14 and up, this won't matter as much.
Code (YAML):
navigation-range : 16
The enemy-health-percentage condition has been improved and will not even attack the player when he is too low!
----------, Mar 31, 2020

Attack
Other chickens may join the fight against a player closer than, for example, 10 blocks!
Code (YAML):
group-aggro-distance : 10

Stop
You can now allow chickens to stop attacking a player if they are, for example, below 50% health using:
Code (YAML):
enemy-health-percentage : 50
----------, Mar 31, 2020

Fixed a bug where the chicken does not attack the player.
----------, Mar 31, 2020

As requested this update provides support for Minecraft version 1.14, 1.13, 1.12, 1.11, 1.10 and 1.9
----------, Mar 31, 2020

The default config has been updated as it did not work straight out of the box.
----------, Mar 30, 2020

Resource Information
Author:
----------
Total Downloads: 27,733
First Release: Mar 30, 2020
Last Update: Jul 10, 2021
Category: ---------------
All-Time Rating:
39 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings