Item Stages
此模组是 GameStages API 的附加组件。它允许将物品和方块放入自定义的进度系统中。请查看 GameStage API 模组的描述以获取更多信息。简要来说,阶段(stages)是由整合包或服务器设置的进度系统的一部分。玩家通过命令获得阶段,该命令通常由任务模组、成就(advancement)甚至命令方块执行。
本项目由 Nodecraft 赞助。使用代码 DARKHAX 可在首月服务中享受 30% 折扣!
设置
此模组使用 CraftTweaker 进行配置。
此模组新增了一个用于添加物品阶段限制的 ZenScript 方法。你可以使用特定的物品/方块 ID,或者矿石字典条目。如果使用矿石字典,则该 oredict 的所有条目都将受到限制。mods.ItemStages.addItemStage(String stage, Item/Block/OreDict);
效果
当某物受此模组限制时,会发生以下几件事以防止玩家使用该物品。
- 手持受限物品会立即将其掉落。(可配置)
- 将物品装备到副手、护甲或饰品槽会导致其掉落。(可配置)
- 玩家无法对该物品进行右键或左键点击操作。(可配置)
- 工具提示将被替换为受限消息。
- 该物品在 JEI 中将不可见。
示例脚本
// Example Script
// Locks stone to stage one
mods.ItemStages.addItemStage("one", <minecraft:stone>);
// Locks all registered records to stage two
mods.ItemStages.addItemStage("two", <ore:record>);
// Locks all items from a mod to a stage
mods.ItemStages.stageModItems("one", "minecraft");
// Locks a liquid to a stage. This only affects JEI
mods.ItemStages.stageLiquid("nine", <liquid:water>);
Item Stages
This mod is an addon for the GameStages API. It allows for items and blocks to be placed 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.
This mod adds one new ZenScript method for adding item stage restrictions. You can use a specific item/block id, or an ore dictionary entry. If an ore dictionary is used, all entries for that oredict will be restricted. mods.ItemStages.addItemStage(String stage, Item/Block/OreDict);
Effects
When something is restricted by this mod, several things will happen to prevent the player from using the item.
- Holding a restricted item will cause it to be dropped immediately. (Configurable)
- Equipping the item to offhand, armor, or bauble slot will cause it to be dropped. (Configurable)
- Players can not right click or left click with the item. (Configurable)
- The tooltip will be replaced with a restricted message.
- The item will not be visible in JEI
Example Script
// Example Script
// Locks stone to stage one
mods.ItemStages.addItemStage("one", <minecraft:stone>);
// Locks all registered records to stage two
mods.ItemStages.addItemStage("two", <ore:record>);
// Locks all items from a mod to a stage
mods.ItemStages.stageModItems("one", "minecraft");
// Locks a liquid to a stage. This only affects JEI
mods.ItemStages.stageLiquid("nine", <liquid:water>);
下载 Item Stages
下载 Item Stages
下载 Item Stages
下载 Item Stages
下载 Item Stages
下载 Item Stages
下载 Item Stages
下载 Item Stages
下载 Item Stages
下载 Item Stages
- 修复了使用 CraftTweaker 脚本创建的自定义限制在专用客户端上未生效的问题。(2ceaff5)
本项目得益于像你这样的玩家在 Patreon 上的支持。非常感谢!
- lothrazar
- Spencer Gilbert
- mums spaghetti
- Pongo Sapiens
- noobanidus
- Darkosto
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧