Skip to content

Commit 1db4f0d

Browse files
authored
Dev (#12)
* Remove Alloy Recipes: invar electrum rose-gold osmium Remove Materials Melting Recipes: Aluminium Tungsten Osmium Platinum * Remove steel and platinum byproducts from melting recipes * Align casting recipes with GregTech material logic - Plate: 1 ingot -> 1.5 ingots - Gear: 4 ingots -> 6 ingots - Rod: 0.5 ingots -> 0.75 ingots * vacuum_freeze recipe & gear fluid value changed * add GTConstructRecipeType and refactor GTConstructRecipes * feat: add GTConstructRecipeType and refactor GTConstructRecipes * disable Platinum VacuumFreezer recipe * Update README.md * Update README.md * Enable enhanced class redefinition and set network timeout * Update gradle.yml
1 parent 1c68afb commit 1db4f0d

3 files changed

Lines changed: 17 additions & 10 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ on:
66
# pull_request:
77
# branches: ["main"]
88
workflow_dispatch:
9+
910
jobs:
1011
build:
1112
runs-on: ubuntu-latest
1213

1314
steps:
1415
- uses: actions/checkout@v4
1516

16-
- name: Set up JDK
17-
uses: actions/setup-java@v4
17+
- name: Set up JetBrains Runtime (JBR)
18+
uses: DeLaGuardo/setup-jbr@v1
1819
with:
19-
distribution: 'temurin'
20-
java-version: '17' # 根据你的Mod需求调整Java版本
20+
jbr-version: '17'
2121

2222
- name: Grant execute permission for gradlew
2323
run: chmod +x gradlew

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ For documentation on writing addons or working with Tinkers' Consrtuct datapacks
1313

1414
## Setting up a Workspace/Compiling from Source
1515

16-
Note: Git MUST be installed and in the system path to use our scripts.
17-
* Setup: Import Tinkers' Construct as a Gradle project into IDEA. Let it run setup.
18-
* Run: Run the `gradlew genIntellijRuns` through IDEA.
19-
* Build: Run `gradlew build`.
20-
* If obscure Gradle issues are found try running `gradlew clean` and `gradlew cleanCache`
16+
17+
- Java 17
18+
- JetBrains Runtime (JBR) is mandatory. You must configure IntelliJ IDEA to use the bundled JBR (version 17 or newer) for the Gradle JVM. This can be set in `Settings > Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM`.
19+
20+
The project uses a modern Forge plugin to define run configurations directly in `build.gradle`. These are imported into your IDE by running the `genIntellijRuns` Gradle task.
21+
22+
- **`client`**: Launches the Minecraft client for testing mod features, UI, and gameplay.
23+
- **`server`**: Launches a dedicated, no-GUI server instance for testing server-side logic and commands.
24+
- **`data`**: Runs the data generator. It scans your code for data providers and automatically generates resource files like recipes, models, and loot tables into the `src/generated/resources/` directory.
25+
26+
To build the project, execute `gradlew build`. For troubleshooting Gradle issues, use `gradlew clean` and `gradlew cleanCache`. The build script is configured to skip tests to resolve plugin compatibility problems.
2127

2228
## Issue reporting
2329
Please include the following:

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ legacyForge {
4949
// "REGISTRIES": For firing of registry events.
5050
// "REGISTRYDUMP": For getting the contents of all registries.
5151
systemProperty 'forge.logging.markers', 'REGISTRIES'
52-
//jvmArgument("-XX:+AllowEnhancedClassRedefinition")
52+
jvmArgument("-XX:+AllowEnhancedClassRedefinition")
53+
jvmArgument("-DnetworkTimeout=6000000")
5354
// Recommended logging level for the console
5455
// You can set various levels here.
5556
// Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels

0 commit comments

Comments
 (0)