Developer Setup & Building from Source
NOTE
📌 代碼倉庫源碼狀態免責聲明:本 Wiki 文件反映了代碼倉庫中的當前源碼狀態(v1.3.4+26.2)。可能包含領先於 CurseForge 與 Modrinth 公開發布版本的最新未發布提交或開發特性。
🛠️ Toolchain & Environment Specifications
| Requirement | Value |
|---|---|
| Java JDK | JDK 25 (Strictly required for MC 26.2 build toolchains) |
| Gradle | 9.3+ (--no-daemon) |
| Fabric Loom | 1.15.5+ |
| Target Minecraft | Stable MC 26.2 |
| Automated Testing | ./gradlew test (JUnit & Loom GameTest framework) |
💻 Cloning & Building Tagged JARs
1. Clone the Repository
bash
git clone https://github.com/Dasik/Natural-Reproduction.git
cd Natural-Reproduction2. Build via Gradle Wrapper
Execute ./gradlew build --no-daemon to compile, test, and package the mod:
bash
# On Linux / macOS / Git Bash
./gradlew build --no-daemon
# On Windows PowerShell
.\gradlew.bat build --no-daemon3. Automated GameTest Verification
Run automated headless tests using JUnit and Fabric Loom GameTest:
bash
./gradlew test --no-daemon4. Output Artifact Location
The compiled build output JAR file will be generated in:
text
build/libs/natural-reproduction-<version>+26.2.jar☕ 支持模組開發:如果您喜歡本模組,歡迎前往 Ko-fi 支持作者獲取最新開發測試組建!
