Compare commits
2 Commits
v1.1.1-1.1
...
test
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f26764f5c9 | ||
|
|
d5f549c417 |
60
.github/workflows/build-release.yml
vendored
Normal file
60
.github/workflows/build-release.yml
vendored
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
name: build-release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK 16
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 17
|
||||||
|
- name: Cache Gradle packages
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.gradle/caches
|
||||||
|
~/.gradle/loom-cache
|
||||||
|
~/.gradle/wrapper
|
||||||
|
~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
|
restore-keys: ${{ runner.os }}-gradle
|
||||||
|
|
||||||
|
- run: chmod +x gradlew
|
||||||
|
|
||||||
|
- name: Build Release
|
||||||
|
run: ./gradlew build --stacktrace
|
||||||
|
|
||||||
|
- name: Upload artifacts to Modrinth, Curseforge and GitHub
|
||||||
|
uses: Kir-Antipov/mc-publish@v2.0
|
||||||
|
with:
|
||||||
|
modrinth-id: jawg7zT1
|
||||||
|
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
|
||||||
|
|
||||||
|
curseforge-id: 594750
|
||||||
|
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
|
||||||
|
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
files: build/libs/!(*-@(dev|sources|all)).jar
|
||||||
|
|
||||||
|
version-type: release
|
||||||
|
|
||||||
|
loaders: fabric
|
||||||
|
|
||||||
|
java: 17
|
||||||
|
|
||||||
|
dependencies: |
|
||||||
|
fabric-api | depends | 0.46.0
|
||||||
|
kirin | includes | 1.10.0-beta.2
|
||||||
|
modmenu | recommends | *
|
||||||
|
|
||||||
|
|
||||||
|
version-resolver: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -31,3 +31,6 @@ bin/
|
|||||||
# fabric
|
# fabric
|
||||||
|
|
||||||
run/
|
run/
|
||||||
|
|
||||||
|
# github
|
||||||
|
.github/secret.json
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.18.1
|
minecraft_version=1.18.1
|
||||||
yarn_mappings=1.18.1+build.22
|
yarn_mappings=1.18.1+build.22
|
||||||
loader_version=0.13.3
|
loader_version=0.12.11
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.1.0
|
mod_version = 1.1.1
|
||||||
maven_group = com.lizistired
|
maven_group = com.lizistired
|
||||||
archives_base_name = cave_dust
|
archives_base_name = cave_dust
|
||||||
|
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ public class CaveDustConfig extends JsonFile {
|
|||||||
|
|
||||||
public ParticleEffect getParticle(){
|
public ParticleEffect getParticle(){
|
||||||
try {
|
try {
|
||||||
return (ParticleEffect) Registry.PARTICLE_TYPE.get(Identifier.tryParse(particleName.toLowerCase()));
|
return (ParticleEffect) Registry.PARTICLE_TYPE.get(new Identifier(particleName.toLowerCase()));
|
||||||
} catch (ClassCastException e) {
|
} catch (ClassCastException e) {
|
||||||
LOGGER.error(e + "\nThere was an error loading the specified particle from the config, make sure a valid particle name is specified. Falling back to \"minecraft:white_ash\".");
|
LOGGER.error(e + "\nThere was an error loading the specified particle from the config, make sure a valid particle name is specified. Falling back to \"minecraft:white_ash\".");
|
||||||
particleName = "minecraft:white_ash";
|
particleName = "minecraft:white_ash";
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 227 KiB |
@@ -28,7 +28,7 @@
|
|||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.12.11",
|
"fabricloader": ">=0.12.11",
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"minecraft": "1.18.x",
|
"minecraft": "<=1.18.1",
|
||||||
"java": ">=17"
|
"java": ">=17"
|
||||||
},
|
},
|
||||||
"suggests": {
|
"suggests": {
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
"custom": {
|
"custom": {
|
||||||
"modmenu": {
|
"modmenu": {
|
||||||
"links": {
|
"links": {
|
||||||
"modmenu.discord": "https://discord.gg/AgBfPFMJgX"
|
"modmenu.discord": "https://discord.gg/4m6kQSX6bx"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user