ScriptReloading - friendlyhj/ZenUtils GitHub Wiki
@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.
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.