Block Skills
一个库模组,用于通过 KubeJS 脚本中创建的基于技能的限制来控制玩家查看和与流体交互的方式。这与 Ore Stages 类似。
xSkills Mods
Player Skills | Block Skills | Dimension Skills | Fluid Skills | Item Skills | Mob Skills
概念
本模组重度依赖 Player Skills,通过创建和消耗基于技能的限制来实现功能。开箱即用,本模组可以限制方块是否可以被挖掘、“使用”,或在被挖掘时是否掉落物品。它还提供了一种通过用空气或其他方块替换来隐藏世界中方块的方法(例如,使所有钻石矿脉看起来且掉落为石头)。请注意,这不会根据玩家手持的物品或玩家如何使用该方块作为物品来改变交互方式。不过,Item Skills 提供了这种互补的功能。
注意事项
由于事件的触发机制,KubeJS BlockEvents.rightClicked 事件将仅由_原始_方块触发。请确保在与方块交互相关的任何技能变更处理程序中重复使用相同的 player.can() 或 player.cannot() 限制条件。例如,如果你将 minecraft:diamond_ore 隐藏为 minecraft:stone,但同时会在玩家对钻石矿脉使用红石时触发技能变更,那么即使手持红石右键点击隐藏的钻石矿脉,如果未使用与隐藏方块相同的条件进行限制,仍会触发技能更新。
更多信息
文档、示例及其他内容可在 GitHub 上的 readme 中找到。
整合包
想在整合包中使用此模组?太棒了!本模组是专为整合包开发者设计的。无需询问许可。
Block Skills
A library mod to control how players see and interact with fluids using skill-based restrictions created in KubeJS scripts. This is similar to Ore Stages.
xSkills Mods
Player Skills | Block Skills | Dimension Skills | Fluid Skills | Item Skills | Mob Skills
Concepts
This mod leans extensively on Player Skills by creating and consuming the Skill-based Restrictions. Out of the box, this mod can restrict whether a block can be mined, "used", or if it drops anything when mined. It also provides a way to mask blocks in world by replacing them with either air or another block (e.g. make all diamond ore appear and drop as stone). Note that this does not alter interactions based on what items the player is holding or how the player can use the block as an item. However, Item Skills provides that complementary functionality.
Caveat
Because of how events are fired, KubeJS BlockEvents.rightClicked events will only be triggered with the original
block. Make sure that you reuse the same player.can() or player.cannot() restrictions on any relevant skill change
handlers connected to interacting with a block. For example, if you are hiding minecraft:diamond_ore
as minecraft:stone but are also triggering a skill change when a player uses redstone on diamond_ore, right clicking
on the hidden diamond ore with redstone in hand will still trigger the skill update if it's not restricted with the same
conditions that the hidden block is using.
More Information
Documentation, examples, and more can be found in the readme on Github.
Modpacks
Want to use this in a modpack? Great! This was designed with modpack developers in mind. No need to ask.
下载 Block Skills
下载 Block Skills
下载 Block Skills
下载 Block Skills
下载 Block Skills
下载 Block Skills
下载 Block Skills
下载 Block Skills
下载 Block Skills
下载 Block Skills
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧