Skip to content

Commit e425f98

Browse files
authored
Initial commit
0 parents  commit e425f98

67 files changed

Lines changed: 4317 additions & 0 deletions

Some content is hidden

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

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug Report
3+
about: Link your log files!
4+
title: ''
5+
labels: bug
6+
assignees: TxniTxniChopper
7+
8+
---
9+
10+
### Describe the bug
11+
A clear and concise description of what the bug is.
12+
13+
### Log Files
14+
Upload your `latest.log` or `debug.log` to https://mclo.gs/ and paste the link here.
15+
16+
### Mod Version, Modloader, and Minecraft Version
17+
- Which version of the mod are you using?
18+
answer
19+
20+
- Fabric, Forge, NeoForge?
21+
answer
22+
23+
- Which Minecraft version?
24+
answer
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[Feature Request] "
5+
labels: enhancement
6+
assignees: TxniTxniChopper
7+
8+
---
9+
10+
### Is your feature request related to a problem? Please describe.
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
### Describe the solution you'd like
14+
A clear and concise description of what you want to happen.
15+
16+
### Additional context
17+
Add any other context or screenshots about the feature request here.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Build and Test Minecraft Mod
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
push:
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout sources
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Java
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: 21
21+
22+
- uses: burrunan/gradle-cache-action@v2
23+
name: Build Project
24+
with:
25+
job-id: build
26+
arguments: buildAll --stacktrace
27+
gradle-version: 8.12
28+
29+
- name: Upload mod jars
30+
uses: actions/upload-artifact@v3
31+
with:
32+
name: mod-jars
33+
path: build/libs/latest
34+
35+
test:
36+
needs: build
37+
strategy:
38+
matrix:
39+
version:
40+
- { mc: 1.21.1, modloader: neoforge, regex: .*neoforge.*, java: 21, mc-runtime-test: neoforge }
41+
- { mc: 1.21.1, modloader: fabric, regex: .*fabric.*, java: 21, mc-runtime-test: fabric }
42+
- { mc: 1.20.1, modloader: forge, regex: .*forge.*, java: 17, mc-runtime-test: lexforge }
43+
- { mc: 1.20.1, modloader: fabric, regex: .*fabric.*, java: 17, mc-runtime-test: fabric }
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Checkout sources
47+
uses: actions/checkout@v4
48+
- name: Setup Java
49+
uses: actions/setup-java@v4
50+
with:
51+
distribution: 'temurin'
52+
java-version: ${{ matrix.version.java }}
53+
- name: Download mod jars
54+
uses: actions/download-artifact@v3
55+
with:
56+
name: mod-jars
57+
- name: Inspect downloaded files
58+
run: |
59+
echo "Inspecting '.' directory:" && ls -R . || echo "Directory not found."
60+
- name: Create mods dir
61+
run: mkdir -p run/mods
62+
- name: Copy mod jar
63+
run: |
64+
MOD_JAR=$(find . -name "*-${{ matrix.version.modloader }}-*-${{ matrix.version.mc }}.jar" -print -quit)
65+
if [ -z "$MOD_JAR" ]; then
66+
echo "No matching mod jar found."
67+
exit 1
68+
fi
69+
cp "$MOD_JAR" run/mods
70+
- name: Run the MC client
71+
uses: 3arthqu4ke/mc-runtime-test@3.0.0
72+
with:
73+
mc: ${{ matrix.version.mc }}
74+
modloader: ${{ matrix.version.modloader }}
75+
regex: ${{ matrix.version.regex }}
76+
java: ${{ matrix.version.java }}
77+
mc-runtime-test: ${{ matrix.version.mc-runtime-test }}
78+
xvfb: false
79+
headlessmc-command: -lwjgl --jvm -Djava.awt.headless=true

.github/workflows/deploy-wiki.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy VitePress Wiki to GitHub Pages
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
11+
concurrency:
12+
group: pages
13+
cancel-in-progress: false
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: npm
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v4
30+
- name: Install dependencies
31+
run: npm ci
32+
- name: Build with VitePress
33+
run: npm run docs:build
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: wiki/.vitepress/dist
38+
deploy:
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
needs: build
43+
runs-on: ubuntu-latest
44+
name: Deploy
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# gradle
2+
3+
.gradle/
4+
build/
5+
out/
6+
classes/
7+
8+
tmp/
9+
10+
# eclipse
11+
12+
*.launch
13+
14+
# idea
15+
node_modules/
16+
wiki/node_modules/
17+
wiki/.vitepress/cache/
18+
wiki/.vitepress/dist/
19+
20+
**/build.properties
21+
./src/main/build.properties
22+
build.properties
23+
24+
.idea/
25+
*.iml
26+
*.ipr
27+
*.iws
28+
29+
# vscode
30+
31+
.settings/
32+
.vscode/
33+
bin/
34+
.classpath
35+
.project
36+
37+
# macos
38+
39+
*.DS_Store
40+
41+
# fabric
42+
43+
run/
44+
45+
# java
46+
47+
hs_err_*.log
48+
replay_*.log
49+
*.hprof
50+
*.jfr

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## 1.0.0
2+
- Initial release

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
template.txni.dev

LICENSE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Toni's MMC License
2+
3+
You may use this mod freely in modpacks, and you may edit and fork this mod under a few conditions:
4+
5+
- If you fork or modify this mod, or reuse its code, and upload to Curseforge, Modrinth, or a similar site with monetization, 50% of the revenue generated from the fork must go to the original author.
6+
7+
- You may not reupload this mod to other mod hosting sites that do not pay authors, such as PlanetMinecraft.
8+
9+
- You may not directly override the Jar file for this mod in a modpack. It must be downloaded from Curseforge or Modrinth.
10+
11+
- If you modify this software, you must include the same copyright notice for your modified code. You may not relicense the software.
12+
13+
Exceptions / changes may be made to the above terms upon request. For example, if you would like to use small bits of code copied from this mod, as long as your software serves a different purpose than this mod, and they do not constitute a substantial amount of your mod, that is likely okay.
14+
15+
All other rights reserved. Software is provided as-is, and I am not liable for anything you break trying to use my software.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# TxniTemplate
2+
This is a Minecraft mod template set up with the [Blahaj Gradle Plugin](https://github.com/txnimc/blahaj) for automated multiversion dev.
3+
4+
You can [read the docs here](https://blahaj.txni.dev/).

0 commit comments

Comments
 (0)