Tinker Stages
此模组是 GameStage API 的附加组件。它允许将 Tinkers Construct 的某些方面集成到自定义进度系统中。请查看 GameStage API 模组的描述以获取更多信息。简要说明如下:阶段(stages)是由整合包或服务器设置的进度系统的一部分。玩家通过命令获得阶段,该命令通常由任务模组、成就系统甚至命令方块执行。
本项目由 Nodecraft 赞助。使用代码 DARKHAX 可在首月服务中享受 30% 折扣!
设置
此模组使用 CraftTweaker 进行配置。
通用限制
这些限制适用于整个系统,而非特定情况。这些 ZenScript 方法接受一个输入参数,即你希望限制该系统所对应的阶段。你可以为同一系统添加多个阶段,只要玩家拥有其中任意一个阶段,即可访问该系统。
- 工具制作 - 防止玩家在匠作工作台制作工具,除非他们拥有该阶段。
mods.TinkerStages.addGeneralCraftingStage(String stage); - 部件替换 - 防止玩家在匠作工作台替换工具部件,除非他们拥有该阶段。
mods.TinkerStages.addGeneralPartReplacingStage(String stage); - 部件构建 - 防止玩家在部件模具中构建部件,除非他们拥有该阶段。
mods.TinkerStages.addGeneralPartBuildingStage(String stage); - 应用修饰符 - 防止玩家应用工具修饰符,除非他们拥有该阶段。
mods.TinkerStages.addGeneralModifierStage(String stage);
特定限制
这些限制适用于特定情境。它们具有不同的输入参数,但都非常直观易懂。
- 工具类型 - 防止在匠作工作台制作特定类型的工具。例如,你可以限制直到特定阶段才能制作锤子。
mods.TinkerStages.addToolTypeStage(String stage, String toolId); - 材料阶段 - 防止玩家使用某种材料。包括制作、部件构建以及使用该工具。
mods.TinkerStages.addMaterialStage(String stage, String material); - 修饰符阶段 - 防止特定修饰符被应用到工具上或使用。
mods.TinkerStages.addModifierStage(String stage, String modifier);
示例脚本
//通用限制 //除非解锁阶段,否则禁止制作所有工具。 mods.TinkerStages.addGeneralCraftingStage("one");//除非解锁阶段,否则禁止交换所有工具部件。 mods.TinkerStages.addGeneralPartReplacingStage("one");
//除非解锁阶段,否则禁止构建所有部件。 mods.TinkerStages.addGeneralPartBuildingStage("one");
//除非解锁阶段,否则禁止应用任何工具修饰符。 mods.TinkerStages.addGeneralModifierStage("one");
//特定限制 //除非解锁阶段,否则禁止制作镐子。 mods.TinkerStages.addToolTypeStage("two", "tconstruct:pickaxe");
//禁止使用该材料。 mods.TinkerStages.addMaterialStage("two", "stone");
//禁止应用该修饰符。 mods.TinkerStages.addModifierStage("two", "mending_moss");
Tinker Stages
This mod is an addon for the GameStage API. This allows for access to aspects of Tinkers Construct to be put into custom progression systems. 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.
General Restrictions
These are restrictions that apply to entire systems rather than specific situations. These ZenScript methods have one input, which is the stage you want to restrict the system to. You can add multiple stages for the same system, and the player will have access to the system if they have at least one of those stages.
- Tool Crafting - Prevents the player from crafting tools in the Tinker tool station unless they have the stage.
mods.TinkerStages.addGeneralCraftingStage(String stage); - Part Replacing - Prevents the player from replacing tool parts at the tool station, unless they have the stage.
mods.TinkerStages.addGeneralPartReplacingStage(String stage); - Part Building - Prevents the player from building parts in the part builder, unless they have the stage.
mods.TinkerStages.addGeneralPartBuildingStage(String stage); - Applying Modifiers - Prevents the player from applying tool modifiers, unless they have the stage.
mods.TinkerStages.addGeneralModifierStage(String stage);
Specific Restrictions
These restrictions apply to a specific situation. They have varying inputs, but are all very straight forward.
- Tool Type - Prevents a specific tool type from being crafted at the tool station. For example, you can restrict the crafting of hammers until a specific stage.
mods.TinkerStages.addToolTypeStage(String stage, String toolId); - Material Stage - Prevents a material from being used by the player. Including crafting, part building, and using the tool.
mods.TinkerStages.addMaterialStage(String stage, String material); - Modifier Stage - Prevents a specific modifier from being applied to a tool or used.
mods.TinkerStages.addModifierStage(String stage, String modifier);
Example Script
//GENERAL RESTRICTIONS //Prevents all tools unless the stage is unlocked. mods.TinkerStages.addGeneralCraftingStage("one");//Prevents all tool swapping unless the stage is unlcoked. mods.TinkerStages.addGeneralPartReplacingStage("one");
//Prvents all part building unless the stage is unlocked. mods.TinkerStages.addGeneralPartBuildingStage("one");
//Prevents applying any tool modifiers unless the stage is unlocked. mods.TinkerStages.addGeneralModifierStage("one");
//SPECIFIC RESTRICTIONS //Prevents crafting pickaxes unless the stage is unlocked. mods.TinkerStages.addToolTypeStage("two", "tconstruct:pickaxe");
//Prevents the material from being used. mods.TinkerStages.addMaterialStage("two", "stone");
//Prevents the modifier from being applied. mods.TinkerStages.addModifierStage("two", "mending_moss");
下载 TinkerStages
下载 TinkerStages
下载 TinkerStages
下载 TinkerStages
下载 TinkerStages
下载 TinkerStages
下载 TinkerStages
下载 TinkerStages
下载 TinkerStages
下载 TinkerStages
- 合并来自 jriwanek/master 的拉取请求 #11 - Tyler Hancock
- 更新映射至 stable_39 - Jasmine Iwanek
- 更新 CurseGradle 至 1.1.0 - Jasmine Iwanek
- 更新 Gradle 至 4.9 - Jasmine Iwanek
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧