KubeJS (Old)

KubeJS (Old)

3M Downloads

[Request] Improved Client Reload

Brittank88 opened this issue ยท 2 comments

commented

Hoping for a clientside reloading command that allows you to control whether the textures/sound engine are reloaded. Sometimes we do want to reload textures, sometimes we only want to reload say, JEI.

In a way, the more granular this command can be in terms of what is actually reloaded, the better!

commented

@MaxNeedsSnacks Is this still planned? Perhaps, something like /kubejs reload x where x is the subsystem?

commented

Already done, see

.then(Commands.literal("client_scripts")
.requires(source -> true)
.executes(context -> reloadClient(context.getSource()))
)
.then(Commands.literal("textures")
.requires(source -> true)
.executes(context -> reloadTextures(context.getSource()))
)
.then(Commands.literal("lang")
.requires(source -> true)
.executes(context -> reloadLang(context.getSource()))
)