Data packs

CC: Tweaked allows customising and extending many of its features via data packs, such as adding new programs to the ROM, or providing new turtle tools. This page serves as a reference for CC:T's data pack functionality.

Data pack compatibility

Unlike other parts of this documentation, the format of data packs change between Minecraft versions. Make sure you're using the right documentation for your Minecraft version.

In addition to this documentation, we also provide an online data pack builder and an example/template data pack.

CraftOS ROM

Datapacks can be used to add or overwrite files in CraftOS's ROM, allowing you to add new programs or modules, or adjust the behaviour of existing ones. Files should be placed in data/computercraft/lua/rom. For example, a datapack containing data/computercraft/lua/rom/programs/example.lua will add a new program example.

File naming

Data packs impose some restrictions on file names. As a result, all file and directory names must be lower case.

Tags

CC:T provides several block and item tags. While most tags are just used to group related blocks/items (e.g. computercraft:turtles is the list of all turtles), several can be extended by data packs to tweak functionality: