Препроцессор загрузчика

Link to препроцессор-загрузчика

The loader preprocessor will set the script's loaders.

You call the loader Preprocessor by adding #loader loaderNames... to your script file with loaderNames... being the names of the loaders you want to assign the script to, seperated by spaces.
Example 1: #loader contenttweaker
Example 2: #loader preinit crafttweaker gregtech

Что он делает

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

Scripts with the loader Preprocessor will only be loaded by the loaders specified.
In the first example above, crafttweaker's loader won't touch the file, instead the loader called "contenttweaker" will execute that script.
In the second example, the loaders called "preinit", "crafttweaker" and "gregtech" will each execute that script.
If you don't specify that preprocessor, it will default to being just "crafttweaker".
Is is highly recommended that you define only a single loader for a script running any code, as executing it multiple times with different loaders will usually lead to errors or undefined behaviour.
Defining multiple loaders is useful for declaring static variables and custom functions in utility scripts which are available during multiple loaders' execution via cross-script references.