-
Notifications
You must be signed in to change notification settings - Fork 0
Scripting With BindTweaker
tiffit edited this page Jul 22, 2018
·
1 revision
Note: This wiki will assume you have basic CraftTweaker/ZenScript knowledge. If you do not, please visit the CraftTweaker docs.
Bind Tweaker uses a separate loader to load Bind Tweaker scripts at a different time. All Bind Tweaker scripts must use this loader or else Bind Tweaker will not work. At the start of all Bind Tweaker script files, you must include the line #loader bindtweaker. Bind Tweaker scripts are run when forge is done with all mod loading, just before it switches to the main menu.
mod.bt.Binds.printBinds(); can be used to print all registered keybinds to the Craft Tweaker log.
The start of a BT script should look like:
#loader bindtweaker
import mod.bt.Binds;
//Prints all binds to crafttweaker log, for future reference
Binds.printBinds();