mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-28 16:22:18 +00:00
Prepare for cc-tweaked-fabric
This commit is contained in:
parent
45e84e1ede
commit
07b13dd2b4
76
README.md
76
README.md
@ -1,75 +1,7 @@
|
|||||||
# 
|
# CC:T for Fabric
|
||||||
[](https://travis-ci.org/SquidDev-CC/CC-Tweaked "Current build status") [](https://minecraft.curseforge.com/projects/cc-tweaked "Download CC: Tweaked on CurseForge")
|
|
||||||
|
|
||||||
CC: Tweaked is a fork of [ComputerCraft](https://github.com/dan200/ComputerCraft), adding programmable computers,
|
* [Download on CurseForge](https://www.curseforge.com/minecraft/mc-mods/cc-tweaked-fabric)
|
||||||
turtles and more to Minecraft.
|
|
||||||
|
|
||||||
## What?
|
A fork of [CC: Tweaked](https://github.com/SquidDev-CC/CC-Tweaked) for use with the latest Fabric.
|
||||||
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
|
NOTE: This project is currently in alpha stage. It may not be well-tested and stable, so use it at your own peril!
|
||||||
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](https://github.com/SquidDev-CC/CC-Tweaked/releases)
|
|
||||||
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`.
|
|
||||||
|
|
||||||
## Community
|
|
||||||
If you need help getting started with CC: Tweaked, want to show off your latest project, or just want to chat about
|
|
||||||
ComputerCraft we have a [forum](https://forums.computercraft.cc/) and [Discord guild](https://discord.gg/H2UyJXe)!
|
|
||||||
There's also a fairly populated, albeit quiet [IRC channel](http://webchat.esper.net/?channels=#computercraft), if
|
|
||||||
that's more your cup of tea.
|
|
||||||
|
|
||||||
I'd generally recommend you don't contact me directly (email, DM, etc...) unless absolutely necessary (i.e. in order to
|
|
||||||
report exploits). You'll get a far quicker response if you ask the whole community!
|
|
||||||
|
|
||||||
## 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](https://cc.crzd.me/maven/) instead.
|
|
||||||
|
|
||||||
```groovy
|
|
||||||
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.
|
|
||||||
|
10
build.gradle
10
build.gradle
@ -19,7 +19,7 @@ apply plugin: 'maven'
|
|||||||
version = mod_version
|
version = mod_version
|
||||||
|
|
||||||
group = "org.squiddev"
|
group = "org.squiddev"
|
||||||
archivesBaseName = "cc-tweaked-${mc_version}"
|
archivesBaseName = "cc-t-fabric-${mc_version}"
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
}
|
}
|
||||||
@ -84,11 +84,11 @@ jar {
|
|||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes(["Specification-Title": "computercraft",
|
attributes(["Specification-Title": "computercraft",
|
||||||
"Specification-Vendor": "SquidDev",
|
"Specification-Vendor": "parly",
|
||||||
"Specification-Version": "25.0",
|
"Specification-Version": "25.0",
|
||||||
"Implementation-Title": "CC: Tweaked",
|
"Implementation-Title": "CC:T for Fabric",
|
||||||
"Implementation-Version": "${mod_version}",
|
"Implementation-Version": "${mod_version}",
|
||||||
"Implementation-Vendor" :"SquidDev",
|
"Implementation-Vendor" :"parly",
|
||||||
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")])
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")])
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ task checkRelease {
|
|||||||
|
|
||||||
// Check we're targetting the current version
|
// Check we're targetting the current version
|
||||||
def whatsnew = new File("src/main/resources/data/computercraft/lua/rom/help/whatsnew.txt").readLines()
|
def whatsnew = new File("src/main/resources/data/computercraft/lua/rom/help/whatsnew.txt").readLines()
|
||||||
if (whatsnew[0] != "New features in CC: Tweaked $mod_version") {
|
if (whatsnew[0] != "New features in CC:T for Fabric $mod_version") {
|
||||||
ok = false
|
ok = false
|
||||||
project.logger.error("Expected `whatsnew.txt' to target $mod_version.")
|
project.logger.error("Expected `whatsnew.txt' to target $mod_version.")
|
||||||
}
|
}
|
||||||
|
@ -9,4 +9,4 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = "cc-tweaked-${mc_version}-fabric"
|
rootProject.name = "cc-t-fabric-${mc_version}"
|
||||||
|
@ -2,19 +2,20 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
|
|
||||||
"id": "computercraft",
|
"id": "computercraft",
|
||||||
"name": "CC: Tweaked",
|
"name": "CC:T for Fabric",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"description": "CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles and more to Minecraft.",
|
"description": "A fork of CC: Tweaked for use with the latest Fabric.",
|
||||||
"license": "ComputerCraft Public License",
|
"license": "ComputerCraft Public License",
|
||||||
"icon": "assets/computercraft/pack.png",
|
"icon": "assets/computercraft/pack.png",
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://github.com/SquidDev-CC/CC-Tweaked",
|
"homepage": "https://github.com/mystiacraft/cc-tweaked-fabric",
|
||||||
"issues": "https://github.com/SquidDev-CC/CC-Tweaked/issues"
|
"issues": "https://github.com/mystiacraft/cc-tweaked-fabric/issues"
|
||||||
},
|
},
|
||||||
"authors": [
|
"authors": [
|
||||||
"Daniel Ratcliffe",
|
"Daniel Ratcliffe",
|
||||||
"Aaron Mills",
|
"Aaron Mills",
|
||||||
"SquidDev"
|
"SquidDev",
|
||||||
|
"parly"
|
||||||
],
|
],
|
||||||
"requires": {
|
"requires": {
|
||||||
"fabricloader": ">=0.4.0",
|
"fabricloader": ">=0.4.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"pack_format": 4,
|
"pack_format": 4,
|
||||||
"description": "CC: Tweaked"
|
"description": "CC:T for Fabric"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user