Packmode Preprocessor

Link to packmode-preprocessor

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

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

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

ZenScript
Copy
#packmode normal
import crafttweaker.items.IItemStack;

print("If I appear on your CT-logs, packmode normal is enabled!");

Что он делает

Link to что-он-делает

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