Lychee (Neo/Forge)

Lychee (Neo/Forge)

2M Downloads

Use KubeJS Server scripts instead of Startup scripts

slava110 opened this issue ยท 8 comments

commented

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:

  • Can you reproduce this issue with relevant mods only?

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 scripts Server scripts could be used for KubeJS integration. It will allow modpack makers to make changes and test them right after reload command (instead of restarting the whole game).

commented

does it work if you run /reload then?

commented

use /kubejs reload startup_scripts

commented

It doesn't reload Lychee custom actions defined in my script

commented

No it doesn't. /reload only reloads server scripts. Currently Lychee requires full client restart to apply changes

commented

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?

commented

probably not. because some part of the code will be executed on the client side (testInTooltipsFunc)

commented

What if testInTooltips will be on client side then? Something like LycheeEvents.customConditionTooltip(String conditionId, ...).
And customAction, customCondition will be used on server side.

commented

not only that, the event.condition.testFunc can also be executed on the client side