mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-04 23:53:01 +00:00
Compare commits
100 Commits
v1.12.2-1.
...
v1.14.4-1.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7c61f9c6d | ||
|
|
08a0342618 | ||
|
|
48cb032ddf | ||
|
|
a049502d12 | ||
|
|
ee391ae9ea | ||
|
|
4ed4a6409b | ||
|
|
e5cc345f49 | ||
|
|
d847a4d9e0 | ||
|
|
df557e03fa | ||
|
|
524b6f1d8a | ||
|
|
419f29321a | ||
|
|
00b41d29c1 | ||
|
|
95fee95006 | ||
|
|
b4e0e9984f | ||
|
|
03caf9d805 | ||
|
|
d6ea3aab1c | ||
|
|
bf6d017ad1 | ||
|
|
a706300598 | ||
|
|
2541c3c5e6 | ||
|
|
41a1b99f7d | ||
|
|
1862a439e2 | ||
|
|
0f82a4589b | ||
|
|
4320a4f851 | ||
|
|
037cbabb32 | ||
|
|
92567b4d7e | ||
|
|
3b7300543a | ||
|
|
642351af1a | ||
|
|
2d4a87adc9 | ||
|
|
bedac71e3d | ||
|
|
ee4e42e730 | ||
|
|
0de75f05dd | ||
|
|
be6dd21e54 | ||
|
|
927ddb0bde | ||
|
|
44d0f78c1b | ||
|
|
3ea2d6a0a8 | ||
|
|
f7781defe5 | ||
|
|
d342a1f368 | ||
|
|
81f85361d5 | ||
|
|
f1621b30ec | ||
|
|
d4f6a594b6 | ||
|
|
ff5ba5c131 | ||
|
|
4243f30308 | ||
|
|
b1139a4bf6 | ||
|
|
7e8559278e | ||
|
|
1e7f1c98fc | ||
|
|
f1d6d21d6d | ||
|
|
07a56454a0 | ||
|
|
a0e72d02c8 | ||
|
|
455a59ca85 | ||
|
|
08d22fd3df | ||
|
|
e6c691a8f8 | ||
|
|
4b0e5c445c | ||
|
|
cef2657048 | ||
|
|
ccd85eb055 | ||
|
|
acfb72246c | ||
|
|
9d51c4c340 | ||
|
|
18068effec | ||
|
|
6ea8ca991b | ||
|
|
f1e551b960 | ||
|
|
772c54ec74 | ||
|
|
13cb789c18 | ||
|
|
42220c4268 | ||
|
|
3052506e2e | ||
|
|
0741daa7eb | ||
|
|
b4aa554279 | ||
|
|
8fe2abe0ae | ||
|
|
5af789ae11 | ||
|
|
68542aca3a | ||
|
|
594bc4203c | ||
|
|
57318b022d | ||
|
|
761159aa93 | ||
|
|
8dd1c2a6cc | ||
|
|
d10b657a54 | ||
|
|
f90da739eb | ||
|
|
d9cadf64e8 | ||
|
|
15d4a55cd8 | ||
|
|
39a9ad0ce7 | ||
|
|
0f3c44c926 | ||
|
|
b6715bd812 | ||
|
|
18aee02221 | ||
|
|
401bbf2e6a | ||
|
|
7467b7f88a | ||
|
|
c82d8a7c2a | ||
|
|
3d67421d98 | ||
|
|
bb138326df | ||
|
|
e0660b1dab | ||
|
|
2182cfbeb7 | ||
|
|
2c027adb68 | ||
|
|
4a25e7a178 | ||
|
|
55d54fec63 | ||
|
|
220e4bd660 | ||
|
|
362dbd97ac | ||
|
|
aa0e1883d1 | ||
|
|
9cdbcb4332 | ||
|
|
23ddd4feb5 | ||
|
|
fcaa777c95 | ||
|
|
7afc3e5260 | ||
|
|
f9e13ca67a | ||
|
|
810258e9b8 | ||
|
|
5e462adc5c |
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Ignore changes in generated files
|
||||||
|
src/generated/resources/data/** linguist-generated
|
||||||
7
.github/workflows/main-ci.yml
vendored
7
.github/workflows/main-ci.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 1.8
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build --no-daemon
|
run: ./gradlew build --no-daemon || ./gradlew build --no-daemon
|
||||||
|
|
||||||
- name: Upload Jar
|
- name: Upload Jar
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
@@ -32,9 +32,6 @@ jobs:
|
|||||||
name: CC-Tweaked
|
name: CC-Tweaked
|
||||||
path: build/libs
|
path: build/libs
|
||||||
|
|
||||||
- name: Upload Coverage
|
|
||||||
run: bash <(curl -s https://codecov.io/bash)
|
|
||||||
|
|
||||||
lint-lua:
|
lint-lua:
|
||||||
name: Lint Lua
|
name: Lint Lua
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
2
.github/workflows/make-doc.yml
vendored
2
.github/workflows/make-doc.yml
vendored
@@ -4,6 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
tags:
|
tags:
|
||||||
|
release:
|
||||||
|
types: [ published ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
make_doc:
|
make_doc:
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -23,3 +23,5 @@
|
|||||||
.settings/
|
.settings/
|
||||||
bin/
|
bin/
|
||||||
*.launch
|
*.launch
|
||||||
|
|
||||||
|
/src/generated/resources/.cache
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ In order to develop CC: Tweaked, you'll need to download the source code and the
|
|||||||
process.
|
process.
|
||||||
|
|
||||||
- **Clone the repository:** `git clone https://github.com/SquidDev-CC/CC-Tweaked.git && cd CC-Tweaked`
|
- **Clone the repository:** `git clone https://github.com/SquidDev-CC/CC-Tweaked.git && cd CC-Tweaked`
|
||||||
- **Setup Forge:** `./gradlew setupDecompWorkspace`
|
- **Setup Forge:** `./gradlew build`
|
||||||
- **Run Minecraft:** `./gradlew runClient` (or run the `GradleStart` class from your IDE).
|
- **Run Minecraft:** `./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`.
|
If you want to run CC:T in a normal Minecraft instance, run `./gradlew build` and copy the `.jar` from `build/libs`.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# 
|
# 
|
||||||
[](https://github.com/SquidDev-CC/CC-Tweaked/actions "Current build status") [](https://minecraft.curseforge.com/projects/cc-tweaked "Download CC: Tweaked on CurseForge")
|
[](https://github.com/SquidDev-CC/CC-Tweaked/actions "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,
|
CC: Tweaked is a fork of [ComputerCraft](https://github.com/dan200/ComputerCraft), adding programmable computers,
|
||||||
@@ -60,7 +60,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "org.squiddev:cc-tweaked-${mc_version}:${cct_version}"
|
implementation fg.deobf("org.squiddev:cc-tweaked-${mc_version}:${cct_version}")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
134
build.gradle
134
build.gradle
@@ -1,8 +1,7 @@
|
|||||||
|
|
||||||
// For those who want the bleeding edge
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
|
mavenCentral()
|
||||||
maven {
|
maven {
|
||||||
name = "forge"
|
name = "forge"
|
||||||
url = "https://files.minecraftforge.net/maven"
|
url = "https://files.minecraftforge.net/maven"
|
||||||
@@ -10,21 +9,20 @@ buildscript {
|
|||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.google.code.gson:gson:2.8.1'
|
classpath 'com.google.code.gson:gson:2.8.1'
|
||||||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
classpath 'net.minecraftforge.gradle:ForgeGradle:3.0.154'
|
||||||
classpath 'net.sf.proguard:proguard-gradle:6.1.0beta1'
|
classpath 'net.sf.proguard:proguard-gradle:6.1.0beta2'
|
||||||
classpath 'org.ajoberstar.grgit:grgit-gradle:3.0.0'
|
classpath 'org.ajoberstar.grgit:grgit-gradle:3.0.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "checkstyle"
|
id "checkstyle"
|
||||||
id "jacoco"
|
|
||||||
id "com.github.hierynomus.license" version "0.15.0"
|
id "com.github.hierynomus.license" version "0.15.0"
|
||||||
id "com.matthewprenger.cursegradle" version "1.3.0"
|
id "com.matthewprenger.cursegradle" version "1.3.0"
|
||||||
id "com.github.breadmoirai.github-release" version "2.2.4"
|
id "com.github.breadmoirai.github-release" version "2.2.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
apply plugin: 'net.minecraftforge.gradle'
|
||||||
apply plugin: 'org.ajoberstar.grgit'
|
apply plugin: 'org.ajoberstar.grgit'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
@@ -35,12 +33,52 @@ group = "org.squiddev"
|
|||||||
archivesBaseName = "cc-tweaked-${mc_version}"
|
archivesBaseName = "cc-tweaked-${mc_version}"
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "${mc_version}-${forge_version}"
|
runs {
|
||||||
runDir = "run"
|
client {
|
||||||
replace '${version}', mod_version
|
workingDirectory project.file('run')
|
||||||
|
property 'forge.logging.markers', 'REGISTRIES'
|
||||||
|
property 'forge.logging.console.level', 'debug'
|
||||||
|
|
||||||
mappings = mappings_version
|
mods {
|
||||||
makeObfSourceJar = false
|
computercraft {
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
workingDirectory project.file('run')
|
||||||
|
property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP'
|
||||||
|
property 'forge.logging.console.level', 'debug'
|
||||||
|
|
||||||
|
mods {
|
||||||
|
computercraft {
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
data {
|
||||||
|
workingDirectory project.file('run')
|
||||||
|
property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP'
|
||||||
|
property 'forge.logging.console.level', 'debug'
|
||||||
|
|
||||||
|
args '--mod', 'computercraft', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
||||||
|
mods {
|
||||||
|
computercraft {
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mappings channel: 'snapshot', version: "${mappings_version}".toString()
|
||||||
|
|
||||||
|
accessTransformer file('src/main/resources/META-INF/accesstransformer.cfg')
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets.main.resources {
|
||||||
|
srcDir 'src/generated/resources'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -48,18 +86,6 @@ repositories {
|
|||||||
name "SquidDev"
|
name "SquidDev"
|
||||||
url "https://squiddev.cc/maven"
|
url "https://squiddev.cc/maven"
|
||||||
}
|
}
|
||||||
ivy {
|
|
||||||
name "Charset"
|
|
||||||
artifactPattern "https://asie.pl/files/mods/Charset/LibOnly/[module]-[revision](-[classifier]).[ext]"
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name "Amadornes"
|
|
||||||
url "https://maven.amadornes.com/"
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name "CraftTweaker"
|
|
||||||
url "https://maven.blamejared.com/"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@@ -71,12 +97,12 @@ configurations {
|
|||||||
dependencies {
|
dependencies {
|
||||||
checkstyle "com.puppycrawl.tools:checkstyle:8.25"
|
checkstyle "com.puppycrawl.tools:checkstyle:8.25"
|
||||||
|
|
||||||
deobfProvided "CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.20.554"
|
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
|
||||||
deobfProvided "MCMultiPart2:MCMultiPart:2.5.3"
|
|
||||||
deobfProvided "mezz.jei:jei_1.12.2:4.15.0.269:api"
|
|
||||||
deobfProvided "pl.asie:Charset-Lib:0.5.4.6"
|
|
||||||
|
|
||||||
runtime "mezz.jei:jei_1.12.2:4.15.0.269"
|
compileOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.27:api")
|
||||||
|
compileOnly fg.deobf("com.blamejared.crafttweaker:CraftTweaker-1.14.4:5.0.1.162")
|
||||||
|
|
||||||
|
runtimeOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.27")
|
||||||
|
|
||||||
shade 'org.squiddev:Cobalt:0.5.1-SNAPSHOT'
|
shade 'org.squiddev:Cobalt:0.5.1-SNAPSHOT'
|
||||||
|
|
||||||
@@ -96,7 +122,13 @@ jar {
|
|||||||
dependsOn javadoc
|
dependsOn javadoc
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes('FMLAT': 'computercraft_at.cfg')
|
attributes(["Specification-Title": "computercraft",
|
||||||
|
"Specification-Vendor": "SquidDev",
|
||||||
|
"Specification-Version": "1",
|
||||||
|
"Implementation-Title": "CC: Tweaked",
|
||||||
|
"Implementation-Version": "${mod_version}",
|
||||||
|
"Implementation-Vendor" :"SquidDev",
|
||||||
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")])
|
||||||
}
|
}
|
||||||
|
|
||||||
from (sourceSets.main.allSource) {
|
from (sourceSets.main.allSource) {
|
||||||
@@ -108,7 +140,7 @@ jar {
|
|||||||
|
|
||||||
[compileJava, compileTestJava].forEach {
|
[compileJava, compileTestJava].forEach {
|
||||||
it.configure {
|
it.configure {
|
||||||
options.compilerArgs << "-Xlint" << "-Xlint:-processing" << "-Werror"
|
options.compilerArgs << "-Xlint" << "-Xlint:-processing"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,10 +177,14 @@ task proguard(type: ProGuardTask, dependsOn: jar) {
|
|||||||
dontobfuscate; dontoptimize; keepattributes; keepparameternames
|
dontobfuscate; dontoptimize; keepattributes; keepparameternames
|
||||||
|
|
||||||
// Proguard will remove directories by default, but that breaks JarMount.
|
// Proguard will remove directories by default, but that breaks JarMount.
|
||||||
keepdirectories 'assets/computercraft/lua**'
|
keepdirectories 'data/computercraft/lua**'
|
||||||
|
|
||||||
// Preserve ComputerCraft classes - we only want to strip shadowed files.
|
// Preserve ComputerCraft classes - we only want to strip shadowed files.
|
||||||
keep 'class dan200.computercraft.** { *; }'
|
keep 'class dan200.computercraft.** { *; }'
|
||||||
|
|
||||||
|
// LWJGL and Apache bundle Java 9 versions, which is great, but rather breaks Proguard
|
||||||
|
dontwarn 'module-info'
|
||||||
|
dontwarn 'org.apache.**,org.lwjgl.**'
|
||||||
}
|
}
|
||||||
|
|
||||||
task proguardMove(dependsOn: proguard) {
|
task proguardMove(dependsOn: proguard) {
|
||||||
@@ -164,7 +200,7 @@ task proguardMove(dependsOn: proguard) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
reobfJar.dependsOn proguardMove
|
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
inputs.property "version", mod_version
|
inputs.property "version", mod_version
|
||||||
@@ -186,8 +222,8 @@ processResources {
|
|||||||
inputs.property "commithash", hash
|
inputs.property "commithash", hash
|
||||||
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
include 'mcmod.info'
|
include 'META-INF/mods.toml'
|
||||||
include 'assets/computercraft/lua/rom/help/credits.txt'
|
include 'data/computercraft/lua/rom/help/credits.txt'
|
||||||
|
|
||||||
expand 'version': mod_version,
|
expand 'version': mod_version,
|
||||||
'mcversion': mc_version,
|
'mcversion': mc_version,
|
||||||
@@ -195,12 +231,12 @@ processResources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
exclude 'mcmod.info'
|
exclude 'META-INF/mods.toml'
|
||||||
exclude 'assets/computercraft/lua/rom/help/credits.txt'
|
exclude 'data/computercraft/lua/rom/help/credits.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task compressJson(dependsOn: extractAnnotationsJar) {
|
task compressJson(dependsOn: jar) {
|
||||||
group "compact"
|
group "compact"
|
||||||
description "Minifies all JSON files, stripping whitespace"
|
description "Minifies all JSON files, stripping whitespace"
|
||||||
|
|
||||||
@@ -252,15 +288,6 @@ test {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
jacocoTestReport {
|
|
||||||
reports {
|
|
||||||
xml.enabled true
|
|
||||||
html.enabled true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
check.dependsOn jacocoTestReport
|
|
||||||
|
|
||||||
license {
|
license {
|
||||||
mapping("java", "SLASHSTAR_STYLE")
|
mapping("java", "SLASHSTAR_STYLE")
|
||||||
strictCheck true
|
strictCheck true
|
||||||
@@ -307,14 +334,14 @@ task checkRelease {
|
|||||||
description "Verifies that everything is ready for a release"
|
description "Verifies that everything is ready for a release"
|
||||||
|
|
||||||
inputs.property "version", mod_version
|
inputs.property "version", mod_version
|
||||||
inputs.file("src/main/resources/assets/computercraft/lua/rom/help/changelog.txt")
|
inputs.file("src/main/resources/data/computercraft/lua/rom/help/changelog.txt")
|
||||||
inputs.file("src/main/resources/assets/computercraft/lua/rom/help/whatsnew.txt")
|
inputs.file("src/main/resources/data/computercraft/lua/rom/help/whatsnew.txt")
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
def ok = true
|
def ok = true
|
||||||
|
|
||||||
// Check we're targetting the current version
|
// Check we're targetting the current version
|
||||||
def whatsnew = new File("src/main/resources/assets/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: Tweaked $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.")
|
||||||
@@ -331,7 +358,7 @@ task checkRelease {
|
|||||||
|
|
||||||
// Check whatsnew and changelog match.
|
// Check whatsnew and changelog match.
|
||||||
def versionChangelog = "# " + whatsnew.join("\n")
|
def versionChangelog = "# " + whatsnew.join("\n")
|
||||||
def changelog = new File("src/main/resources/assets/computercraft/lua/rom/help/changelog.txt").getText()
|
def changelog = new File("src/main/resources/data/computercraft/lua/rom/help/changelog.txt").getText()
|
||||||
if (!changelog.startsWith(versionChangelog)) {
|
if (!changelog.startsWith(versionChangelog)) {
|
||||||
ok = false
|
ok = false
|
||||||
project.logger.error("whatsnew and changelog are not in sync")
|
project.logger.error("whatsnew and changelog are not in sync")
|
||||||
@@ -359,7 +386,7 @@ publishing {
|
|||||||
publications {
|
publications {
|
||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
from components.java
|
from components.java
|
||||||
artifact sourceJar
|
// artifact sourceJar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -419,7 +446,7 @@ githubRelease {
|
|||||||
tagName "v${mc_version}-${mod_version}"
|
tagName "v${mc_version}-${mod_version}"
|
||||||
releaseName "[${mc_version}] ${mod_version}"
|
releaseName "[${mc_version}] ${mod_version}"
|
||||||
body {
|
body {
|
||||||
"## " + new File("src/main/resources/assets/computercraft/lua/rom/help/whatsnew.txt")
|
"## " + new File("src/main/resources/data/computercraft/lua/rom/help/whatsnew.txt")
|
||||||
.readLines()
|
.readLines()
|
||||||
.takeWhile { it != 'Type "help changelog" to see the full version history.' }
|
.takeWhile { it != 'Type "help changelog" to see the full version history.' }
|
||||||
.join("\n").trim()
|
.join("\n").trim()
|
||||||
@@ -434,6 +461,3 @@ task uploadAll(dependsOn: uploadTasks) {
|
|||||||
group "upload"
|
group "upload"
|
||||||
description "Uploads to all repositories (Maven, Curse, GitHub release)"
|
description "Uploads to all repositories (Maven, Curse, GitHub release)"
|
||||||
}
|
}
|
||||||
|
|
||||||
runClient.outputs.upToDateWhen { false }
|
|
||||||
runServer.outputs.upToDateWhen { false }
|
|
||||||
|
|||||||
@@ -156,7 +156,7 @@
|
|||||||
<module name="WhitespaceAround">
|
<module name="WhitespaceAround">
|
||||||
<property name="allowEmptyConstructors" value="true" />
|
<property name="allowEmptyConstructors" value="true" />
|
||||||
<property name="ignoreEnhancedForColon" value="false" />
|
<property name="ignoreEnhancedForColon" value="false" />
|
||||||
<property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,DO_WHILE,EQUAL,GE,GT,LAMBDA,LAND,LCURLY,LE,LITERAL_RETURN,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND" />
|
<property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAMBDA,LAND,LCURLY,LE,LITERAL_RETURN,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND" />
|
||||||
</module>
|
</module>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
|||||||
@@ -1,77 +1,6 @@
|
|||||||
--- Execute a specific command.
|
|
||||||
--
|
|
||||||
-- @tparam string command The command to execute.
|
|
||||||
-- @treturn boolean Whether the command executed successfully.
|
|
||||||
-- @treturn { string... } The output of this command, as a list of lines.
|
|
||||||
-- @treturn number|nil The number of "affected" objects, or `nil` if the command
|
|
||||||
-- failed. The definition of this varies from command to command.
|
|
||||||
-- @usage Set the block above the command computer to stone.
|
|
||||||
--
|
|
||||||
-- commands.exec("setblock ~ ~1 ~ minecraft:stone")
|
|
||||||
function exec(command) end
|
function exec(command) end
|
||||||
|
|
||||||
--- Asynchronously execute a command.
|
|
||||||
--
|
|
||||||
-- Unlike @{exec}, this will immediately return, instead of waiting for the
|
|
||||||
-- command to execute. This allows you to run multiple commands at the same
|
|
||||||
-- time.
|
|
||||||
--
|
|
||||||
-- When this command has finished executing, it will queue a `task_complete`
|
|
||||||
-- event containing the result of executing this command (what @{exec} would
|
|
||||||
-- return).
|
|
||||||
--
|
|
||||||
-- @tparam string command The command to execute.
|
|
||||||
-- @treturn number The "task id". When this command has been executed, it will
|
|
||||||
-- queue a `task_complete` event with a matching id.
|
|
||||||
-- @usage Asynchronously sets the block above the computer to stone.
|
|
||||||
--
|
|
||||||
-- commands.execAsync("~ ~1 ~ minecraft:stone")
|
|
||||||
-- @see parallel One may also use the parallel API to run multiple commands at
|
|
||||||
-- once.
|
|
||||||
function execAsync(commad) end
|
function execAsync(commad) end
|
||||||
|
|
||||||
--- List all available commands which the computer has permission to execute.
|
|
||||||
--
|
|
||||||
-- @treturn { string... } A list of all available commands
|
|
||||||
function list() end
|
function list() end
|
||||||
|
|
||||||
--- Get the position of the current command computer.
|
|
||||||
--
|
|
||||||
-- @treturn number This computer's x position.
|
|
||||||
-- @treturn number This computer's y position.
|
|
||||||
-- @treturn number This computer's z position.
|
|
||||||
-- @see gps.locate To get the position of a non-command computer.
|
|
||||||
function getBlockPosition() end
|
function getBlockPosition() end
|
||||||
|
|
||||||
--- Get some basic information about a block.
|
|
||||||
--
|
|
||||||
-- The returned table contains the current name, metadata and block state (as
|
|
||||||
-- with @{turtle.inspect}). If there is a tile entity for that block, its NBT
|
|
||||||
-- will also be returned.
|
|
||||||
--
|
|
||||||
-- @tparam number x The x position of the block to query.
|
|
||||||
-- @tparam number y The y position of the block to query.
|
|
||||||
-- @tparam number z The z position of the block to query.
|
|
||||||
-- @treturn table The given block's information.
|
|
||||||
-- @throws If the coordinates are not within the world, or are not currently
|
|
||||||
-- loaded.
|
|
||||||
function getBlockInfo(x, y, z) end
|
|
||||||
|
|
||||||
--- Get information about a range of blocks.
|
|
||||||
--
|
|
||||||
-- This returns the same information as @{getBlockInfo}, just for multiple
|
|
||||||
-- blocks at once.
|
|
||||||
--
|
|
||||||
-- Blocks are traversed by ascending y level, followed by z and x - the returned
|
|
||||||
-- table may be indexed using `x + z*width + y*depth*depth`.
|
|
||||||
--
|
|
||||||
-- @tparam number min_x The start x coordinate of the range to query.
|
|
||||||
-- @tparam number min_y The start y coordinate of the range to query.
|
|
||||||
-- @tparam number min_z The start z coordinate of the range to query.
|
|
||||||
-- @tparam number max_x The end x coordinate of the range to query.
|
|
||||||
-- @tparam number max_y The end y coordinate of the range to query.
|
|
||||||
-- @tparam number max_z The end z coordinate of the range to query.
|
|
||||||
-- @treturn { table... } A list of information about each block.
|
|
||||||
-- @throws If the coordinates are not within the world.
|
|
||||||
-- @throws If trying to get information about more than 4096 blocks.
|
|
||||||
function getBlockInfos(min_x, min_y, min_z, max_x, max_y, max_z) end
|
function getBlockInfos(min_x, min_y, min_z, max_x, max_y, max_z) end
|
||||||
|
function getBlockInfo(x, y, z) end
|
||||||
|
|||||||
@@ -19,48 +19,6 @@ function getFreeSpace(path) end
|
|||||||
function find(pattern) end
|
function find(pattern) end
|
||||||
function getDir(path) end
|
function getDir(path) end
|
||||||
|
|
||||||
--- Returns true if a path is mounted to the parent filesystem.
|
|
||||||
--
|
|
||||||
-- The root filesystem "/" is considered a mount, along with disk folders and
|
|
||||||
-- the rom folder. Other programs (such as network shares) can exstend this to
|
|
||||||
-- make other mount types by correctly assigning their return value for getDrive.
|
|
||||||
--
|
|
||||||
-- @tparam string path The path to check.
|
|
||||||
-- @treturn boolean If the path is mounted, rather than a normal file/folder.
|
|
||||||
-- @throws If the path does not exist.
|
|
||||||
-- @see getDrive
|
|
||||||
function isDriveRoot(path) end
|
|
||||||
|
|
||||||
--- Get the capacity of the drive at the given path.
|
|
||||||
--
|
|
||||||
-- This may be used in conjunction with @{getFreeSpace} to determine what
|
|
||||||
-- percentage of this drive has been used.
|
|
||||||
--
|
|
||||||
-- @tparam string path The path of the drive to get.
|
|
||||||
-- @treturn number This drive's capacity. This will be 0 for "read-only" drives,
|
|
||||||
-- such as the ROM or treasure disks.
|
|
||||||
function getCapacity(path) end
|
|
||||||
|
|
||||||
--- Get attributes about a specific file or folder.
|
|
||||||
--
|
|
||||||
-- The returned attributes table contains information about the size of the
|
|
||||||
-- file, whether it is a directory, and when it was created and last modified.
|
|
||||||
--
|
|
||||||
-- The creation and modification times are given as the number of milliseconds
|
|
||||||
-- since the UNIX epoch. This may be given to @{os.date} in order to convert it
|
|
||||||
-- to more usable form.
|
|
||||||
--
|
|
||||||
-- @tparam string path The path to get attributes for.
|
|
||||||
-- @treturn { size = number, isDir = boolean, created = number, modified = number }
|
|
||||||
-- The resulting attributes.
|
|
||||||
-- @throws If the path does not exist.
|
|
||||||
-- @see getSize If you only care about the file's size.
|
|
||||||
-- @see isDir If you only care whether a path is a directory or not.
|
|
||||||
function attributes(path) end
|
|
||||||
|
|
||||||
-- Defined in bios.lua
|
|
||||||
function complete(sPath, sLocation, bIncludeFiles, bIncludeDirs) end
|
|
||||||
|
|
||||||
--- A file handle which can be read from.
|
--- A file handle which can be read from.
|
||||||
--
|
--
|
||||||
-- @type ReadHandle
|
-- @type ReadHandle
|
||||||
|
|||||||
@@ -15,10 +15,3 @@ function cancelTimer(id) end
|
|||||||
function cancelAlarm(id) end
|
function cancelAlarm(id) end
|
||||||
function epoch(timezone) end
|
function epoch(timezone) end
|
||||||
function date(format, time) end
|
function date(format, time) end
|
||||||
|
|
||||||
-- Defined in bios.lua
|
|
||||||
function loadAPI(path) end
|
|
||||||
function pullEvent(filter) end
|
|
||||||
function pullEventRaw(filter) end
|
|
||||||
function version() end
|
|
||||||
function run(env, path, ...) end
|
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
--[[-
|
|
||||||
Control the current pocket computer, adding or removing upgrades.
|
|
||||||
|
|
||||||
This API is only available on pocket computers. As such, you may use its
|
|
||||||
presence to determine what kind of computer you are using:
|
|
||||||
|
|
||||||
```lua
|
|
||||||
if pocket then
|
|
||||||
print("On a pocket computer")
|
|
||||||
else
|
|
||||||
print("On something else")
|
|
||||||
end
|
|
||||||
```
|
|
||||||
]]
|
|
||||||
|
|
||||||
--- Search the player's inventory for another upgrade, replacing the existing
|
|
||||||
-- one with that item if found.
|
|
||||||
--
|
|
||||||
-- This inventory search starts from the player's currently selected slot,
|
|
||||||
-- allowing you to prioritise upgrades.
|
|
||||||
--
|
|
||||||
-- @throws If an upgrade cannot be found.
|
|
||||||
function equipBack() end
|
|
||||||
|
|
||||||
--- Remove the pocket computer's current upgrade.
|
|
||||||
--
|
|
||||||
-- @throws If this pocket computer does not currently have an upgrade.
|
|
||||||
function unequipBack() end
|
|
||||||
@@ -1,120 +1,14 @@
|
|||||||
--[[- Interact with redstone attached to this computer.
|
|
||||||
|
|
||||||
The @{redstone} library exposes three "types" of redstone control:
|
|
||||||
- Binary input/output (@{setOutput}/@{getInput}): These simply check if a
|
|
||||||
redstone wire has any input or output. A signal strength of 1 and 15 are
|
|
||||||
treated the same.
|
|
||||||
- Analogue input/output (@{setAnalogueOutput}/@{getAnalogueInput}): These
|
|
||||||
work with the actual signal strength of the redstone wired, from 0 to 15.
|
|
||||||
- Bundled cables (@{setBundledOutput}/@{getBundledInput}): These interact with
|
|
||||||
"bundled" cables, such as those from Project:Red. These allow you to send
|
|
||||||
16 separate on/off signals. Each channel corresponds to a colour, with the
|
|
||||||
first being @{colors.white} and the last @{colors.black}.
|
|
||||||
|
|
||||||
Whenever a redstone input changes, a `redstone` event will be fired. This may
|
|
||||||
be used in or
|
|
||||||
|
|
||||||
This module may also be referred to as `rs`. For example, one may call
|
|
||||||
`rs.getSides()` instead of @{redstone.getSides}.
|
|
||||||
|
|
||||||
@module redstone
|
|
||||||
@usage Toggle the redstone signal above the computer every 0.5 seconds.
|
|
||||||
|
|
||||||
while true do
|
|
||||||
redstone.setOutput("top", not redstone.getOutput("top"))
|
|
||||||
sleep(0.5)
|
|
||||||
end
|
|
||||||
@usage Mimic a redstone comparator in [subtraction mode][comparator].
|
|
||||||
|
|
||||||
while true do
|
|
||||||
local rear = rs.getAnalogueInput("back")
|
|
||||||
local sides = math.max(rs.getAnalogueInput("left"), rs.getAnalogueInput("right"))
|
|
||||||
rs.setAnalogueOutput("front", math.max(rear - sides, 0))
|
|
||||||
|
|
||||||
os.pullEvent("redstone") -- Wait for a change to inputs.
|
|
||||||
end
|
|
||||||
|
|
||||||
[comparator]: https://minecraft.gamepedia.com/Redstone_Comparator#Subtract_signal_strength "Redstone Comparator on the Minecraft wiki."
|
|
||||||
]]
|
|
||||||
|
|
||||||
--- Returns a table containing the six sides of the computer. Namely, "top",
|
|
||||||
-- "bottom", "left", "right", "front" and "back".
|
|
||||||
--
|
|
||||||
-- @treturn { string... } A table of valid sides.
|
|
||||||
function getSides() end
|
function getSides() end
|
||||||
|
|
||||||
--- Turn the redstone signal of a specific side on or off.
|
|
||||||
--
|
|
||||||
-- @tparam string side The side to set.
|
|
||||||
-- @tparam boolean on Whether the redstone signal should be on or off. When on,
|
|
||||||
-- a signal strength of 15 is emitted.
|
|
||||||
function setOutput(side, on) end
|
function setOutput(side, on) end
|
||||||
|
|
||||||
--- Get the current redstone output of a specific side.
|
|
||||||
--
|
|
||||||
-- @tparam string side The side to get.
|
|
||||||
-- @treturn boolean Whether the redstone output is on or off.
|
|
||||||
-- @see setOutput
|
|
||||||
function getOutput(side) end
|
function getOutput(side) end
|
||||||
|
|
||||||
--- Get the current redstone input of a specific side.
|
|
||||||
--
|
|
||||||
-- @tparam string side The side to get.
|
|
||||||
-- @treturn boolean Whether the redstone input is on or off.
|
|
||||||
function getInput(side) end
|
function getInput(side) end
|
||||||
|
function setBundledOutput(side, output) end
|
||||||
--- Set the redstone signal strength for a specific side.
|
function getBundledOutput(side) end
|
||||||
--
|
function getBundledInput(side) end
|
||||||
-- @tparam string side The side to set.
|
function testBundledInput(side, mask) end
|
||||||
-- @tparam number value The signal strength, between 0 and 15.
|
|
||||||
-- @throws If `value` is not between 0 and 15.
|
|
||||||
function setAnalogOutput(side, value) end
|
function setAnalogOutput(side, value) end
|
||||||
setAnalogueOutput = setAnalogOutput
|
setAnalogueOutput = setAnalogOutput
|
||||||
|
|
||||||
--- Get the redstone output signal strength for a specific side.
|
|
||||||
--
|
|
||||||
-- @tparam string side The side to get.
|
|
||||||
-- @treturn number The output signal strength, between 0 and 15.
|
|
||||||
-- @see setAnalogueOutput
|
|
||||||
function getAnalogOutput(sid) end
|
function getAnalogOutput(sid) end
|
||||||
getAnalogueOutput = getAnalogOutput
|
getAnalogueOutput = getAnalogOutput
|
||||||
|
|
||||||
--- Get the redstone input signal strength for a specific side.
|
|
||||||
--
|
|
||||||
-- @tparam string side The side to get.
|
|
||||||
-- @treturn number The input signal strength, between 0 and 15.
|
|
||||||
function getAnalogInput(side) end
|
function getAnalogInput(side) end
|
||||||
getAnalogueInput = getAnalogInput
|
getAnalogueInput = getAnaloguInput
|
||||||
|
|
||||||
--- Set the bundled cable output for a specific side.
|
|
||||||
--
|
|
||||||
-- @tparam string side The side to set.
|
|
||||||
-- @tparam number The colour bitmask to set.
|
|
||||||
-- @see colors.subtract For removing a colour from the bitmask.
|
|
||||||
-- @see colors.combine For adding a colour to the bitmask.
|
|
||||||
function setBundledOutput(side, output) end
|
|
||||||
|
|
||||||
--- Get the bundled cable output for a specific side.
|
|
||||||
--
|
|
||||||
-- @tparam string side The side to get.
|
|
||||||
-- @treturn number The bundled cable's output.
|
|
||||||
function getBundledOutput(side) end
|
|
||||||
|
|
||||||
--- Get the bundled cable input for a specific side.
|
|
||||||
--
|
|
||||||
-- @tparam string side The side to get.
|
|
||||||
-- @treturn number The bundled cable's input.
|
|
||||||
-- @see testBundledInput To determine if a specific colour is set.
|
|
||||||
function getBundledInput(side) end
|
|
||||||
|
|
||||||
--- Determine if a specific combination of colours are on for the given side.
|
|
||||||
--
|
|
||||||
-- @tparam string side The side to test.
|
|
||||||
-- @tparam number mask The mask to test.
|
|
||||||
-- @see getBundledInput
|
|
||||||
-- @see colors.combine For adding a colour to the bitmask.
|
|
||||||
-- @usage Check if @{colors.white} and @{colors.black} are on for above the
|
|
||||||
-- computer.
|
|
||||||
--
|
|
||||||
-- print(redstone.testBundledInput("top", colors.combine(colors.white, colors.black)))
|
|
||||||
function testBundledInput(side, mask) end
|
|
||||||
|
|||||||
@@ -15,14 +15,14 @@ isColor = isColour
|
|||||||
function getTextColour() end
|
function getTextColour() end
|
||||||
getTextColor = getTextColor
|
getTextColor = getTextColor
|
||||||
function getBackgroundColour() end
|
function getBackgroundColour() end
|
||||||
getBackgroundColor = getBackgroundColour
|
getBackgroundColour = getBackgroundColour
|
||||||
function blit(text, text_colours, background_colours) end
|
function blit(text, text_colours, background_colours) end
|
||||||
function setPaletteColour(colour, ...) end
|
function setPaletteColour(colour, ...) end
|
||||||
setPaletteColor = setPaletteColour
|
setPaletteColour = setPaletteColour
|
||||||
function getPaletteColour(colour, ...) end
|
function getPaletteColour(colour, ...) end
|
||||||
getPaletteColor = getPaletteColour
|
getPaletteColour = getPaletteColour
|
||||||
function nativePaletteColour(colour) end
|
function nativePaletteColour(colour) end
|
||||||
nativePaletteColor = nativePaletteColour
|
nativePaletteColour = nativePaletteColour
|
||||||
|
|
||||||
--- @type Redirect
|
--- @type Redirect
|
||||||
local Redirect = {}
|
local Redirect = {}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Mod properties
|
# Mod properties
|
||||||
mod_version=1.89.2
|
mod_version=1.87.1
|
||||||
|
|
||||||
# Minecraft properties
|
# Minecraft properties (update mods.toml when changing)
|
||||||
mc_version=1.12.2
|
mc_version=1.14.4
|
||||||
forge_version=14.23.4.2749
|
forge_version=28.1.71
|
||||||
mappings_version=snapshot_20180724
|
mappings_version=20191123-1.14.3
|
||||||
|
|||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
|
|
||||||
|
|||||||
@@ -33,27 +33,17 @@
|
|||||||
|
|
||||||
;; It's useful to name arguments for documentation, so we allow this. It'd
|
;; It's useful to name arguments for documentation, so we allow this. It'd
|
||||||
;; be good to find a compromise in the future, but this works for now.
|
;; be good to find a compromise in the future, but this works for now.
|
||||||
-var:unused-arg)
|
-var:unused-arg
|
||||||
|
|
||||||
|
;; Some APIS (keys, colour and os mainly) are incomplete right now.
|
||||||
|
-var:unresolved-member)
|
||||||
(lint
|
(lint
|
||||||
(bracket-spaces
|
(bracket-spaces
|
||||||
(call no-space)
|
(call no-space)
|
||||||
(function-args no-space)
|
(function-args no-space)
|
||||||
(parens no-space)
|
(parens no-space)
|
||||||
(table space)
|
(table space)
|
||||||
(index no-space))
|
(index no-space))))
|
||||||
|
|
||||||
;; colours imports from colors, and we don't handle that right now.
|
|
||||||
;; keys is entirely dynamic, so we skip it.
|
|
||||||
(dynamic-modules colours keys)
|
|
||||||
|
|
||||||
(globals
|
|
||||||
:max
|
|
||||||
_CC_DEFAULT_SETTINGS
|
|
||||||
_CC_DISABLE_LUA51_FEATURES
|
|
||||||
;; Ideally we'd pick these up from bios.lua, but illuaminate currently
|
|
||||||
;; isn't smart enough.
|
|
||||||
sleep write printError read rs)))
|
|
||||||
|
|
||||||
;; We disable the unused global linter in bios.lua and the APIs. In the future
|
;; We disable the unused global linter in bios.lua and the APIs. In the future
|
||||||
;; hopefully we'll get illuaminate to handle this.
|
;; hopefully we'll get illuaminate to handle this.
|
||||||
@@ -70,13 +60,17 @@
|
|||||||
|
|
||||||
;; Suppress warnings for currently undocumented modules.
|
;; Suppress warnings for currently undocumented modules.
|
||||||
(at
|
(at
|
||||||
(/doc/stub/fs.lua
|
(/doc/stub/commands.lua
|
||||||
|
/doc/stub/fs.lua
|
||||||
/doc/stub/http.lua
|
/doc/stub/http.lua
|
||||||
/doc/stub/os.lua
|
/doc/stub/os.lua
|
||||||
|
/doc/stub/redstone.lua
|
||||||
/doc/stub/term.lua
|
/doc/stub/term.lua
|
||||||
/doc/stub/turtle.lua
|
/doc/stub/turtle.lua
|
||||||
|
/src/main/resources/*/computercraft/lua/rom/apis/command/commands.lua
|
||||||
/src/main/resources/*/computercraft/lua/rom/apis/io.lua
|
/src/main/resources/*/computercraft/lua/rom/apis/io.lua
|
||||||
/src/main/resources/*/computercraft/lua/rom/apis/window.lua)
|
/src/main/resources/*/computercraft/lua/rom/apis/window.lua
|
||||||
|
/src/main/resources/*/computercraft/lua/rom/modules/main/cc/shell/completion.lua)
|
||||||
|
|
||||||
(linters -doc:undocumented -doc:undocumented-arg))
|
(linters -doc:undocumented -doc:undocumented-arg))
|
||||||
|
|
||||||
@@ -85,11 +79,6 @@
|
|||||||
(/src/main/resources/*/computercraft/lua/rom/apis/textutils.lua
|
(/src/main/resources/*/computercraft/lua/rom/apis/textutils.lua
|
||||||
/src/main/resources/*/computercraft/lua/rom/modules/main/cc/completion.lua
|
/src/main/resources/*/computercraft/lua/rom/modules/main/cc/completion.lua
|
||||||
/src/main/resources/*/computercraft/lua/rom/modules/main/cc/shell/completion.lua
|
/src/main/resources/*/computercraft/lua/rom/modules/main/cc/shell/completion.lua
|
||||||
|
/src/main/resources/*/computercraft/lua/rom/programs/advanced/multishell.lua
|
||||||
/src/main/resources/*/computercraft/lua/rom/programs/shell.lua)
|
/src/main/resources/*/computercraft/lua/rom/programs/shell.lua)
|
||||||
(linters -doc:unresolved-reference))
|
(linters -doc:unresolved-reference))
|
||||||
|
|
||||||
(at /src/test/resources/test-rom
|
|
||||||
(lint
|
|
||||||
(globals
|
|
||||||
:max sleep write
|
|
||||||
cct_test describe expect howlci fail it pending stub)))
|
|
||||||
|
|||||||
43
src/generated/resources/data/computercraft/advancements/recipes/computercraft/cable.json
generated
Normal file
43
src/generated/resources/data/computercraft/advancements/recipes/computercraft/cable.json
generated
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:cable"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_modem": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:cable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_modem",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
35
src/generated/resources/data/computercraft/advancements/recipes/computercraft/computer_advanced.json
generated
Normal file
35
src/generated/resources/data/computercraft/advancements/recipes/computercraft/computer_advanced.json
generated
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:computer_advanced"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_components": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "minecraft:redstone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:gold_ingot"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:computer_advanced"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_components",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/computer_command.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/computer_command.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:computer_command"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_components": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "minecraft:command_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:computer_command"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_components",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/computer_normal.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/computer_normal.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:computer_normal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_redstone": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "forge:dusts/redstone"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:computer_normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_redstone",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_1.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_1.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_1"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_10.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_10.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_10"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_10"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_11.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_11.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_11"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_11"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_12.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_12.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_12"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_12"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_13.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_13.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_13"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_13"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_14.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_14.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_14"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_14"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_15.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_15.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_15"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_15"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_16.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_16.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_16"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_16"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_2.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_2.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_2"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_3.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_3.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_4.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_4.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_4"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_4"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_5.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_5.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_5"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_5"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_6.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_6.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_6"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_6"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_7.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_7.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_7"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_8.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_8.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_8"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_8"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_9.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_9.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_9"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_drive": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_9"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_drive",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_drive.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/disk_drive.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:disk_drive"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/monitor_advanced.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/monitor_advanced.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:monitor_advanced"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:monitor_advanced"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/monitor_normal.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/monitor_normal.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:monitor_normal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:monitor_normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_advanced/computercraft/speaker"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:speaker"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_advanced/computercraft/speaker"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_advanced/computercraft/wireless_modem_advanced"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_advanced/computercraft/wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_advanced/computercraft/wireless_modem_normal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:wireless_modem_normal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_advanced/computercraft/wireless_modem_normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_advanced/minecraft/crafting_table"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:crafting_table"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_advanced/minecraft/crafting_table"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_advanced/minecraft/diamond_axe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_axe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_advanced/minecraft/diamond_axe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_advanced/minecraft/diamond_hoe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_hoe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_advanced/minecraft/diamond_hoe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_advanced/minecraft/diamond_pickaxe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_pickaxe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_advanced/minecraft/diamond_pickaxe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_advanced/minecraft/diamond_shovel"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_shovel"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_advanced/minecraft/diamond_shovel"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_advanced/minecraft/diamond_sword"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_sword"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_advanced/minecraft/diamond_sword"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_computer_advanced"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_apple": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "minecraft:golden_apple"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_computer_advanced"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_apple",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_computer_normal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_apple": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "minecraft:golden_apple"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_computer_normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_apple",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_normal/computercraft/speaker"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:speaker"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_normal/computercraft/speaker"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_normal/computercraft/wireless_modem_advanced"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_normal/computercraft/wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_normal/computercraft/wireless_modem_normal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:wireless_modem_normal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_normal/computercraft/wireless_modem_normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_normal/minecraft/crafting_table"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:crafting_table"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_normal/minecraft/crafting_table"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_normal/minecraft/diamond_axe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_axe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_normal/minecraft/diamond_axe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_normal/minecraft/diamond_hoe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_hoe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_normal/minecraft/diamond_hoe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_normal/minecraft/diamond_pickaxe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_pickaxe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_normal/minecraft/diamond_pickaxe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_normal/minecraft/diamond_shovel"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_shovel"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_normal/minecraft/diamond_shovel"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:pocket_normal/minecraft/diamond_sword"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:pocket_computer_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_sword"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:pocket_normal/minecraft/diamond_sword"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/printer.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/printer.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:printer"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:printer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/speaker.json
generated
Normal file
32
src/generated/resources/data/computercraft/advancements/recipes/computercraft/speaker.json
generated
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:speaker"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:speaker"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_advanced/computercraft/speaker"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:speaker"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_advanced/computercraft/speaker"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_advanced/computercraft/wireless_modem_advanced"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_advanced/computercraft/wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_advanced/computercraft/wireless_modem_normal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:wireless_modem_normal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_advanced/computercraft/wireless_modem_normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_advanced/minecraft/crafting_table"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:crafting_table"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_advanced/minecraft/crafting_table"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_advanced/minecraft/diamond_axe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_axe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_advanced/minecraft/diamond_axe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_advanced/minecraft/diamond_hoe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_hoe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_advanced/minecraft/diamond_hoe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_advanced/minecraft/diamond_pickaxe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_pickaxe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_advanced/minecraft/diamond_pickaxe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_advanced/minecraft/diamond_shovel"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_shovel"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_advanced/minecraft/diamond_shovel"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_advanced/minecraft/diamond_sword"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_advanced"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_sword"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_advanced/minecraft/diamond_sword"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_normal/computercraft/speaker"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:speaker"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_normal/computercraft/speaker"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_normal/computercraft/wireless_modem_advanced"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_normal/computercraft/wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_normal/computercraft/wireless_modem_normal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "computercraft:wireless_modem_normal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_normal/computercraft/wireless_modem_normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_normal/minecraft/crafting_table"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:crafting_table"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_normal/minecraft/crafting_table"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_normal/minecraft/diamond_axe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_axe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_normal/minecraft/diamond_axe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_normal/minecraft/diamond_hoe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_hoe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_normal/minecraft/diamond_hoe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_normal/minecraft/diamond_pickaxe"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_pickaxe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_normal/minecraft/diamond_pickaxe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_normal/minecraft/diamond_shovel"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_shovel"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_normal/minecraft/diamond_shovel"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:turtle_normal/minecraft/diamond_sword"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_items": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:turtle_normal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:diamond_sword"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:turtle_normal/minecraft/diamond_sword"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_items",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
43
src/generated/resources/data/computercraft/advancements/recipes/computercraft/wired_modem.json
generated
Normal file
43
src/generated/resources/data/computercraft/advancements/recipes/computercraft/wired_modem.json
generated
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:wired_modem"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_cable": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:cable"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:wired_modem"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_cable",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:wired_modem_full_from"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_modem": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:wired_modem"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:wired_modem_full_from"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_modem",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:wired_modem_full_to"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_modem": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:wired_modem"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:wired_modem_full_to"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_modem",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:wireless_modem_advanced"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_wireless": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"item": "computercraft:wireless_modem_normal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_wireless",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:recipes/root",
|
||||||
|
"rewards": {
|
||||||
|
"recipes": [
|
||||||
|
"computercraft:wireless_modem_normal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"has_computer": {
|
||||||
|
"trigger": "minecraft:inventory_changed",
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tag": "computercraft:computer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"has_the_recipe": {
|
||||||
|
"trigger": "minecraft:recipe_unlocked",
|
||||||
|
"conditions": {
|
||||||
|
"recipe": "computercraft:wireless_modem_normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requirements": [
|
||||||
|
[
|
||||||
|
"has_computer",
|
||||||
|
"has_the_recipe"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
31
src/generated/resources/data/computercraft/loot_tables/blocks/computer_advanced.json
generated
Normal file
31
src/generated/resources/data/computercraft/loot_tables/blocks/computer_advanced.json
generated
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:dynamic",
|
||||||
|
"name": "computercraft:computer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:alternative",
|
||||||
|
"terms": [
|
||||||
|
{
|
||||||
|
"condition": "computercraft:block_named"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:inverted",
|
||||||
|
"term": {
|
||||||
|
"condition": "computercraft:player_creative"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
31
src/generated/resources/data/computercraft/loot_tables/blocks/computer_normal.json
generated
Normal file
31
src/generated/resources/data/computercraft/loot_tables/blocks/computer_normal.json
generated
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:dynamic",
|
||||||
|
"name": "computercraft:computer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:alternative",
|
||||||
|
"terms": [
|
||||||
|
{
|
||||||
|
"condition": "computercraft:block_named"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:inverted",
|
||||||
|
"term": {
|
||||||
|
"condition": "computercraft:player_creative"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
src/generated/resources/data/computercraft/loot_tables/blocks/disk_drive.json
generated
Normal file
20
src/generated/resources/data/computercraft/loot_tables/blocks/disk_drive.json
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "computercraft:disk_drive"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
src/generated/resources/data/computercraft/loot_tables/blocks/monitor_advanced.json
generated
Normal file
20
src/generated/resources/data/computercraft/loot_tables/blocks/monitor_advanced.json
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "computercraft:monitor_advanced"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
src/generated/resources/data/computercraft/loot_tables/blocks/monitor_normal.json
generated
Normal file
20
src/generated/resources/data/computercraft/loot_tables/blocks/monitor_normal.json
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "computercraft:monitor_normal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
src/generated/resources/data/computercraft/loot_tables/blocks/printer.json
generated
Normal file
20
src/generated/resources/data/computercraft/loot_tables/blocks/printer.json
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "computercraft:printer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
src/generated/resources/data/computercraft/loot_tables/blocks/speaker.json
generated
Normal file
20
src/generated/resources/data/computercraft/loot_tables/blocks/speaker.json
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "computercraft:speaker"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
31
src/generated/resources/data/computercraft/loot_tables/blocks/turtle_advanced.json
generated
Normal file
31
src/generated/resources/data/computercraft/loot_tables/blocks/turtle_advanced.json
generated
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:dynamic",
|
||||||
|
"name": "computercraft:computer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:alternative",
|
||||||
|
"terms": [
|
||||||
|
{
|
||||||
|
"condition": "computercraft:block_named"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:inverted",
|
||||||
|
"term": {
|
||||||
|
"condition": "computercraft:player_creative"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
31
src/generated/resources/data/computercraft/loot_tables/blocks/turtle_normal.json
generated
Normal file
31
src/generated/resources/data/computercraft/loot_tables/blocks/turtle_normal.json
generated
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:dynamic",
|
||||||
|
"name": "computercraft:computer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:alternative",
|
||||||
|
"terms": [
|
||||||
|
{
|
||||||
|
"condition": "computercraft:block_named"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:inverted",
|
||||||
|
"term": {
|
||||||
|
"condition": "computercraft:player_creative"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
src/generated/resources/data/computercraft/loot_tables/blocks/wired_modem_full.json
generated
Normal file
20
src/generated/resources/data/computercraft/loot_tables/blocks/wired_modem_full.json
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "computercraft:wired_modem_full"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
src/generated/resources/data/computercraft/loot_tables/blocks/wireless_modem_advanced.json
generated
Normal file
20
src/generated/resources/data/computercraft/loot_tables/blocks/wireless_modem_advanced.json
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "computercraft:wireless_modem_advanced"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
src/generated/resources/data/computercraft/loot_tables/blocks/wireless_modem_normal.json
generated
Normal file
20
src/generated/resources/data/computercraft/loot_tables/blocks/wireless_modem_normal.json
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "main",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "computercraft:wireless_modem_normal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
src/generated/resources/data/computercraft/recipes/cable.json
generated
Normal file
20
src/generated/resources/data/computercraft/recipes/cable.json
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"pattern": [
|
||||||
|
" # ",
|
||||||
|
"#R#",
|
||||||
|
" # "
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"#": {
|
||||||
|
"tag": "forge:stone"
|
||||||
|
},
|
||||||
|
"R": {
|
||||||
|
"tag": "forge:dusts/redstone"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "computercraft:cable",
|
||||||
|
"count": 6
|
||||||
|
}
|
||||||
|
}
|
||||||
22
src/generated/resources/data/computercraft/recipes/computer_advanced.json
generated
Normal file
22
src/generated/resources/data/computercraft/recipes/computer_advanced.json
generated
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"pattern": [
|
||||||
|
"###",
|
||||||
|
"#R#",
|
||||||
|
"#G#"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"#": {
|
||||||
|
"tag": "forge:ingots/gold"
|
||||||
|
},
|
||||||
|
"R": {
|
||||||
|
"tag": "forge:dusts/redstone"
|
||||||
|
},
|
||||||
|
"G": {
|
||||||
|
"tag": "forge:glass_panes"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "computercraft:computer_advanced"
|
||||||
|
}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user