MCPcopy Index your code
hub / github.com/cc-tweaked/CC-Tweaked

github.com/cc-tweaked/CC-Tweaked @v26.2-1.120.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v26.2-1.120.0 ↗ · + Follow
6,803 symbols 21,074 edges 893 files 1,817 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CC: Tweaked

Current build status Download CC: Tweaked on Modrinth

CC: Tweaked is a mod for Minecraft which adds programmable computers, turtles and more to the game. A fork of the much-beloved ComputerCraft, it continues its legacy with improved performance and stability, along with a wealth of new features.

CC: Tweaked can be installed from Modrinth. It runs on both Minecraft Forge and Fabric.

Contributing

Any contribution is welcome, be that using the mod, reporting bugs or contributing code. If you want to get started developing the mod, check out the instructions here.

Community

If you need help getting started with CC: Tweaked, want to show off your latest project, or just want to chat about ComputerCraft, do check out our GitHub discussions page! There's also a fairly populated, albeit quiet IRC channel on EsperNet, if that's more your cup of tea. You can join #computercraft through your desktop client, or online using KiwiIRC.

We also host fairly comprehensive documentation at tweaked.cc.

Using

CC: Tweaked is hosted on my maven repo, and so is relatively simple to depend on. You may wish to add a soft (or hard) dependency in your mods.toml file, with the appropriate version bounds, to ensure that API functionality you depend on is present.

repositories {
  maven {
    url "https://maven.squiddev.cc"
    content {
      includeGroup("cc.tweaked")
    }
  }
}

dependencies {
  // Vanilla (i.e. for multi-loader systems)
  compileOnly("cc.tweaked:cc-tweaked-$mcVersion-common-api:$cctVersion")

  // Forge Gradle
  compileOnly("cc.tweaked:cc-tweaked-$mcVersion-forge-api:$cctVersion")
  runtimeOnly("cc.tweaked:cc-tweaked-$mcVersion-forge:$cctVersion")

  // Fabric Loom
  modCompileOnly("cc.tweaked:cc-tweaked-$mcVersion-fabric-api:$cctVersion")
  modRuntimeOnly("cc.tweaked:cc-tweaked-$mcVersion-fabric:$cctVersion")
}

You should also be careful to only use classes within the dan200.computercraft.api package. Non-API classes are subject to change at any point. If you depend on functionality outside the API (or need to mixin to CC:T), please file an issue to let me know!

We bundle the API sources with the jar, so documentation should be easily viewable within your editor. Alternatively, the generated documentation can be browsed online.

Extension points exported contracts — how you extend this code

IPeripheral (Interface)
A peripheral is an external device that a computer can interact with. Peripherals can be supplied by both a block (o [17 …
projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheral.java
AddressPredicate (Interface)
A predicate on an address. Matches against a domain and an ip address. @see AddressRule#apply(Iterable, String, InetSoc [19 …
projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java
TurtleUpgradeModel (Interface)
The model for a ITurtleUpgrade. Turtle upgrade models are very similar to vanilla's ItemModel. Each [6 implementers]
projects/common-api/src/client/java/dan200/computercraft/api/client/turtle/TurtleUpgradeModel.java
RegisterExtraModels (Interface)
A callback used to register a model for a ModelKey. [35 implementers]
projects/common/src/client/java/dan200/computercraft/client/ClientRegistry.java
TickablePeripheral (Interface)
A peripheral which will be updated every time the computer ticks. [23 implementers]
projects/web/src/main/java/cc/tweaked/web/peripheral/TickablePeripheral.java
ExtendedOrderedSubmitNodeCollector (Interface)
Extension interface to OrderedSubmitNodeCollector that allows submitting monitor contents. @see MonitorBlockEnt [2 implementers]
projects/fabric/src/client/java/dan200/computercraft/impl/client/ExtendedOrderedSubmitNodeCollector.java
ComputerCraftAPIForgeService (Interface)
A Forge-specific version of ComputerCraftAPIService. Do NOT directly reference this class. [1 implementers]
projects/forge-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIForgeService.java
FabricComputerCraftAPIClientService (Interface)
Backing interface for CC's client-side API. Do NOT directly reference this class. It exists for int [1 implementers]
projects/fabric-api/src/client/java/dan200/computercraft/impl/client/FabricComputerCraftAPIClientService.java

Core symbols most depended-on inside this repo

get
called by 318
projects/common/src/main/java/dan200/computercraft/shared/platform/PlatformHelper.java
get
called by 313
projects/common/src/client/java/dan200/computercraft/client/platform/ModelKey.java
add
called by 266
projects/common/src/datagen/java/dan200/computercraft/data/DataProviders.java
isEmpty
called by 236
projects/common/src/main/java/dan200/computercraft/shared/container/BasicContainer.java
put
called by 197
projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTable.java
of
called by 194
projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/XYPair.java
getLevel
called by 173
projects/common-api/src/main/java/dan200/computercraft/api/network/PacketSender.java
get
called by 167
projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTable.java

Shape

Method 5,535
Class 975
Interface 155
Function 104
Enum 34

Languages

Java92%
Kotlin6%
TypeScript1%
Python1%

Modules by API surface

projects/core/src/test/java/dan200/computercraft/core/asm/GeneratorTest.java63 symbols
projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleBrain.java60 symbols
projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Turtle_Test.kt58 symbols
projects/common/src/main/java/dan200/computercraft/shared/turtle/apis/TurtleAPI.java50 symbols
projects/fabric/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java48 symbols
projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerComputer.java47 symbols
projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorBlockEntity.java46 symbols
projects/common/src/main/java/dan200/computercraft/shared/ModRegistry.java45 symbols
projects/core/src/test/java/dan200/computercraft/core/asm/MethodTest.java44 symbols
projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/TurtleBlockEntity.java44 symbols
projects/forge/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java43 symbols
projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemPeripheral.java42 symbols

For agents

$ claude mcp add CC-Tweaked \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page