Skip to content

ScriptReloading

youyihj edited this page Sep 23, 2023 · 10 revisions

Script Reloading

@since 1.12.0

ZenUtils allows you to reload some scripts. By default, all scripts are not reloadable. Some configurations is 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 operators may produce unexpected behaviors, you are supposed to add #notreloadable preprocessor to mark some script not reloadable explicitly.

Clone this wiki locally