Key Features:
- Emotional States for Mobs:
- Calm — The default state where mobs are neutral.
- Aggressive — Mobs become hostile when attacked or during nighttime.
- Fearful — Mobs become scared during specific events such as rain, being in water, witnessing death, or after potion effects like slowness.
- Friendly — Mobs become friendly after positive interactions with players, such as feeding.
- Flexible Configuration via config.yml: All behavior-related parameters are configurable, allowing server admins to fine-tune how long emotions last and how mobs react to different situations.
Example config.yml:
yaml
# Plugin settings for Emotional Mobs
# Time (in ticks, 1 second = 20 ticks) before mobs return to calm
calm-delay: 600 # 30 seconds
# Fear duration for weather-related events
weather-fear-time: 1200 # 60 seconds
# Fear duration when a mob enters water
water-fear-time: 600 # 30 seconds
# Fear duration when a nearby mob dies
death-fear-time: 1200 # 60 seconds
# Friendliness duration after positive player interaction
friendly-duration: 1200 # 60 seconds
# Aggressiveness duration at night
night-aggression-time: 12000 # Full night cycle
# Fear duration after potion effects like slowness
potion-fear-time: 1200 # 60 seconds
Supported Events:
- Mob Attacks: Mobs become aggressive after being attacked by a player for a set amount of time.
- Weather Changes: Mobs experience fear during rain or storms.
- Mob Spawning: Mobs start their lives in a calm state.
- Player Interactions: Feeding or interacting with mobs makes them friendly for a certain duration.
- Water Encounters: Mobs experience fear when they fall into water.
- Mob Deaths: Nearby mobs become fearful when another mob dies.
- Time of Day: Mobs become more aggressive at night and calm down at dawn.
- Potion Effects: Mobs react with fear when affected by negative potion effects like slowness.
Use Cases:
- PvE Battles: Mobs can react aggressively to player attacks or external factors, providing a more immersive PvE experience.
- Mob Ecosystem: Mobs respond dynamically to environmental changes and player behavior, enhancing immersion and interaction in the world.
- Flexible Customization: Admins can easily modify mob behavior to fit their server’s gameplay, adjusting the duration of emotions and mob responses.
Installation:
- Copy the .jar file to your server's plugins folder.
- Start the Minecraft server.
- The plugin will automatically generate a config.yml file, which you can edit to customize mob behavior.
Version Compatibility:
- Compatible with Minecraft 1.21.1 and higher, using Spigot API.
The
Emotional Mobs plugin introduces new levels of interaction between players and mobs, creating a more unpredictable and engaging Minecraft experience!