Global ZenCode Keywords
This file contains a list of Global keywords you can use in CraftTweaker. These are used in order to do some menial tasks.
Global Functions
print(argument as string)Prints a string to thecrafttweaker.logfileprintln(argument as string)Prints a string, on a new line, to thecrafttweaker.logfile.
Global Getters
Global Getters get a value for you. They are mostly used for adding recipes.
blastFurnacegets you the BlastFurnaceRecipeManager Instance.campfiregets you the CampFireRecipeManager Instance.cauldrongets you the Cauldron Interaction Manager.compostergets you the Composter handler.craftingTablegets you the CraftingTableRecipeManager Instance.furnacegets you the FurnaceRecipeManager Instance.gamegets you the Game object for you to use.loadedModsgets you the list of Mods.lootgets you the LootManager Instance.recipesgets you the GenericRecipesManager Instance.smithinggets you the SmithingRecipeManager Instance.smokergets you the SmokerRecipeManager Instance.stonecuttergets you the StoneCutterManager Instance.tagsgets you the global CraftTweakerTagRegistry.villagerTradesgets you the VillagerTrades handler.
The CraftTweakerTagRegistry
The CraftTweakerTagRegistry is a class with a single method, used to do dynamic string manipulations with tags.
Since the following isn’t doable with tags:
var colour = "white" + "_";<tag:items:minecraft:${colour}wool>...This exists to amend that, so you can do:
var colour = "white" + "_";tags.tagManager(<resource:minecraft:items>).tag(<resource:minecraft:${colour}wool>)Forge Only
brewinggets you the Brewing manager from which you can use the methods inside of the class