Skip to content

ScriptReloading

youyihj edited this page Jan 29, 2024 · 10 revisions

Script Reloading

@since 1.12.0

ZenUtils allows you to reload some scripts. Run /ct reload command to reload scripts. By default, all scripts are not reloadable. Some configurations are required.

These operations are reloadable:

Install ZenRecipeReload to get recipe reloading.

Using

Basically, Add #reloadable preprocessor to mark a script reloadable.

Or call addReloadableLoader(loaderName as string) global function to mark all scripts with a specific loader reloadable. For example: addReloadableLoader("crafttweaker"). But "reload" some unsupported operations may produce unexpected behaviors, you are supposed to add #notreloadable preprocessor to mark some script not reloadable explicitly.

Clone this wiki locally