Ore Stages
本模组是 GameStage API 的一个附加组件。它允许将世界中的方块(如矿石)放入游戏阶段中。请查阅 GameStage API 模组的描述以获取更多信息。简要来说,阶段是由整合包或服务器设置的进度系统的一部分。玩家通过指令获得阶段,该指令通常由任务模组、进度或命令方块执行。

本项目由 Nodecraft 赞助。使用代码 DARKHAX 可享受首月服务 30% 的折扣!
设置
本模组使用 CraftTweaker 进行配置。
被分级后会发生什么?
如果玩家没有对应的阶段权限:
- 该方块会显示为其隐藏所替代的方块的样子。
- 玩家将无法右键点击该方块。
- 该方块掉落其替代方块应有的物品。
- 挖掘该方块所需的时间与其替代方块相同。
在没有玩家在场的情況下,默认假设为没有阶段限制。这被称为“默认行为”(defaulting behavior)。
将方块恢复为正常状态会导致卡顿吗?
取消隐藏方块的速度非常快。该过程涉及重新加载客户端的区块渲染器。虽然听起来可能复杂或导致卡顿,但实际上非常简单,即使在较慢的电脑上也最多只需一两秒。这与原版游戏中按 F3 + A 的效果相同。
CraftTweaker 方法
此方法可用于将方块替换为原版石头。
mods.orestages.OreStages.addReplacement(String stage, IIngredient original);
此方法可用于将方块替换为另一个方块。
mods.orestages.OreStages.addReplacement(String stage, IIngredient original, IItemStack replacement);
此方法可通过指定确切的方块 ID 来将方块替换为另一个方块。上述两种方法仅适用于有物品的方块。
mods.orestages.OreStages.addReplacementById(String stage, String original, String replacement);
以下方法用于添加不使用默认行为的替换。这意味着如果没有玩家破坏该方块(如水、爆炸、机器),则该方块会像未被隐藏一样被破坏。
mods.orestages.OreStages.addNonDefaultingReplacement(String stage, IIngredient original);
mods.orestages.OreStages.addNonDefaultingReplacement(String stage, IIngredient original, IItemStack replacement);
mods.orestages.OreStages.addNonDefaultingReplacementById(String stage, String original, String replacement);
示例脚本
mods.orestages.OreStages.addReplacementById("one", "minecraft:potatoes:*", "minecraft:tallgrass:2");
mods.orestages.OreStages.addReplacementById("two", "minecraft:wheat:*", "minecraft:carrots:3");
mods.orestages.OreStages.addReplacementById("three", "minecraft:nether_wart:*", "minecraft:beetroots");
mods.orestages.OreStages.addReplacement("four", <minecraft:dirt>, <minecraft:stone>);
mods.orestages.OreStages.addReplacement("one", <minecraft:obsidian>, <minecraft:cobblestone>);
mods.orestages.OreStages.addNonDefaultingReplacement("one", <minecraft:torch:*>, <minecraft:redstone_torch>);
mods.orestages.OreStages.addReplacement("five", <minecraft:furnace:*>, <minecraft:stone>);
Ore Stages
This mod is an addon for the GameStage API. It allows for blocks in the world, like ores, to be put into game stages. 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.
What happens when staged?
If a player does not have the right stage for the block
- The block will look like the block it is hidden as.
- The player will not be able to right click the block.
- The block will drop the items it's replacement would drop.
- The block will take as long to mine as it's replacement.
In situations where no player is present, it will be assumed that there is no stage. This is referred to as defaulting behavior.
Will changing blocks back to normal cause any lag?
Unhiding the blocks is very fast. The process involves reloading the chunk renderers on the the client. While this may sound complicated or laggy, it's actually very simple that on even slower computers will only take a second or two at most. This is the same as pressing f3 + a in vanilla.
CraftTweaker methods
This method can be used to replace a block with vanilla stone.
mods.orestages.OreStages.addReplacement(String stage, IIngredient original);
This method can be used to replace a block with another block.
mods.orestages.OreStages.addReplacement(String stage, IIngredient original, IItemStack replacement);
This method can be used to replace a block with another block by specifying exact block ids. The above two methods only work for blocks with items.
mods.orestages.OreStages.addReplacementById(String stage, String original, String replacement);
The following methods are used to add a replacement which do not use the defaulting behavior. Meaning if no player broke the block (water, explosion, machine) the block will break as if it was not hidden.
mods.orestages.OreStages.addNonDefaultingReplacement(String stage, IIngredient original);
mods.orestages.OreStages.addNonDefaultingReplacement(String stage, IIngredient original, IItemStack replacement);
mods.orestages.OreStages.addNonDefaultingReplacementById(String stage, String original, String replacement);
Example Script
mods.orestages.OreStages.addReplacementById("one", "minecraft:potatoes:*", "minecraft:tallgrass:2");
mods.orestages.OreStages.addReplacementById("two", "minecraft:wheat:*", "minecraft:carrots:3");
mods.orestages.OreStages.addReplacementById("three", "minecraft:nether_wart:*", "minecraft:beetroots");
mods.orestages.OreStages.addReplacement("four", <minecraft:dirt>, <minecraft:stone>);
mods.orestages.OreStages.addReplacement("one", <minecraft:obsidian>, <minecraft:cobblestone>);
mods.orestages.OreStages.addNonDefaultingReplacement("one", <minecraft:torch:*>, <minecraft:redstone_torch>);
mods.orestages.OreStages.addReplacement("five", <minecraft:furnace:*>, <minecraft:stone>);
下载 Ore Stages
下载 Ore Stages
下载 Ore Stages
下载 Ore Stages
下载 Ore Stages
下载 Ore Stages
下载 Ore Stages
下载 Ore Stages
下载 Ore Stages
下载 Ore Stages
- 合并 'master' 分支的 - Tyler Hancock
- 如果玩家为空,则默认使用替换模型。#18 - Tyler Hancock
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
评论 0
登录后参与评分
还没有评论,来抢沙发吧