Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Packmode Preprocessor

The Packmode Preprocessor will change the script to only be executed if a certain packmode is enabled in the packmode config file

Call

You call the Packmode Preprocessor by adding #packmode mode(s) to your script file, with mode(s) being the pack mode(s) you want the script to run in

Example

#packmode normal expert would enable the script in normal and expert mode

script.zs
#packmode normal
import crafttweaker.items.IItemStack;
print("If I appear on your CT-logs, packmode normal is enabled!");

What it does

The Processor will only allow the script to be executed if a certain packmode is enabled.