Skip to content

ScriptReloading

youyihj edited this page Jun 1, 2023 · 10 revisions

Script Reloading

@since 1.12.0

ZenUtils allows you to reload some scripts. ZenUtils uses its own script loader reloadable to reload events, but it doesn't load scripts when game initializes. So you need to use multiple script loaders. CraftTweaker loader to load events when game starts, Reloadable loader to reload them.

These operations are reloadable:

Using

Add #loader crafttweaker reloadable to your event scripts. Then execute /ct reload to reload events.

Or #reloadable for alias (since 1.14.0)

Clone this wiki locally