Compare commits
1
Commits
main
..
ad0e249aee
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad0e249aee |
@@ -1,43 +0,0 @@
|
|||||||
name: release
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "*"
|
|
||||||
|
|
||||||
env:
|
|
||||||
VERSION: "${{github.ref_name}}"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java: [
|
|
||||||
21, # Current Java LTS
|
|
||||||
]
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: validate gradle wrapper
|
|
||||||
uses: gradle/wrapper-validation-action@v2
|
|
||||||
- name: setup jdk ${{ matrix.java }}
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
java-version: ${{ matrix.java }}
|
|
||||||
distribution: "temurin"
|
|
||||||
- name: make gradle wrapper executable
|
|
||||||
run: chmod +x ./gradlew
|
|
||||||
- name: build
|
|
||||||
run: ./gradlew build
|
|
||||||
- name: publish maven
|
|
||||||
continue-on-error: true
|
|
||||||
env:
|
|
||||||
MAVEN_TOKEN: "${{secrets.MAVEN_TOKEN}}"
|
|
||||||
run: ./gradlew publish
|
|
||||||
- name: publish release
|
|
||||||
uses: akkuman/gitea-release-action@v1
|
|
||||||
with:
|
|
||||||
files: |-
|
|
||||||
build/libs/**
|
|
||||||
token: "${{secrets.GITHUB_TOKEN}}"
|
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
# Automatically build the project and run any configured tests for every push
|
||||||
|
# and submitted pull request. This can help catch issues that only occur on
|
||||||
|
# certain platforms or Java versions, and provides a first line of defence
|
||||||
|
# against bad commits.
|
||||||
|
|
||||||
|
name: build
|
||||||
|
on: [pull_request, push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
# Use these Java versions
|
||||||
|
java: [
|
||||||
|
21, # Current Java LTS
|
||||||
|
]
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: validate gradle wrapper
|
||||||
|
uses: gradle/wrapper-validation-action@v2
|
||||||
|
- name: setup jdk ${{ matrix.java }}
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
distribution: 'microsoft'
|
||||||
|
- name: make gradle wrapper executable
|
||||||
|
run: chmod +x ./gradlew
|
||||||
|
- name: build
|
||||||
|
run: ./gradlew build
|
||||||
|
- name: capture build artifacts
|
||||||
|
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Artifacts
|
||||||
|
path: build/libs/
|
||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
Simple Hammers is a mod that adds new mining tools via Fabric. They make large quarries much easier.
|
Simple Hammers is a mod that adds new mining tools via Fabric. They make large quarries much easier.
|
||||||
|
|
||||||
This mod is an updated fork of Draylar's Vanilla Hammers.
|
This mod is a updated fork of Draylar's Vanilla Hammers.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. Install the Fabric Launcher from [Fabric MC](https://fabricmc.net/use/installer/)
|
1. Install the Fabric Launcher from [Fabric MC](https://fabricmc.net/use/installer/)
|
||||||
2. Install the Fabric API jar as a mod from [Modrinth](https://modrinth.com/mod/fabric-api)
|
2. Install the Fabric API jar as a mod from [Modrinth](https://modrinth.com/mod/fabric-api)
|
||||||
3. Install the latest version of Simple Hammers from [Releases](https://git.bigduckie.dev/big-duckie/simple-hammers/releases)
|
3. Install the latest version of Simple Hammers from [Modrinth](https://modrinth.com/simple-hammers)
|
||||||
+7
-20
@@ -3,11 +3,7 @@ plugins {
|
|||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (System.getenv("VERSION")) {
|
version = "${project.mod_version}-${project.minecraft_version}"
|
||||||
project.mod_version = System.getenv("VERSION")
|
|
||||||
}
|
|
||||||
|
|
||||||
version = "${project.mod_version}"
|
|
||||||
group = project.maven_group
|
group = project.maven_group
|
||||||
|
|
||||||
base {
|
base {
|
||||||
@@ -23,7 +19,7 @@ repositories {
|
|||||||
maven { url 'https://jitpack.io' }
|
maven { url 'https://jitpack.io' }
|
||||||
maven { url "https://maven.shedaniel.me/" }
|
maven { url "https://maven.shedaniel.me/" }
|
||||||
maven { url "https://maven.terraformersmc.com/" }
|
maven { url "https://maven.terraformersmc.com/" }
|
||||||
maven { url "https://git.bigduckie.dev/api/packages/big-duckie/maven" }
|
maven { url "https://maven.bigduckie.dev/releases" }
|
||||||
}
|
}
|
||||||
|
|
||||||
loom {
|
loom {
|
||||||
@@ -115,21 +111,12 @@ publishing {
|
|||||||
|
|
||||||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
|
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
|
||||||
repositories {
|
repositories {
|
||||||
// Add repositories to publish to here.
|
|
||||||
// Notice: This block does NOT have the same function as the block in the top level.
|
|
||||||
// The repositories here will be used for publishing your artifact, not for
|
|
||||||
// retrieving dependencies.
|
|
||||||
maven {
|
maven {
|
||||||
name = "Gitea"
|
name = "personal"
|
||||||
url = uri("https://git.bigduckie.dev/api/packages/big-duckie/maven")
|
url = "https://maven.bigduckie.dev/releases"
|
||||||
|
credentials {
|
||||||
credentials(HttpHeaderCredentials) {
|
username = System.getenv("MAVEN_USERNAME")
|
||||||
name = "Authorization"
|
password = System.getenv("MAVEN_PASSWORD")
|
||||||
value = "token ${System.getenv("MAVEN_TOKEN")}"
|
|
||||||
}
|
|
||||||
|
|
||||||
authentication {
|
|
||||||
header(HttpHeaderAuthentication)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-2
@@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
|
|||||||
loader_version=0.16.7
|
loader_version=0.16.7
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=dev
|
mod_version=1.0.3
|
||||||
maven_group=dev.bigduckie
|
maven_group=dev.bigduckie
|
||||||
archives_base_name=simple-hammers
|
archives_base_name=simple-hammers
|
||||||
|
|
||||||
@@ -17,6 +17,9 @@ archives_base_name=simple-hammers
|
|||||||
fabric_version=0.92.2+1.20.1
|
fabric_version=0.92.2+1.20.1
|
||||||
|
|
||||||
magna_version=1.10.1+1.20.1
|
magna_version=1.10.1+1.20.1
|
||||||
static_content_version=1.0.1+1.20.1
|
mod_menu_version=7.2.2
|
||||||
|
libcd_version=3.0.3+1.16.3
|
||||||
|
static_content_version=1.0.7+1.20.1
|
||||||
|
maybe_data_version=1.3.2-1.19
|
||||||
omega_config_version=1.4.1+1.20.1
|
omega_config_version=1.4.1+1.20.1
|
||||||
cloth_config_version=11.1.106
|
cloth_config_version=11.1.106
|
||||||
@@ -21,7 +21,7 @@ import net.minecraft.util.Identifier;
|
|||||||
|
|
||||||
public class SimpleHammers implements ModInitializer {
|
public class SimpleHammers implements ModInitializer {
|
||||||
|
|
||||||
public static String MOD_ID = "simple-hammers";
|
public static String MODID = "simple-hammers";
|
||||||
public static SimpleHammersConfig CONFIG = OmegaConfig.register(SimpleHammersConfig.class);
|
public static SimpleHammersConfig CONFIG = OmegaConfig.register(SimpleHammersConfig.class);
|
||||||
private static final RegistryKey<ItemGroup> ITEM_GROUP = RegistryKey.of(RegistryKeys.ITEM_GROUP, id("group"));
|
private static final RegistryKey<ItemGroup> ITEM_GROUP = RegistryKey.of(RegistryKeys.ITEM_GROUP, id("group"));
|
||||||
|
|
||||||
@@ -29,7 +29,12 @@ public class SimpleHammers implements ModInitializer {
|
|||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
MagnaOptionals.optInForCurse();
|
MagnaOptionals.optInForCurse();
|
||||||
StaticContent.load(id("hammers"), HammerData.class);
|
StaticContent.load(id("hammers"), HammerData.class);
|
||||||
Registry.register(Registries.ITEM_GROUP, ITEM_GROUP, FabricItemGroup.builder().displayName(Text.translatable("itemGroup.simple-hammers.group")).icon(() -> new ItemStack(Registries.ITEM.get(id("diamond_hammer")))).entries((context, entries) -> entries.addAll(HammerData.ENTRY_SET)).build());
|
Registry.register(Registries.ITEM_GROUP, ITEM_GROUP, FabricItemGroup.builder()
|
||||||
|
.displayName(Text.translatable("itemGroup.simple-hammers.group"))
|
||||||
|
.icon(() -> new ItemStack(Registries.ITEM.get(id("diamond_hammer"))))
|
||||||
|
.entries((context, entries) -> entries.addAll(HammerData.ENTRY_SET))
|
||||||
|
.build()
|
||||||
|
);
|
||||||
registerCallbackHandlers();
|
registerCallbackHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,6 +53,6 @@ public class SimpleHammers implements ModInitializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Identifier id(String name) {
|
public static Identifier id(String name) {
|
||||||
return new Identifier(MOD_ID, name);
|
return new Identifier(MODID, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user