Skip to content

Commit b0a5501

Browse files
Merge pull request #1 from CodeMonkeysMods/fix/update-datagen-recipe-to-26.1
Fix/update datagen recipe to 26.1
2 parents 58d1532 + 0d7be47 commit b0a5501

File tree

261 files changed

+1276
-346
lines changed

Some content is hidden

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

261 files changed

+1276
-346
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
matrix:
1313
# Use these Java versions
1414
java: [
15-
21, # Current Java LTS
15+
25, # Current Java LTS
1616
]
17-
runs-on: ubuntu-22.04
17+
runs-on: ubuntu-slim
1818
steps:
1919
- name: checkout repository
2020
uses: actions/checkout@v4
@@ -30,7 +30,7 @@ jobs:
3030
- name: build
3131
run: ./gradlew build
3232
- name: capture build artifacts
33-
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
33+
if: ${{ matrix.java == '25' }} # Only upload artifacts built from latest java
3434
uses: actions/upload-artifact@v4
3535
with:
3636
name: Artifacts

build.gradle

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,26 @@ base {
1111
}
1212

1313
repositories {
14+
mavenCentral()
15+
maven {
16+
name = "Fabric"
17+
url = "https://maven.fabricmc.net/"
18+
}
1419
maven {
1520
name = "TerraformersMC"
1621
url = "https://maven.terraformersmc.com/"
1722
}
23+
exclusiveContent {
24+
forRepository {
25+
maven {
26+
name = "Modrinth"
27+
url = "https://api.modrinth.com/maven"
28+
}
29+
}
30+
filter {
31+
includeGroup "maven.modrinth"
32+
}
33+
}
1834
}
1935

2036
fabricApi {
@@ -24,14 +40,10 @@ fabricApi {
2440
}
2541

2642
dependencies {
27-
// To change the versions see the gradle.properties file
28-
minecraft "com.mojang:minecraft:${project.minecraft_version}"
29-
//mappings loom.officialMojangMappings()
30-
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
31-
32-
// Fabric API. This is technically optional, but you probably want it anyway.
33-
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
34-
implementation("com.terraformersmc:modmenu:${project.modmenu_version}")
43+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
44+
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
45+
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
46+
implementation "maven.modrinth:modmenu:${project.modmenu_version}"
3547
}
3648

3749
processResources {
@@ -43,17 +55,17 @@ processResources {
4355
}
4456

4557
tasks.withType(JavaCompile).configureEach {
46-
it.options.release = 25
58+
it.options.encoding = "UTF-8"
59+
it.options.release = 25
4760
}
4861

4962
java {
50-
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
51-
// if it is present.
52-
// If you remove this line, sources will not be generated.
53-
withSourcesJar()
63+
withSourcesJar()
5464

55-
sourceCompatibility = JavaVersion.VERSION_25
56-
targetCompatibility = JavaVersion.VERSION_25
65+
// This ensures Gradle actually uses JDK 25 for everything
66+
toolchain {
67+
languageVersion = JavaLanguageVersion.of(25)
68+
}
5769
}
5870

5971
jar {

gradlew

100644100755
File mode changed.

gradlew.bat

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parent": "minecraft:recipes/root",
3+
"criteria": {
4+
"has_the_recipe": {
5+
"conditions": {
6+
"recipe": "houseki:bauxite_crushing"
7+
},
8+
"trigger": "minecraft:recipe_unlocked"
9+
}
10+
},
11+
"requirements": [
12+
[
13+
"has_the_recipe"
14+
]
15+
],
16+
"rewards": {
17+
"recipes": [
18+
"houseki:bauxite_crushing"
19+
]
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parent": "minecraft:recipes/root",
3+
"criteria": {
4+
"has_the_recipe": {
5+
"conditions": {
6+
"recipe": "houseki:cobblestone_crushing"
7+
},
8+
"trigger": "minecraft:recipe_unlocked"
9+
}
10+
},
11+
"requirements": [
12+
[
13+
"has_the_recipe"
14+
]
15+
],
16+
"rewards": {
17+
"recipes": [
18+
"houseki:cobblestone_crushing"
19+
]
20+
}
21+
}

src/main/generated/data/houseki/advancement/recipes/combat/aluminum_axe.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"parent": "minecraft:recipes/root",
33
"criteria": {
44
"has_aluminum": {
5+
"conditions": {
6+
"items": [
7+
{
8+
"items": "houseki:aluminum"
9+
}
10+
]
11+
},
512
"trigger": "minecraft:inventory_changed"
613
},
714
"has_the_recipe": {

src/main/generated/data/houseki/advancement/recipes/combat/aluminum_boots.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"parent": "minecraft:recipes/root",
33
"criteria": {
44
"has_aluminum": {
5+
"conditions": {
6+
"items": [
7+
{
8+
"items": "houseki:aluminum"
9+
}
10+
]
11+
},
512
"trigger": "minecraft:inventory_changed"
613
},
714
"has_the_recipe": {

src/main/generated/data/houseki/advancement/recipes/combat/aluminum_chestplate.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"parent": "minecraft:recipes/root",
33
"criteria": {
44
"has_aluminum": {
5+
"conditions": {
6+
"items": [
7+
{
8+
"items": "houseki:aluminum"
9+
}
10+
]
11+
},
512
"trigger": "minecraft:inventory_changed"
613
},
714
"has_the_recipe": {

src/main/generated/data/houseki/advancement/recipes/combat/aluminum_helmet.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"parent": "minecraft:recipes/root",
33
"criteria": {
44
"has_aluminum": {
5+
"conditions": {
6+
"items": [
7+
{
8+
"items": "houseki:aluminum"
9+
}
10+
]
11+
},
512
"trigger": "minecraft:inventory_changed"
613
},
714
"has_the_recipe": {

0 commit comments

Comments
 (0)