跳到正文

Simple Mob Buff System

作者:pajic

Makes mobs rarely spawn with buffs and drop rewards based on how strong they are

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Simple Mob Buff System

This mod gives a chance for mobs to spawn with buffs and makes them drop additional rewards based on how strong they are.

While similar in concept to mods like Champions and Eldritch Mobs, it differs significantly in execution. Just as the mod name implies, it tries to be as simple and vanilla-friendly as possible while maintaining game balance, configurability and mod compatibility. This is achieved by building the system entirely using mechanics which already exist in the game.

The mod comes with a balanced configuration out of the box. All spawns are based on the game difficulty and the current local difficulty, all the buffs the mobs receive are status effects you know from vanilla, and there’s no need to worry about getting mauled by ridiculously overpowered mobs or getting showered with overly generous loot – you can install and play without ever touching or even looking at the configuration.

Buffed mobs will emit particle effects based on the buffs they have. This is the only way you can tell if a mob is buffed or not without other mods. I recommend Jade for getting information on mob health and the buffs it has and Particle Effects for unique particle textures for each effect.

The mod configuration is extensive and allows you to do pretty much whatever you want. Apply any effect to any mob, modded or vanilla. Want invisible creepers? Horses that move at the speed of light? Polar bears the size of a mountain? _Not that I recommend any of those_, but you sure can do it with this mod!

With that being said, if you want to know how to configure the mod and how it works, read on.

Editing the configuration

The mod uses Fzzy Config to provide a relatively simple to use and cohesive in-game configuration. You’ll also need Mod Menu to actually access the configuration screen. Every option has a description and there are pointers and instructions on how to do stuff. There are also suggestions and auto-completion for fields where status effects, mobs or items are inputted.

How it works

Each mob has a set of buffs assigned to it, and any or all of those buffs can be applied to the mob once it spawns. Each buff in the set also has a max level assigned to it, and the mob can get any level of the buff from 1 to max. By default, mobs spawned via spawners are prevented from being buffed due to balance concerns (you can remove this restriction in the config).

When a mob is killed, it drops additional rewards based on its “buff level”. The buff level is determined based on how strong the mob is – the amount of buffs it has and their levels, and the amount of enchanted equipment it’s wearing. Zombie-type mobs will have a higher buff level if they’re leaders.

The additional rewards are the following:

  • Additional XP orbs based on how high the buff level is, each orb granting 3 XP points by default.
  • If the buff level surpasses a percentage of the maximum possible buff level for the mob (default 66%), an enchanted book with a random quality depending on how much the buff level surpassed the threshold.

Most mobs will receive buffs from either the default melee buff set or the default ranged buff set depending on the type of weapon they spawn with, whereas certain mobs will receive buffs from buff sets unique to them. The two default sets can be modified in the mod configuration.

Custom rules can be defined to assign any buff to any mob, using any items as a condition. Any status effect, mob and item can be used in these rules, including ones added by other mods.

Buff application works the following way:

  • When a mob spawns, the system first determines if it’s going to try to apply any buffs to it in the first place. The chance for this ranges from a minimum chance (default 10%) at local difficulty 2 and below to a maximum chance (default 25%) at the highest possible local difficulty (6.75).
  • If this check passes, the system tries to apply each buff applicable to the mob one by one. The chance for each buff to be applied ranges from a minimum chance (default 20%) at local difficulty 2 and below to a maximum chance (default 75%) at the highest possible local difficulty (6.75).
  • The level of each buff is determined by the following formula: specialDifficultyMultiplier * randomNumber * maxLevel ^ 2, limited from 1 to maxLevel, where
  • specialDifficultyMultiplier is a number from 0 to 1 based on the current local difficulty (0 at local difficulty 2 and below, 1 at local difficulty 4 and above)
  • randomNumber is a randomly generated number from 0 to 1
  • maxLevel is the maximum level of the buff

常见问题

Simple Mob Buff System 支持哪些 Minecraft 版本?

Simple Mob Buff System 支持 Minecraft Java 版 1.21–26.3,共 10 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

Simple Mob Buff System 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

pajic 的其他作品

查看全部 →