Provides items with ability listening to various game events and triggering custom spells; along with extending more possibilities about the ancient Brainsweep spell.
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#hexautomata:ignore_targeting)#hexautomata:ignore_hurt)Akashic Record as source blockInventory set to true)Reactive Focus Nexus: an item holding multiple Reactive Focuses#hexautomata:multi_threaded)

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 …
HAPatches and PatchActionAllowing 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.
BrainsweepCallbackExposes 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.BrainsweepCallback.forceSet(key, callback) to override an existing callback registration.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.