Superflat 世界几乎在 Y=40 以下生成,因此每个史莱姆区块都会变成你从未要求过的史莱姆农场。此模组添加了一个游戏内规则(game rule),用于关闭这些自然生成的史莱姆。
该规则名为 removesuperflatslimes:removesuperflatslimes,默认值为 true,因此安装模组后史莱姆就会立即消失——无需任何额外操作即可生效。如果你希望恢复原版行为,可将其设置为 false。创建世界时,该规则也会出现在“生成”(Spawning)类别的游戏内规则列表中。
仅影响自然生成。普通生成以及区块生成过程中添加的实体均会被阻止。其他一切功能仍保持与原版完全一致:包括刷怪蛋、/summon 命令、怪物刷怪笼、试炼刷怪笼,以及击杀大型史莱姆时分裂成多个小型史莱姆的机制。
该规则仅对使用平坦区块生成器(flat chunk generator)的维度生效,涵盖所有 Superflat 预设。普通世界不受影响;即使是在 Superflat 存档中,下界和末地也各自使用独立的生成器,因此同样不受影响。
兼容性说明:两个 Mixin 均为在 checkSpawnRules 方法头部进行的纯注入(plain injections),无重写(overwrites)也无重定向(redirects),因此不会修改其他代码,其他模组也可以自由挂钩相同的方法。史莱姆通过类类型进行匹配,这意味着继承自原版史莱姆的模组自定义史莱姆也会被一并处理。岩浆史莱姆位于层次结构的不同分支上,不受此规则影响。
需要 Minecraft 26.2、Fabric Loader 和 Fabric API。该模组应安装在服务端或单人游戏中——虽然客户端安装无害,但单独在客户端运行时不会产生任何效果。
Superflat worlds sit below Y=40 almost everywhere, so every slime chunk turns into a slime farm you never asked for. This mod adds a single game rule that switches those natural spawns off.
The rule is removesuperflatslimes:removesuperflatslimes and it defaults to true, so slimes are gone the moment you install the mod — there is nothing to turn on. Set it to false if you want vanilla behaviour back. The rule also appears in the game rule list when you create a world, under Spawning.
Only natural spawning is affected. Ordinary spawning and the mobs added while chunks generate are blocked. Everything else keeps working exactly as it does in vanilla: spawn eggs, the summon command, monster spawners and trial spawners, and a big slime splitting into smaller ones when you kill it.
The rule applies only to dimensions that use a flat chunk generator, which covers every superflat preset. Normal worlds are untouched, and so are the Nether and the End inside a superflat save, since they use their own generators.
Compatibility: both mixins are plain injections at the head of checkSpawnRules, with no overwrites and no redirects, so nothing is rewritten and other mods can hook the same methods freely. Slimes are matched by class, which means modded slimes extending the vanilla one are covered too. Magma cubes sit on a separate branch of the hierarchy and are not affected.
Requires Minecraft 26.2, Fabric Loader and Fabric API. The mod belongs on the server, or in singleplayer — it is harmless on a client but does nothing there on its own.
评论 0
登录后参与评分
还没有评论,来抢沙发吧