▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/Mood Contagion
Mood Contagion

Mood Contagion

Mobs gain a hidden emotional state (calm, panic, or rage) that spreads through same-type herds and decays. Hit one sheep and the flock stampedes; enrage a wolf and its pack turns. Server-side, Paper/Spigot/Bukkit/Purpur 1.21+.

Оцените первым
11
0

Mood Contagion

Mobs now carry a hidden emotional state: CALM, PANIC, or RAGE. Combat seeds the state, it spreads to nearby mobs of the same type, and it fades back to calm over time.

  • Hit a mob and it panics. It runs from you, and the fear spreads to others nearby: one scared sheep can set off the whole flock.
  • Hit a wolf, a bee, or any hostile and it rages instead. Raging mobs move faster and hit harder, and a neutral animal will turn and come for you. Rage spreads the same way.
  • Kill a mob and nearby mobs of the same type panic.

Panicking mobs give off yellow particles and enraged mobs give off red ones, so you can read the state at a glance.

How it works

  • Each mob's state and a timestamp are stored on the mob in its PersistentDataContainer, so moods survive chunk unloads and restarts and never leak memory.
  • A task runs about once a second and processes mobs round-robin with a per-tick budget, so the feature stays cheap on TPS no matter how crowded the world is.
  • Emotional mobs have a chance to infect same-type neighbours within a radius. Moods decay back to calm after a configurable time.
  • PANIC adds Speed and makes the mob flee the nearest player. RAGE adds Speed and Strength, and makes neutral mobs target the nearest player.

Commands

CommandDescriptionPermission
/moodcontagion infoShow the current tunables.moodcontagion.use (default: all)
/moodcontagion hereCount CALM/PANIC/RAGE mobs within 16 blocks of you.moodcontagion.admin (default: OP)
/moodcontagion reloadReload config.yml.moodcontagion.admin (default: OP)

Aliases: /mood, /contagion.

Permissions

NodeDefaultGrants
moodcontagion.useeveryonethe info and here sub-commands
moodcontagion.adminOPreload (and includes moodcontagion.use)

Configuration (config.yml)

KeyDefaultMeaning
spread-radius8.0Blocks within which a mood spreads to same-type mobs (also the flee/retarget scan range, x2).
spread-chance0.35Per-neighbour, per-second chance to infect a same-type neighbour.
decay-seconds12How long an emotional mood lasts before it decays to CALM.
max-processed-per-tick40TPS guard: max mobs handled per processing pass (round-robin).
panic-flee-speed0.45How hard a PANIC mob is shoved away from the nearest player.
max-horizontal-velocity1.5Hard cap on any velocity the plugin sets (anti-launch safety).
death-seed-radius8Blocks around a dying mob in which same-type mobs are seeded PANIC.
effects.enabledtrueMaster switch for all potion effects.
effects.speedtruePANIC and RAGE mobs gain Speed.
effects.strengthtrueRAGE mobs gain Strength.
effects.rage-retargettrueNeutral RAGE mobs target the nearest player (only when they have no valid target).
effects.particlestrueMood-coloured particle puffs above emotional mobs.

All values are clamped to safe ranges on load.

Compatibility

Paper, Spigot, Bukkit, and Purpur 1.21.1 to 1.21.11 and the 26.1.x line (verified on 26.1.2), Java 21. Built against the Spigot API with no Paper-only classes, so the single jar works on all four server types.


Original concept, an internal test idea. Not sourced from a Reddit post.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.1.x1.21.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки


Создатели

Детали

Лицензия:
Опубликован:2 недели назад
Обновлён:2 недели назад
Главная