Skip to content

Commit 7a2ff1b

Browse files
committed
Initial 2025.3 update
1 parent 8f1d12a commit 7a2ff1b

File tree

28 files changed

+328
-113
lines changed

28 files changed

+328
-113
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ jobs:
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.16.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=4.3
1+
mcreatorVersionShort=2025.3
2+
pluginVersion=4.4
33
version=1.16.5
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.16.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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"enchantment": "${generator.map(field$enchantment, "enchantments", 1)}",
3+
"levels": {
4+
"min": ${field$min},
5+
"max": ${field$max}
6+
}
7+
}
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
"${registryname}_${cbi}": {
22
"trigger": "minecraft:item_durability_changed",
33
"conditions": {
4-
"items": [
5-
{
6-
"item": "${input$item}",
7-
"durability": {
8-
"min": ${input$amount_l},
9-
"max": ${input$amount_h}
10-
}
4+
"item": {
5+
"item": "${input$item}",
6+
"durability": {
7+
"min": ${input$amount_l},
8+
"max": ${input$amount_h}
119
}
12-
]
10+
}
1311
}
1412
},
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"${registryname}_${cbi}": {
2+
"trigger": "minecraft:enchanted_item",
3+
"conditions": {
4+
"item": {
5+
"item": "${input$item}",
6+
"enchantments": [
7+
<#list input_list$enchantment as enchantment>
8+
${enchantment}<#sep>,
9+
</#list>
10+
]
11+
},
12+
"levels": {
13+
"min": ${input$levelsSpent}
14+
}
15+
}
16+
},

0 commit comments

Comments
 (0)