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
- Crafted by brainsweep recipes
- all from
Akashic Record as source block
- Places to take effect:
- Inventory (default: false)
- Main/Off hand (default: true; takes no effect if
Inventory set to true)
- Ender Chest (default: false)
- Curios/Trinkets slots (default: true)
- config entries controlling whether sources above are enabled
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)
}
);
entityId and iotaTypeId accept ResourceLocation strings. Iota type IDs under the minecraft namespace are automatically remapped to hexcasting.
- 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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧