Headers

What are headers and how to use them


In 1.19.2+ you can add various headers to the top of a script to change its load conditions.
For example:
//ignored: true
console.log("I am never printed")
//packmode: default
console.log('I will only print when packmode in kubejs/config/common.properties is set to default')
You can stack them too!
//requires: minecraft
//requires: create
console.log('I will only print when mods with ids of minecraft AND create are loaded')
//priority: 10
//packmode: hard
//requires: create
//requires: tconstruct
console.log('I am complicated!')