#how to create an addon
10 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
theres documentation on the github about this https://github.com/KubeJS-Mods/KubeJS#:~:text=for more information.-,Creating addons,-Creating addon mods
There's no other place that I could use?
Look at how any other addon does it
a lot of addons only change the recipes but I want to do something like this for a cobblemon addon
Custom Pokeball item builder type, allows defining a function which changes the catch modifier.
context could have access to the Player using the ball, the Ball's Itemstack, and Target Pokemon
Custom Move builder, allows setting move properties and defining a function executed when the move connects.
context could have access to all combatants, with way to access the User and Target quickly, and potentially a boolean of if the target is an ally.
Ultimately you just have to make an EventJS class, an EventGroup, and then register the event group for any events.
As for registry based things, you make a Builder class and then register that in your KubeJS Plugin.
If you look at how KubeJS itself registers them in BuiltinKubeJSPlugin then you should be able to get a good example