KubeJS Custom Events
A KubeJS addon to allow users to implement mod events in their scripts
介绍
⚡ KubeJS Custom Events Addon
This is a lightweight utility add-on designed to bridge the gap between Java mod code and KubeJS scripts, significantly expanding your capabilities in modpack development.
🎯 Key Features
-
Custom Global Bindings: Exposes the Java-side method
OnCustomEventdirectly to KubeJS scripts. This allows any Java code in your mod (or any other mod you extend) to fire named, data-carrying events that can be intercepted and handled instantly by a JavaScript listener. -
External Event Bridge: Provides robust helper methods to easily register JavaScript listeners to complex NeoForge events (e.g., from mods like MineColonies, Botania, etc.). This makes handling intricate mod events simple and straightforward via KubeJS scripts.
-
Simplified Integration: Ideal for modpack creators and developers who need to connect deep Java logic (such as game state changes, API calls, or timed events) to a dynamic scripting environment without the need for constant recompilation.
In essence, this mod transforms hidden Java functionality into clean, scriptable KubeJS commands.
常见问题
KubeJS Custom Events 支持哪些 Minecraft 版本?
KubeJS Custom Events 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
KubeJS Custom Events 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Lillo97 的其他作品
查看全部 →KubeJS Minecolonies Events
KubeJS extension addon to use Minecolonies trigger events
HuntCraft
A hard RPG modpack, for lovers of adventure, exploration, magic, combact, pvp and pve. With over 160 mods, this pack will let you play a completly new game.
Simple Weavings
A simple modpack made with the most famous mods linked together with armony! Discover new mods and know them better! This modpack is in easy mode, maybe one day I'll release one in hard mode too, but if you want to chill, this is definitely your modpack!
Simple Weavings Extreme Edition
An expert mode modpack made to link together the most popular mods. It's a tech-magic based pack with around 230 mods linked together by custom recipes and guided by the quests.
评论
登录后评论和评分