Skip to content

Commit daa4481

Browse files
committed
Update to 26.1-snapshot-4. Remove clutter
1 parent 25f1061 commit daa4481

270 files changed

Lines changed: 1572 additions & 6715 deletions

File tree

Some content is hidden

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

.github/workflows/build.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,22 @@ on: [pull_request, push]
88

99
jobs:
1010
build:
11-
strategy:
12-
matrix:
13-
# Use these Java versions
14-
java: [
15-
21, # Current Java LTS
16-
]
17-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1812
steps:
1913
- name: checkout repository
2014
uses: actions/checkout@v4
2115
- name: validate gradle wrapper
22-
uses: gradle/wrapper-validation-action@v2
23-
- name: setup jdk ${{ matrix.java }}
16+
uses: gradle/actions/wrapper-validation@v4
17+
- name: setup jdk
2418
uses: actions/setup-java@v4
2519
with:
26-
java-version: ${{ matrix.java }}
20+
java-version: '21'
2721
distribution: 'microsoft'
2822
- name: make gradle wrapper executable
2923
run: chmod +x ./gradlew
3024
- name: build
3125
run: ./gradlew build
3226
- name: capture build artifacts
33-
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
3427
uses: actions/upload-artifact@v4
3528
with:
3629
name: Artifacts

README.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,6 @@ To generate power you can use Wind turbines - place a Gearbox (You wouldn't want
2525
![Heaters](https://cdn.modrinth.com/data/Z7LQgxZt/images/ac18406cffabcdc478d957f01505e83c61ac4949.png)
2626

2727

28-
## Gadget
29-
30-
Use your gadget - it is quite a useful tool
31-
that allows you to pass energy through focuses to create many desirable effects!
32-
33-
#### Starshooter focus
34-
35-
Have you ever wanted to shoot stars at your enemies? Now you can!
36-
Stars explode your enemy, but don't explode blocks (a.k.a. building-safe :D)
37-
38-
#### Lightning focus
39-
40-
Now, how about playing a Zeus? You can do that with Lightning focus!
41-
For some charge you can easily shoot lightning left and right!
42-
43-
#### Comet Warp focus
44-
45-
Everyone has to venture into a crowd of enemies sometimes. Or to just teleport home without hassle.
46-
Use the nifty Comet Warp focus to setup a recall point and then teleport to it from any location
47-
or dimension for just some wand charge!
48-
49-
#### Energy Veil focus
50-
51-
Just because you don't have armor, doesn't mean you can't have protection! Use this focus to create a barrier
52-
made of concentrated energy panels around yourself which will repel projectiles and any nasties coming your way!
53-
Be careful not to use up all your charge though :)
54-
55-
#### Inspector goggles and Focuses pouch
56-
57-
These are your best friends when dealing with focuses! You can use them to store every focus in just one Trinket slot, as well as see the remaining charge on your Gadget. Maybe even more!
58-
59-
![Energy veil](https://cdn.modrinth.com/data/Z7LQgxZt/images/a2cbf8ddd257e614506310dfd303379cd89e5269.png)
60-
![Comet Warp beacon](https://cdn.modrinth.com/data/Z7LQgxZt/images/9622554f2c728f8ee0b20d4b073fe15ed60b869e.png)
6128

6229

6330
## Acknowledgements

build.gradle

Lines changed: 45 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2-
import net.fabricmc.loom.task.RemapJarTask
3-
41
plugins {
5-
id 'net.fabricmc.fabric-loom-remap' version "${loom_version}"
6-
id 'com.gradleup.shadow' version '9.0.0-beta10'
2+
id 'net.fabricmc.fabric-loom' version "${loom_version}"
3+
id 'com.gradleup.shadow' version '9.0.0-beta10'
74
}
85

96
version = project.mod_version
@@ -14,124 +11,91 @@ base {
1411
}
1512

1613
repositories {
17-
mavenCentral()
18-
maven { url = 'https://maven.shedaniel.me/' }
19-
maven { url = 'https://maven.ladysnake.org/releases' }
2014
maven { url = 'https://maven.terraformersmc.com/' }
21-
maven { url = 'https://maven.wispforest.io' }
22-
maven {
23-
url = "https://maven2.bai.lol"
24-
content {
25-
includeGroup "lol.bai"
26-
includeGroup "mcp.mobius.waila"
27-
}
28-
}
2915
maven {
3016
url = "https://api.modrinth.com/maven"
3117
content {
3218
includeGroup "maven.modrinth"
3319
}
3420
}
35-
maven {
36-
url = "https://jitpack.io"
37-
}
38-
maven {
39-
// location of the maven that hosts JEI files since January 2023
40-
name = "Jared's maven"
41-
url = "https://maven.blamejared.com/"
42-
}
43-
maven {
44-
// location of a maven mirror for JEI files, as a fallback
45-
name = "ModMaven"
46-
url = "https://modmaven.dev"
47-
}
4821
}
4922

50-
fabricApi {
51-
configureDataGeneration()
23+
loom {
24+
accessWidenerPath = file("src/main/resources/vivatech.classtweaker")
5225
}
5326

54-
loom {
55-
accessWidenerPath = file("src/main/resources/vivatech.classtweaker")
27+
fabricApi {
28+
configureDataGeneration()
5629
}
5730

5831
dependencies {
59-
minecraft "com.mojang:minecraft:$minecraft_version"
60-
mappings loom.officialMojangMappings()
61-
modImplementation "net.fabricmc:fabric-loader:$loader_version"
62-
modImplementation "net.fabricmc.fabric-api:fabric-api:$fabric_version"
32+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
33+
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
34+
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
6335

6436
// ------------------------
6537
// --- MOD DEPENDENCIES ---
6638
// ------------------------
67-
modApi "me.shedaniel.cloth:cloth-config-fabric:$cloth_config_version"
68-
modApi "dev.emi:trinkets:$trinkets_version"
6939

70-
// --------------------------
71-
// --- OTHER DEPENDENCIES ---
72-
// --------------------------
73-
implementation 'org.jgrapht:jgrapht-core:1.5.2'
74-
shadow 'org.jgrapht:jgrapht-core:1.5.2'
40+
// --------------------------
41+
// --- OTHER DEPENDENCIES ---
42+
// --------------------------
43+
implementation 'org.jgrapht:jgrapht-core:1.5.2'
44+
shadow 'org.jgrapht:jgrapht-core:1.5.2'
45+
46+
implementation 'com.google.code.findbugs:jsr305:3.0.2'
7547

7648
// ---------------------
7749
// --- COMPATIBILITY ---
7850
// ---------------------
79-
modCompileOnly "mcp.mobius.waila:wthit-api:fabric-$wthit_version"
80-
modLocalRuntime "mcp.mobius.waila:wthit:fabric-$wthit_version"
81-
modLocalRuntime "lol.bai:badpackets:fabric-$badpackets_version"
51+
// modCompileOnly "mcp.mobius.waila:wthit-api:fabric-$wthit_version"
52+
// modLocalRuntime "mcp.mobius.waila:wthit:fabric-$wthit_version"
53+
// modLocalRuntime "lol.bai:badpackets:fabric-$badpackets_version"
8254

8355
// modCompileOnly "dev.emi:emi-fabric:$emi_version:api"
8456
// modLocalRuntime "dev.emi:emi-fabric:$emi_version"
85-
modCompileOnly("mezz.jei:jei-$minecraft_version-fabric-api:$jei_version")
86-
modRuntimeOnly("mezz.jei:jei-$minecraft_version-fabric:$jei_version")
57+
// modCompileOnly("mezz.jei:jei-$minecraft_version-fabric-api:$jei_version")
58+
// modRuntimeOnly("mezz.jei:jei-$minecraft_version-fabric:$jei_version")
8759

88-
modCompileOnly "com.terraformersmc:modmenu:$modmenu_version"
89-
modLocalRuntime "com.terraformersmc:modmenu:$modmenu_version"
60+
compileOnly "com.terraformersmc:modmenu:$modmenu_version"
61+
localRuntime "com.terraformersmc:modmenu:$modmenu_version"
9062

91-
// -------------------
92-
// --- CONVENIENCE ---
93-
// -------------------
94-
// Comment out / uncomment for testing and convenience
63+
// -------------------
64+
// --- CONVENIENCE ---
65+
// -------------------
66+
// Comment out / uncomment for testing and convenience
9567
// modLocalRuntime "maven.modrinth:betterf3:11.0.3"
96-
modLocalRuntime "maven.modrinth:component-viewer:1.3.2+1.21.11-fabric"
97-
modLocalRuntime "maven.modrinth:tooltip-scroll:1.5.1+1.21.10"
68+
// modLocalRuntime "maven.modrinth:component-viewer:1.3.2+1.21.11-fabric"
69+
// modLocalRuntime "maven.modrinth:tooltip-scroll:1.5.1+1.21.10"
9870
// modLocalRuntime "maven.modrinth:dev-tools-unlocker:1.0.0"
9971
}
10072

10173
processResources {
10274
inputs.property "version", project.version
10375

10476
filesMatching("fabric.mod.json") {
105-
expand "version": project.version
77+
expand "version": inputs.properties.version
10678
}
10779
}
108-
tasks.withType(JavaCompile).configureEach {
109-
it.options.release = 21
110-
}
111-
112-
tasks.withType(ShadowJar).configureEach {
113-
dependsOn('jar')
114-
115-
configurations = [project.configurations.shadow]
116-
enableRelocation = true
117-
relocationPrefix = "falseresync.shadowed"
118-
minimize()
119-
exclude('.cache/**')
12080

121-
from("LICENSE") {
122-
rename { "${it}_${project.base.archivesName.get()}"}
123-
}
124-
}
125-
126-
tasks.withType(RemapJarTask).configureEach {
127-
dependsOn('shadowJar')
128-
mustRunAfter('shadowJar')
129-
inputFile = shadowJar.archiveFile.get()
81+
tasks.withType(JavaCompile).configureEach {
82+
it.options.release = 25
13083
}
13184

13285
java {
86+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
87+
// if it is present.
88+
// If you remove this line, sources will not be generated.
13389
withSourcesJar()
13490

135-
sourceCompatibility = JavaVersion.VERSION_21
136-
targetCompatibility = JavaVersion.VERSION_21
91+
sourceCompatibility = JavaVersion.VERSION_25
92+
targetCompatibility = JavaVersion.VERSION_25
13793
}
94+
95+
jar {
96+
inputs.property "archivesName", project.base.archivesName
97+
98+
from("LICENSE") {
99+
rename { "${it}_${inputs.properties.archivesName}"}
100+
}
101+
}

gradle.properties

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# Done to increase the memory available to gradle.
2-
org.gradle.jvmargs=-Xmx4G
1+
# Done to increase the memory available to Gradle.
2+
org.gradle.jvmargs=-Xmx6G
33
org.gradle.parallel=true
44

5-
minecraft_version=1.21.11
6-
yarn_mappings=1.21.11+build.3
5+
# IntelliJ IDEA is not yet fully compatible with configuration cache, see: https://github.com/FabricMC/fabric-loom/issues/1349
6+
org.gradle.configuration-cache=false
7+
8+
# Fabric Properties
9+
# check these on https://fabricmc.net/develop
10+
minecraft_version=26.1-snapshot-3
711
loader_version=0.18.4
812
loom_version=1.14-SNAPSHOT
9-
fabric_version=0.140.2+1.21.11
13+
fabric_api_version=0.142.0+26.1
1014

15+
# Mod Properties
1116
mod_version=1.0.0-alpha.27
12-
maven_group=falseresync.vivatech
17+
maven_group=falseresync
1318
archives_base_name=vivatech
1419

15-
cloth_config_version=21.11.153
16-
trinkets_version=3.10.0
20+
# Dependencies
21+
modmenu_version=18.0.0-alpha.5
1722

18-
wthit_version=18.0.4
19-
badpackets_version=0.11.2
20-
#emi_version=1.1.10+1.21
21-
jei_version=27.3.0.14
22-
modmenu_version=17.0.0-beta.1

gradle/wrapper/gradle-wrapper.jar

2 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-9.2.0-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

gradlew

Lines changed: 4 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.

src/main/generated/assets/vivatech/blockstates/charger.json

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"model": {
3+
"type": "minecraft:model",
4+
"model": "vivatech:block/contactor"
5+
}
6+
}

0 commit comments

Comments
 (0)