HexAutomata
提供能够监听各类游戏事件并触发自定义法术的物品;同时进一步拓展了古老“脑扫”(Brainsweep)法术的可能性。
功能特性
我发现了一种方法——利用定居村民心智中的智慧,结合来自野生生物的某些特殊“概念”——来创造一种特殊的施法者:反应焦点(Reactive Focus)。
Reactive Focus:与玩家身上发生的特定游戏事件绑定的焦点- 可监听的事件:
- 敌人锁定玩家(无标签
#hexautomata:ignore_targeting) - 玩家受到伤害(来源和攻击者均无标签
#hexautomata:ignore_hurt) - 玩家发射投射物
- 投射物击中某物
- 近战攻击某物
- 击杀某物
- 被传送
- 敌人锁定玩家(无标签
- 通过脑扫配方制作
- 所有配方均以
Akashic Record作为源方块
- 所有配方均以
- 生效位置:
- 物品栏(默认:关闭)
- 主手/副手(默认:开启;若“物品栏”设为开启则此选项无效)
- 末影箱(默认:关闭)
- Curios/Trinkets 槽位(默认:开启)
- 配置文件中的条目用于控制上述各项是否启用
- 可监听的事件:
Reactive Focus Nexus:持有多个 Reactive Focus 的物品- 内部的所有焦点均如同处于外部状态一样生效
- 通过多区块结构制作,最后一步为另一次脑扫(接受带有标签
#hexautomata:multi_threaded的目标)
- 仅在触发的法术事件中生效的特殊模式
我是心智,而心智即是媒介……躯体是容器,沉重且脆弱……我将展露我的心智,使我脱离躯壳,我将看见更多,我……
- 基于成就的进阶流程及扩展 Brainsweep 强大法术的功能 :3
- 一种新的传送方式
交互支持
KubeJS
HAPatches 和 PatchAction
允许整合包制作者以与 OpBrainsweep 相同的方式修补动作。
同时暴露两个特殊错误类型:USE_ORIGINAL 和 STOP_ALL,以便更好地控制自定义脑扫行为。
BrainsweepCallback
向服务端/启动脚本绑定暴露 BrainsweepCallback,允许注册自定义的脑扫回调函数。
注册回调:
BrainsweepCallback.create(priority,
entityId, iotaTypeId, // 可为空的类型 ID
(entity, iota, env) => {
// 返回 SpellAction.Result 或 null
return BrainsweepCallback.buildResult(env => {
// 执行某些操作
// 或者在此处停止
throw PatchAction.STOP_ALL
}, 0)
}
);
entityId和iotaTypeId接受ResourceLocation格式的字符串。minecraft命名空间下的 Iota 类型 ID 会自动重映射到hexcasting。- 使用
BrainsweepCallback.forceSet(key, callback)覆盖现有的回调注册。
HexParse
通过 HexParseAPI.CreateItemIOMethod 将 Reactive Focus 注册为物品 I/O 处理器,使 HexParse 能够直接从 Reactive Focus 物品中读取和写入 iota。
HexAutomata
Provides items with ability listening to various game events and triggering custom spells; along with extending more possibilities about the ancient Brainsweep spell.
Features
I found a way - using the intelligence from a settled villager mind, with some special "concepts" from wild creatures - to create a kind of special spell-casters: Reactive Focus.
Reactive Focus: focus bound with certain game events happening on player- Events to listen to:
- enemy targeting player (without tag
#hexautomata:ignore_targeting) - player taking damage (both source and attacker without tag
#hexautomata:ignore_hurt) - player shooting projectile
- projectile hit something
- melee attack something
- killing something
- being teleported
- enemy targeting player (without tag
- Crafted by brainsweep recipes
- all from
Akashic Recordas source block
- all from
- Places to take effect:
- Inventory (default: false)
- Main/Off hand (default: true; takes no effect if
Inventoryset to true) - Ender Chest (default: false)
- Curios/Trinkets slots (default: true)
- config entries controlling whether sources above are enabled
- Events to listen to:
Reactive Focus Nexus: an item holding multiple Reactive Focuses- all inner focuses take effect as if they're outside
- crafted with a multiblock structure, ending with another brainsweep (accepting targets with tag
#hexautomata:multi_threaded)
- Special patterns taking effect exclusively inside triggered events
I am mind, and mind is media... Body is the vessel, heavy and fragile... I shall expose my mind, taking me out of the vessel, I shall see more, I ...
- Another advancement-based progression and functions extending Brainsweep great spell :3
- a new way of transportation
Interop
KubeJS
HAPatches and PatchAction
Allowing packmakers to patch actions the same way as OpBrainsweep.
Also exposes two special errors: USE_ORIGINAL and STOP_ALL for better control over custom brainsweeps.
BrainsweepCallback
Exposes BrainsweepCallback to server/startup scripts binding, allowing custom brainsweep callbacks to be registered.
Registering a callback:
BrainsweepCallback.create(priority,
entityId, iotaTypeId, // nullable type ids
(entity, iota, env) => {
// return SpellAction.Result or null
return BrainsweepCallback.buildResult(env => {
// do something
// or stop here
throw PatchAction.STOP_ALL
}, 0)
}
);
entityIdandiotaTypeIdacceptResourceLocationstrings. Iota type IDs under theminecraftnamespace are automatically remapped tohexcasting.- Use
BrainsweepCallback.forceSet(key, callback)to override an existing callback registration.
HexParse
Registers Reactive Focus as an item I/O handler via HexParseAPI.CreateItemIOMethod, enabling HexParse to read and write iotas directly from/to Reactive Focus items.
下载 HexAutomata
下载 HexAutomata
下载 HexAutomata
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HexAutomata
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HexAutomata
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HexAutomata
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HexAutomata
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HexAutomata
下载 HexAutomata
下载 HexAutomata
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
已移除调试日志刷屏问题
已更新为 Pre 64 最新官方 1.21 alpha;更多信息请参阅 此 Discord 公告
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧