Skip to content

Commit b95b5ec

Browse files
authored
Merge pull request #4239 from GregTechCEu/re/1.21-with-love
Give 1.21 love
2 parents 82c453d + 0eaa0ca commit b95b5ec

File tree

1,160 files changed

+47382
-11727
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,160 files changed

+47382
-11727
lines changed

.github/workflows/test-on-push.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Test pull request on push
2+
3+
on:
4+
pull_request:
5+
paths: ['**']
6+
7+
# Cancel previous jobs if PR gets another push
8+
concurrency:
9+
group: PR-test-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
env:
16+
VERSION_SUFFIX: "PR-${{ github.event.number }}"
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Check Path Filter
20+
uses: dorny/paths-filter@v3
21+
id: filter
22+
with:
23+
filters: |
24+
code:
25+
- 'src/**'
26+
- '*.gradle'
27+
- 'gradle.properties'
28+
- 'gradlew*'
29+
- 'gradle/**'
30+
- name: Setup Build
31+
if: steps.filter.outputs.code == 'true'
32+
uses: ./.github/actions/build_setup
33+
- name: Run GameTests
34+
if: steps.filter.outputs.code == 'true'
35+
id: gametest
36+
continue-on-error: true
37+
run: ./gradlew runGameTestServer
38+
- name: Update “Tests Passed” / “Tests Failed” labels
39+
if: steps.filter.outputs.code == 'true' && github.event.pull_request.head.repo.full_name == github.repository
40+
uses: actions/github-script@v7
41+
with:
42+
script: |
43+
const [add, remove] = {
44+
success: ['Tests: Passed','Tests: Failed'],
45+
failure: ['Tests: Failed','Tests: Passed']
46+
}['${{ steps.gametest.outcome }}'];
47+
48+
const { owner, repo } = context.repo;
49+
const issue_number = context.payload.pull_request.number;
50+
51+
await github.rest.issues
52+
.addLabels({ owner, repo, issue_number, labels: [add] })
53+
.catch(() => {});
54+
55+
await github.rest.issues
56+
.removeLabel({ owner, repo, issue_number, name: remove })
57+
.catch(() => {});
58+
- name: Fail on GameTest failures
59+
if: steps.filter.outputs.code == 'true' && steps.gametest.outcome == 'failure'
60+
run: exit 1

CHANGELOG.md

Lines changed: 225 additions & 2 deletions
Large diffs are not rendered by default.

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# Specific files requiring admin approval
55
CODEOWNERS @GregTechCEu/admin
66
LICENSE @GregTechCEu/admin
7-
README.md @GregTechCEu/admin
7+
/README.md @GregTechCEu/admin

build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ sourceSets {
3232
}
3333

3434
test {
35-
kotlin {
36-
srcDirs += 'src/test/java'
37-
}
38-
compileClasspath += main.output
35+
compileClasspath += main.output + main.compileClasspath
3936
runtimeClasspath += main.output + main.runtimeClasspath
4037
}
4138

@@ -55,11 +52,17 @@ configurations {
5552
clientRuntimeOnly.canBeResolved = false
5653
extraRuntimeOnly.canBeResolved = false
5754
clientExtraRuntimeOnly.canBeResolved = false
55+
testImplementation.canBeResolved = false
56+
testRuntimeOnly.canBeResolved = false
5857

5958
runtimeClasspath.extendsFrom localRuntime
6059
extraRuntimeClasspath.extendsFrom extraLocalRuntime
6160
clientRuntimeClasspath.extendsFrom clientLocalRuntime
6261
extraClientRuntimeClasspath.extendsFrom clientExtraLocalRuntime
62+
63+
renderNurseCfg {
64+
canBeConsumed = false
65+
}
6366
}
6467

6568
apply from: "$rootDir/gradle/scripts/jars.gradle"
@@ -69,6 +72,7 @@ apply from: "$rootDir/dependencies.gradle"
6972
apply from: "$rootDir/gradle/scripts/resources.gradle"
7073
apply from: "$rootDir/gradle/scripts/publishing.gradle"
7174
apply from: "$rootDir/gradle/scripts/spotless.gradle"
75+
apply from: "$rootDir/gradle/scripts/docs.gradle"
7276

7377

7478
tasks.withType(JavaCompile).configureEach {
@@ -78,5 +82,5 @@ tasks.withType(JavaCompile).configureEach {
7882
}
7983

8084
lombok {
81-
version = "1.18.36"
85+
version = "1.18.38"
8286
}

dependencies.gradle

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
dependencies {
22
compileOnly(libs.jetbrains.annotations)
33

4-
// LDLib
4+
testJarJar(testApi(libs.testframework.get()))
5+
56
jarJar(api(forge.ldlib.get()))
67

78
// Registrate
@@ -26,11 +27,16 @@ dependencies {
2627
compileOnly(forge.ae2)
2728
compileOnly(forge.ae2wtlib)
2829

30+
// Create
31+
compileOnly(forge.ponder)
32+
compileOnly(variantOf(forge.create) { classifier("slim") })
33+
compileOnly(forge.flywheel.forge.api)
34+
2935
// KJS
3036
compileOnly(forge.bundles.kjs)
3137

3238
// Shimmer
33-
compileOnly(forge.shimmer)
39+
// compileOnly(forge.shimmer)
3440
compileOnly(forge.sodium)
3541
compileOnly(forge.iris)
3642
compileOnly(forge.modernfix)
@@ -40,8 +46,8 @@ dependencies {
4046
compileOnly(forge.ftbteams)
4147
compileOnly(forge.ftbquests)
4248
compileOnly(forge.resourcefullib)
43-
compileOnly(forge.argonauts)
44-
compileOnly(forge.heracles)
49+
// compileOnly(forge.argonauts)
50+
// compileOnly(forge.heracles)
4551

4652
// Maps
4753
compileOnly(forge.ftbchunks)
@@ -51,26 +57,34 @@ dependencies {
5157
compileOnly(forge.journeymap.forge)
5258

5359
// GameStages
54-
compileOnly(forge.gamestages)
60+
// compileOnly(forge.gamestages)
5561

5662
// CC: Tweaked
5763
compileOnly(forge.cc.tweaked.core.api)
5864
compileOnly(forge.cc.tweaked.forge.api)
5965

6066
// Standard runtime mods //
67+
localRuntime(libs.testframework)
68+
6169
localRuntime(forge.jade)
6270
localRuntime(forge.ae2)
6371
localRuntime(forge.spark)
6472
localRuntime(forge.modernfix)
73+
localRuntime(forge.create) {
74+
// Needed to prevent game-test crashes
75+
exclude group: "maven.modrinth", module: "journeymap"
76+
exclude group: "info.journeymap", module: "journeymap-api-neoforge"
77+
}
6578

6679
// Runtime Recipe Viewers - uncomment whichever one you want to use //
6780
localRuntime(forge.emi)
68-
// localRuntime(forge.jei.forge.impl)
81+
localRuntime(forge.jei.neoforge.impl)
6982
// localRuntime(forge.bundles.rei.runtime)
7083

7184
// Client-only runtime mods //
7285
clientLocalRuntime(forge.sodium)
7386
clientLocalRuntime(forge.iris)
87+
renderNurseCfg(libs.renderNurse)
7488

7589
//////////////////////////////////////////////////////
7690
// Runtime mods for dev testing with unclean client //
@@ -79,9 +93,9 @@ dependencies {
7993
extraLocalRuntime(forge.trenzalore)
8094
extraLocalRuntime(forge.curios)
8195
// extraLocalRuntime(forge.worldstripper)
82-
extraLocalRuntime(forge.cc.tweaked.forge.impl)
96+
localRuntime(forge.cc.tweaked.forge.impl)
8397

84-
extraLocalRuntime(forge.bundles.kjs)
98+
localRuntime(forge.bundles.kjs)
8599

86100
extraLocalRuntime(forge.ftblibrary)
87101
extraLocalRuntime(forge.ftbteams)
@@ -106,5 +120,4 @@ dependencies {
106120
extraLocalRuntime(forge.observable)
107121
//////////////////////////
108122

109-
testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
110123
}

docs/README.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,53 @@ Once you're happy, commit these changes and make a pull request for us to review
2626
If you come back to work on the docs, you can use a codespace again. You might need to `pull` to bring your codespace up to date, which you can do by pressing this button in the `Source Control` tab.
2727

2828
![image](https://github.com/user-attachments/assets/7d1246d2-f091-4452-bdb3-edf221902503)
29-
## Installing Required Dependencies
3029

31-
To install the required dependencies, please run `pip install -r requirements.txt`
30+
## Running in Gradle
31+
32+
To run mkdocs locally, run the mkdocsServe task in gradle.
33+
34+
Either in the gradle sidebar, click documentation/mkdocsServe, or run .`/gradlew mkdocsServe`.
35+
36+
Click on the link it gives you at the bottom to open the local copy, and pages will automatically update with content as you save your files.
37+
38+
You can also run documentation/mkdocsBuild. This will build the documentation in `docs/site`, which you can either host yourself or just open in a browser.
39+
40+
## Installing Required Dependencies & Run Locally
41+
42+
If you want to manually install and go through the steps to run locally, you can follow the steps below.
43+
44+
Please run all commands from this section inside the `docs` folder!
45+
46+
**First, setup a venv for python:**
47+
48+
```bash
49+
python -m venv .venv
50+
```
51+
or:
52+
```bash
53+
python3 -m venv .venv
54+
```
55+
56+
**Now activate the venv:**
57+
58+
Windows:
59+
```cmd
60+
.venv\Scripts\activate
61+
```
62+
Linux / MacOS:
63+
```bash
64+
source .venv/bin/activate
65+
```
66+
67+
**Install the required dependencies:**
68+
```bash
69+
pip install -r requirements.txt
70+
```
71+
72+
**Run locally**:
73+
```bash
74+
mkdocs serve
75+
```
3276

3377
## MkDocs Plugins
3478

docs/content/Development/External-Resources.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ as other resources you might find helpful.
1616
- [Forge-Wiki](https://docs.minecraftforge.net/en/1.20.x/)
1717
- [NeoForge-Wiki](https://docs.neoforged.net/)
1818

19-
!!! link "Official Fabric Docs"
20-
[Fabric-Wiki :material-arrow-right: Mod Developer Docs](https://fabricmc.net/wiki/tutorial:start)
21-
2219
!!! link "Other Modding Docs"
2320
- [Forge Community-Wiki](https://forge.gemwire.uk/wiki/Main_Page)
2421
- [MCJty's Modding Wiki](https://www.mcjty.eu/docs/intro)

docs/content/Development/General-Topics/Capabilities.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/content/Development/General-Topics/Handling-Fluid-Bucket-Size.md

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
nav:
2+
- Recipe-Logic.md
3+
- Recipe-Searching.md
4+
- Recipe-Execution.md
5+
- Custom-Ingredient.md
6+
- ...

0 commit comments

Comments
 (0)