Mob Stages
描述
此模组是 GameStage API 的附加组件。它允许将怪物生成纳入自定义的进度系统中。请查阅 GameStage API 模组的描述以获取更多信息。简要来说,阶段是由整合包或服务器设置的进度系统的一部分。玩家通过命令获得阶段,该命令通常由任务模组、进度(advancement)甚至命令方块执行。
本项目由 Nodecraft 赞助。使用代码 DARKHAX 可在首月服务中享受 30% 折扣!
设置
此模组使用 CraftTweaker 进行配置。
全局设置
mods.MobStages.addStage(String stage, String entityId);- 将怪物添加到某个阶段。当它尝试在世界中生成时,会检查附近是否解锁了该阶段的玩家。如果未找到有效玩家,则该怪物将无法生成。mods.MobStages.addReplacement(String entityId, String replacementId);- 为怪物添加替代生成项。如果原怪物生成失败,则会改为生成替代项。这要求你先将该怪物添加到某个阶段中。此为可选操作。mods.MobStages.addRange(String entityId, int range);- 设置搜索玩家的半径范围。默认范围为 256,系统会自动为你设置。此为可选操作。mods.MobStages.toggleSpawners(String entityId, boolean allow);- 允许怪物刷怪笼忽略阶段规则并照常生成怪物。
维度设置
此模组为上一节中的所有方法添加了特定于维度的版本。维度版本在最后一个参数处额外接受数字形式的维度 ID。例如,mods.MobStages.addStage(String stage, String entityId); 变为 mods.MobStages.addStage(String stage, String entityId, int dimension);。如果某怪物存在维度条目,它将覆盖全局条目。
示例脚本
// 苦力怕需要阶段一才能生成 mods.MobStages.addStage("one", "minecraft:creeper");// 骷髅需要阶段二,或者任意刷怪笼。 mods.MobStages.addStage("two", "minecraft:skeleton"); mods.MobStages.toggleSpawner("minecraft:skeleton", true);
// 蜘蛛在地狱中需要阶段三。 mods.MobStages.addStage("three", "minecraft:spider", -1);
// 僵尸 mods.MobStages.addStage("four", "minecraft:zombie", -1); mods.MobStages.toggleSpawner("minecraft:zombie", true, -1);
// 在其他维度中,僵尸被蝙蝠替代。 mods.MobStages.addStage("four", "minecraft:zombie"); mods.MobStages.addReplacement("minecraft:zombie", "minecraft:bat");
Mob Stages
Description
This mod is an addon for the GameStage API. This allows for mob spawning to be put into a custom progression system. You should check out the GameStage API mod's description for more info. To give a brief run down, stages are parts of the progression system set up by the modpack or server. Stages are given to players through a command, which is typically ran by a questing mod, advancement, or even a Command Block.
This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!
Setup
This mod uses CraftTweaker for configuration.
Global Setup
mods.MobStages.addStage(String stage, String entityId);- Adds a mob to a stage. When it attempts to spawn in the world, it will check for nearby players that have this stage unlocked. If no valid players are found, the mob will not be able to spawn.mods.MobStages.addReplacement(String entityId, String replacementId);- Adds a replacement for the mob. If it fails to spawn, the replacement will be spawned instead. This requires that you add the mob to a stage first. This is optional.mods.MobStages.addRange(String entityId, int range);- Sets the range to search for players. The fault range is 256, and is automatically set for you. This is optional.mods.MobStages.toggleSpawners(String entityId, boolean allow);- Allows for mob spawners to ignore the stage rules and spawn the mob anyway.
Dimensional Setup
This mod adds dimension specific versions of all the methods in the previous section. The dimension versions accept the numeric dimension id as an additional last parameter. For example, mods.MobStages.addStage(String stage, String entityId); becomes mods.MobStages.addStage(String stage, String entityId, int dimension);. If a mob has a dimensional entry, it will override the global entry.
Example Script
// Creepers require stage one to spawn mods.MobStages.addStage("one", "minecraft:creeper");// Skeletons require stage two, or any spawner. mods.MobStages.addStage("two", "minecraft:skeleton"); mods.MobStages.toggleSpawner("minecraft:skeleton", true);
// Spiders require stage three in the nether. mods.MobStages.addStage("three", "minecraft:spider", -1);
// Zombies mods.MobStages.addStage("four", "minecraft:zombie", -1); mods.MobStages.toggleSpawner("minecraft:zombie", true, -1);
// Zombies are replaced by bats in other dimensions. mods.MobStages.addStage("four", "minecraft:zombie"); mods.MobStages.addReplacement("minecraft:zombie", "minecraft:bat");
下载 Mob Stages
下载 Mob Stages
下载 Mob Stages
下载 Mob Stages
下载 Mob Stages
下载 Mob Stages
下载 Mob Stages
下载 Mob Stages
下载 Mob Stages
下载 Mob Stages
- 修复模组包。 - Tyler Hancock
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧