Skip to content

Commit 6294f8f

Browse files
committed
1.17 Datapack update
1 parent 13764b3 commit 6294f8f

File tree

24 files changed

+207
-62
lines changed

24 files changed

+207
-62
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ jobs:
2121
- name: Checkout MCreator repository
2222
uses: actions/checkout@v4
2323
with:
24-
repository: Spectrall368/MCreator
25-
ref: old_mcreator
24+
repository: MCreator/MCreator
25+
ref: 2025.3.45720
2626
path: mcreator
2727
- name: Set up JDK 21
2828
uses: actions/setup-java@v4
2929
with:
30-
java-version: '21.0.7+6.0.LTS'
30+
java-version: '21.0.8+9.0.LTS'
3131
distribution: 'temurin'
32+
- name: Setup Gradle
33+
uses: gradle/actions/setup-gradle@v4
3234
- name: Cache Gradle Packages
3335
uses: actions/cache@v4
3436
with:
@@ -40,12 +42,10 @@ jobs:
4042
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
4143
restore-keys: |
4244
${{ runner.os }}-gradle-
43-
- name: Grant execute permission for gradlew
44-
run: chmod +x ./gradlew
45-
- name: Run MCreator Test With Plugin
46-
run: xvfb-run -a ./gradlew test --project-prop mcreator_path=${{ github.workspace }}/mcreator
45+
- name: Build and Test Using Gradle
46+
run: xvfb-run -a gradle test --project-prop mcreator_path=${{ github.workspace }}/mcreator
4747
- name: Test Javadoc Generation
48-
run: ./gradlew javadoc
48+
run: gradle javadoc
4949
- name: Publish Test Report
5050
uses: mikepenz/action-junit-report@9379f0ccddcab154835d4e2487555ee79614fe95
5151
if: always() # always run even if the previous step fails

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ tasks.register('runMCreatorWithPlugin', JavaExec) {
2222
dependsOn(processResources, jar)
2323

2424
environment("MCREATOR_PLUGINS_FOLDER", file("./build/libs"))
25-
environment("MCREATOR_PLUGINS_DEV", "")
2625

2726
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
2827

@@ -43,7 +42,6 @@ subprojects { subproject ->
4342
dependsOn rootProject.jar
4443

4544
environment("MCREATOR_PLUGINS_FOLDER", new File(rootProject.projectDir, "/build/libs"))
46-
environment("MCREATOR_PLUGINS_DEV", "")
4745
environment("MCREATOR_TEST_GENERATORS", "forge-${version}, datapack-1.17.x, resourcepack-${version}")
4846

4947
workingDir = mcreator_path

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mcreatorVersionShort=2025.2
2-
pluginVersion=2.2
1+
mcreatorVersionShort=2025.3
2+
pluginVersion=2.3
33
version=1.17.1
44
mcreator_path=unassigned

gradle/wrapper/gradle-wrapper.jar

1.96 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/resources/datapack-1.17.x/generator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mod_assets_root: "@RESROOT/assets/@modid"
1414
mod_data_root: "@RESROOT/data/@modid"
1515

1616
# specific resource folders
17-
structures_dir: "@MODDATAROOT/structures"
17+
structures_dir: "@MODDATAROOT/structure"
1818

1919
base_templates:
2020
- template: pack.mcmeta.ftl
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"${generator.map(field$effect, "effects", 1)}": {
2+
"amplifier": {
3+
"min": ${input$minAmplifier}
4+
},
5+
"duration": {
6+
"min": ${input$minDuration}
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"${generator.map(field$enchantment, "enchantments", 1)}": {
3+
"levels": {
4+
"min": ${field$min},
5+
"max": ${field$max}
6+
}
7+
}
8+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"${registryname}_${cbi}": {
2+
"trigger": "minecraft:enchanted_item",
3+
"conditions": {
4+
"item": {
5+
"items": "${input$item}",
6+
"predicates": {
7+
"enchantments": [
8+
<#list input_list$enchantment as enchantment>
9+
${enchantment}<#sep>,
10+
</#list>
11+
]
12+
}
13+
},
14+
"levels": {
15+
"min": ${input$levelsSpent}
16+
}
17+
}
18+
},
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"${registryname}_${cbi}": {
2+
"trigger": "minecraft:effects_changed",
3+
"conditions": {
4+
"effects": {
5+
<#list input_list$effect as effect>
6+
${effect}<#sep>,
7+
</#list>
8+
}
9+
}
10+
},

0 commit comments

Comments
 (0)