-
Notifications
You must be signed in to change notification settings - Fork 10
ScriptReloading
youyihj edited this page Sep 20, 2022
·
10 revisions
@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:
- Events
- LateSetCoTFunction
Add #loader crafttweaker reloadable
to your event scripts. Then execute /ct reload
to reload events.
- GlobalFunctions
- ScriptReloading
- SuppressErrorPreprocessor
- HardFailPreprocessor
- OrderlyMap
- IData Deep Update
- Template String
- Native Method Access
- Mixin
- CrTI18n
- CrTUUID
- CrTItemHandler
- CrTLiquidHandler
- ILiquidTankProperties
- StringList
- HexHelper
- StaticString
- Catenation
- PersistedCatenation
- PlayerStat
- IStatFormatter
- GameRuleHelper
- ZenCommand
- ZenCommandTree
- ZenUtilsCommandSender
- IGetCommandUsage
- ICommandExecute
- IGetTabCompletion
- CommandUtils