Modernized/improved/actually updated version of ComputerCraft: https://tweaked.cc
Go to file
SquidDev f9e13ca67a Update CC: Tweaked to 1.13
Look, I originally had this split into several commits, but lots of
other cleanups got mixed in. I then backported some of the cleanups to
1.12, did other tidy ups there, and eventually the web of merges was
unreadable.

Yes, this is a horrible mess, but it's still nicer than it was. Anyway,
changes:

 - Flatten everything. For instance, there are now three instances of
   BlockComputer, two BlockTurtle, ItemPocketComputer. There's also no
   more BlockPeripheral (thank heavens) - there's separate block classes
   for each peripheral type.

 - Remove pretty much all legacy code. As we're breaking world
   compatibility anyway, we can remove all the code to load worlds from
   1.4 days.
 - The command system is largely rewriten to take advantage of 1.13's
   new system. It's very fancy!

 - WidgetTerminal now uses Minecraft's "GUI listener" system.

 - BREAKING CHANGE: All the codes in keys.lua are different, due to the
   move to LWJGL 3. Hopefully this won't have too much of an impact.

   I don't want to map to the old key codes on the Java side, as there
   always ends up being small but slight inconsistencies. IMO it's
   better to make a clean break - people should be using keys rather
   than hard coding the constants anyway.

 - commands.list now allows fetching sub-commands. The ROM has already
   been updated to allow fancy usage such as commands.time.set("noon").

 - Turtles, modems and cables can be waterlogged.
2019-04-02 20:59:48 +01:00
.github/ISSUE_TEMPLATE Update GitHub templates, removing CC repo links 2019-02-18 23:35:50 +00:00
gradle/wrapper Update CC: Tweaked to 1.13 2019-04-02 20:59:48 +01:00
src Update CC: Tweaked to 1.13 2019-04-02 20:59:48 +01:00
tools Update and rename all resources 2019-04-02 13:18:43 +01:00
.editorconfig A wee bit of a cleanup of the API 2018-12-17 21:33:49 +00:00
.gitignore WIP: Http rework (#98) 2019-01-11 11:33:05 +00:00
.luacheckrc Add a .luacheckrc file 2018-12-17 18:09:32 +00:00
.travis.yml Build against Oracle JDK 8 instead 2017-09-10 20:45:24 +01:00
LICENSE Fixed possible Typo. (#337) 2017-06-28 21:39:54 +01:00
README.md Add a section on how to depend on CC:T 2019-03-04 22:59:38 +00:00
build.gradle Update CC: Tweaked to 1.13 2019-04-02 20:59:48 +01:00
codeInspectionSettings.xml Some further cleanup and 1.13 cherry-picks 2019-04-02 12:08:03 +01:00
codeStyleSettings.xml Add custom code style settings 2018-12-23 17:45:04 +00:00
gradle.properties Update CC: Tweaked to 1.13 2019-04-02 20:59:48 +01:00
gradlew Update Gradle and build system 2017-11-14 22:42:03 +00:00
gradlew.bat Update Gradle and build system 2017-11-14 22:42:03 +00:00
logo.png Add a subjectively fancy logo 2017-11-15 18:20:22 +00:00
settings.gradle Several recipe improvements 2019-03-19 11:59:23 +00:00

README.md

CC: Tweaked

Build Status

CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles and more to Minecraft.

What?

ComputerCraft has always held a fond place in my heart: it's the mod which really got me into Minecraft, and it's the mod which has kept me playing it for many years. However, development of the original mod has slowed, as the original developers have had less time to work on the mod, and moved onto other projects and commitments.

CC:Tweaked (or CC:T for short) is an attempt to continue ComputerCraft's legacy. It's not intended to be a competitor to CC, nor do I want to take it in a vastly different direction to the original mod. Instead, CC:T focuses on making the ComputerCraft experience as solid as possible, ironing out any wrinkles that may have developed over time.

Features

CC: Tweaked contains all the features of the latest version of ComputerCraft, as well as numerous fixes, performance improvements and several nifty additions. I'd recommend checking out the releases page to see the full set of changes, but here's a couple of the more interesting additions:

  • Improvements to the http library, including websockets, support for other HTTP methods (PUT, DELETE, etc...) and configurable limits on HTTP usage.
  • Full-block wired modems, allowing one to wrap non-solid peripherals (such as turtles, or chests if Plethora is installed).
  • Pocket computers can be held like maps, allowing you to view the screen without entering a GUI.
  • Printed pages and books can be placed in item frames and held like maps.
  • Several profiling and administration tools for server owners, via the /computercraft command. This allows operators to track which computers are hogging resources, turn on and shutdown multiple computers at once and interact with computers remotely.
  • Closer emulation of standard Lua, adding the debug and io libraries. This also enables seeking within binary files, meaning you don't need to read large files into memory.
  • Allow running multiple computers on multiple threads, reducing latency on worlds with many computers.

Relation to CCTweaks?

This mod has nothing to do with CCTweaks, though there is no denying the name is a throwback to it. That being said, several features have been included, such as full block modems, the Cobalt runtime and map-like rendering for pocket computers.

Contributing

Any contribution is welcome, be that using the mod, reporting bugs or contributing code. In order to start helping develop CC:T, you'll need to follow these steps:

  • Clone the repository: git clone https://github.com/SquidDev-CC/CC-Tweaked.git && cd CC-Tweaked
  • Setup Forge: ./gradlew setupDecompWorkspace
  • Test your changes: ./gradlew runClient (or run the GradleStart class from your IDE).

If you want to run CC:T in a normal Minecraft instance, run ./gradlew build and copy the .jar from build/libs.

Using

If you want to depend on CC:Tweaked, we have a maven repo. However, you should be wary that some functionality is only exposed by CC:T's API and not vanilla ComputerCraft. If you wish to support all variations of ComputerCraft, I recommend using cc.crzd.me's maven instead.

dependencies {
  maven { url 'https://squiddev.cc/maven/' }
}

dependencies {
  implementation "org.squiddev:cc-tweaked:${mc_version}-${cct_version}"
}

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, file an issue, and we can look into exposing more features.