Link to commands
CraftTweaker adds commands that will help you with the creation of scripts, they are provided to help reduce the development time of writing scripts.
The prefix for commands are:
You can also use one of these aliases:
All the commands can be found ingame by doing:
List of commands
Link to list-of-commands
Link to biomes
Lists all of the biomes that are in the game.
Link to biometypes
Lists all of the biomeTypes that are in the game.
Link to blockinfo
Activates or deactivates the block reader. In block info mode, right-clicking a block will tell you it's name, metadata and Tile Entity data if applicable.
Link to blocks
Outputs a list of all the blocks in the game to the crafttweaker.log file.
Link to bugs
Opens your browser with the GitHub bug tracker.
Link to conflict
Outputs a list of all conflicting crafting table recipes to the crafttweaker.log file.
Note that this only works on a CLIENT with JEI installed!
Link to discord
Opens your browser with a link to the Discord server.
Link to docs
Opens your browser to this docs page (same as
Link to dumpzs
Outputs a ZenScript dump to a crafttweaker_dump folder within your minecraft directory as HTML file.
You can use one or more dump targets that will be executed consecutively (if you provide a target twice it will run twice).
The targets can be found using auto-complete (tab key).
json are registered as targets.
This will include all registered Bracket Handlers, ZenTypes, Global Functions, ZenExpansions an all Registered Packages including their methods.
Note that not all of these can be used from within the scripts!
Link to entities
Outputs a list of all the entities in the game to the crafttweaker.log file.
Link to give-item
/crafttweaker give <minecraft:bedrock>
/ct give <minecraft:bedrock>
Gives the player the item using CrT's Bracket handler syntax.
You can also apply tags by appending a
Note that this is a pretty simple parser and may not work for every case!
Link to hand
Prints the name of the item in your hand to the chat.
Also copies the name to clipboard and prints oredict entries.
Link to inventory
Outputs a list of all the items in your inventory to the crafttweaker.log file.
Link to jeicategories
Outputs a list of all registered jei categories to the crafttweaker.log file.
Requires JEI to be installed (surprise)!
Link to json
/crafttweaker json escaped
/ct json escaped
Prints the nbt of the item in your hand as JSON to the chat.
This format differs from the IData formatting CraftTweaker uses.
You can click it to be copied to your clipboard.
You can also privide the
escaped argumetn to automatically escape the resulting string.
Link to liquids
Outputs a list of all the liquids in the game to the crafttweaker.log file.
Link to log
Sends a clickable link to open the crafttweaker.log.
Link to mods
Outputs a list of all the mods and their versions in the game to the crafttweaker.log file and prints it in chat.
Link to names
/crafttweaker names [category]
/ct names [category]
Outputs a list of all the items in the game to the crafttweaker.log file.
category argument is optional and will extend the list with the according information:
You can also see all the available parameters using the TAB-Key autocompletion feature.
Link to nbt
Outputs the NBT of the block you are looking at or the item you are holding to the crafttweaker.log file.
Link to oredict
/crafttweaker oredict <name>
/ct oredict <name>
Outputs a list of all the OreDict entries in the game to the crafttweaker.log file.
If a name is supplied, the names of all the items registered to the oredict will be outputted to the crafttweaker.log file.
Link to potions
Outputs a list of all the potions in the game to the crafttweaker.log file.
Link to recipenames
/crafttweaker recipeNames [modid]
/ct recipeNames [modid]
Outputs a list of all recipe names in the game to the crafttweaker.log file.
A modid can be provided to filter results.
Link to recipes
Outputs a list of all the crafting recipes in the game to the crafttweaker.log file.
Link to recipes-hand
/crafttweaker recipes hand
/ct recipes hand
Outputs a list of all the crafting recipes for the item in the player's hand in the game to the crafttweaker.log file.
Link to recipes-furnace
/crafttweaker recipes furnace
/ct recipes furnace
Outputs a list of all the furnace recipes in the game to the crafttweaker.log file.
Link to scripts
Sends a clickable link to open the scripts directory.
Can also be executed from a command line which instead prints the absolute path to the directory to the log.
Link to seeds
Outputs a list of all the items in the seed registry to the crafttweaker.log file.
Link to syntax
Reads through all your scripts and will output all errors it finds in your syntaxes. Note that this won't apply your script changes, you need to restart your game to see them in effect.
Link to wiki
Opens your browser to this wiki page (same as
Link to zslint
Starts the zslint socket.