Closed slava110 closed 1 year ago
use /kubejs reload startup_scripts
It doesn't reload Lychee custom actions defined in my script
does it work if you run /reload
then?
No it doesn't. /reload
only reloads server scripts. Currently Lychee requires full client restart to apply changes
Oh, I see. I need to use both /kubejs reload startup_scripts
and /reload
. That's weird. Is it possible to just use Server Scripts in the future?
probably not. because some part of the code will be executed on the client side (testInTooltipsFunc)
What if testInTooltips
will be on client side then? Something like LycheeEvents.customConditionTooltip(String conditionId, ...)
.
And customAction
, customCondition
will be used on server side.
not only that, the event.condition.testFunc
can also be executed on the client side
Mod loader
Forge
Minecraft version
1.19.2
Mod version
3.14.0
Modloader version
Forge 43.2.21
Modpack info
No response
If bug:
If bug: The latest.log file
No response
Issue description
It isn't convenient from modpack maker's perspective to reload minecraft after changing a few lines of code in KubeJS custom action or condition. Instead of using
Startup
scriptsServer
scripts could be used for KubeJS integration. It will allow modpack makers to make changes and test them right afterreload
command (instead of restarting the whole game).