Description
EventTweaker is a **CraftTweaker addon for Minecraft 1.12.2**.
It exposes extra game/mod events and helper APIs to ZenScript, so you can customize behavior without writing a full core mod.
What this mod adds
Scriptable event hooks for:
- `ClientChatEvent`
- `ServerChatEvent`
- `PlayerFlyableFallEvent`
- Botania: `ManaChangeEvent`, `ManaDiscountEvent`
- RandomPortals: `NetherPortalEvent` (activate)
Utility APIs for scripts:
- `mods.eventtweaker.Minecraft` (e.g. FPS/fullscreen checks)
- `mods.eventtweaker.GlStateManager`
- Cyclic inventory helpers (`mods.eventtweaker.cyclicmagic.IPlayer`)
Dependencies
Required:
- CraftTweaker 2
- MixinBooter
Optional integrations:
- Botania
- RandomPortals
- Cyclic
- Bubbles (Baubles Fork)
Example
import mods.eventtweaker.event.ClientChatEvent;
events.onClientChat(function(event as ClientChatEvent) {
print(event.originalMessage);
});

