Updated addon template to latest versions

This commit is contained in:
seasnail8169 2021-06-14 21:27:29 +01:00
parent 04a14407d7
commit 283ee11e65
12 changed files with 32 additions and 107 deletions

View File

@ -1,27 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: "[Bug]"
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context (meteor version, minecraft version, other mods you are using, etc).

View File

@ -1,17 +0,0 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[SUGGESTION]"
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Additional context**
Add any other context or screenshots about the feature request here.

View File

@ -1,22 +1,25 @@
plugins {
id 'fabric-loom' version '0.6-SNAPSHOT'
id 'fabric-loom' version '0.9-SNAPSHOT'
id 'maven-publish'
}
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
repositories {
maven { url "https://jitpack.io" }
maven {
name = "jitpack"
url = "https://jitpack.io"
}
}
dependencies {
//Minecraft
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
mappings "net.fabricmc:yarn:${project.yarn_version}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
//Meteor
@ -38,27 +41,4 @@ tasks.withType(JavaCompile).configureEach {
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = targetVersion
}
}
java {
withSourcesJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
}

View File

@ -1,10 +1,11 @@
org.gradle.jvmargs=-Xmx2G
minecraft_version=1.16.5
yarn_mappings=1.16.5+build.9
loader_version=0.11.3
# Fabric (https://fabricmc.net/versions.html)
minecraft_version=1.17
yarn_version=1.17+build.11
loader_version=0.11.6
# Mod Properties
mod_version = 0.2
maven_group = meteordevelopment.addons
archives_base_name = template
mod_version=0.3
maven_group=meteordevelopment.addons
archives_base_name=addon-template

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0
gradlew vendored Normal file → Executable file
View File

View File

@ -3,15 +3,14 @@ package meteordevelopment.addons.template;
import meteordevelopment.addons.template.commands.ExampleCommand;
import meteordevelopment.addons.template.modules.AnotherExample;
import meteordevelopment.addons.template.modules.Example;
import minegame159.meteorclient.MeteorAddon;
import minegame159.meteorclient.systems.commands.Commands;
import minegame159.meteorclient.systems.modules.Category;
import minegame159.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.MeteorAddon;
import meteordevelopment.meteorclient.systems.commands.Commands;
import meteordevelopment.meteorclient.systems.modules.Category;
import meteordevelopment.meteorclient.systems.modules.Modules;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class TemplateAddon extends MeteorAddon {
public static final Logger LOG = LogManager.getLogger();
public static final Category CATEGORY = new Category("Example");
@ -31,5 +30,4 @@ public class TemplateAddon extends MeteorAddon {
public void onRegisterCategories() {
Modules.registerCategory(CATEGORY);
}
}

View File

@ -1,14 +1,13 @@
package meteordevelopment.addons.template.commands;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import minegame159.meteorclient.systems.commands.Command;
import minegame159.meteorclient.utils.player.ChatUtils;
import meteordevelopment.meteorclient.systems.commands.Command;
import meteordevelopment.meteorclient.utils.player.ChatUtils;
import net.minecraft.command.CommandSource;
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
public class ExampleCommand extends Command {
public ExampleCommand() {
super("example", "Sends a message.");
}
@ -20,5 +19,4 @@ public class ExampleCommand extends Command {
return SINGLE_SUCCESS;
});
}
}

View File

@ -1,12 +1,10 @@
package meteordevelopment.addons.template.modules;
import minegame159.meteorclient.systems.modules.Categories;
import minegame159.meteorclient.systems.modules.Module;
import meteordevelopment.meteorclient.systems.modules.Categories;
import meteordevelopment.meteorclient.systems.modules.Module;
public class AnotherExample extends Module {
public AnotherExample() {
super(Categories.Player, "example-2", "An example module in an existing category.");
}
}

View File

@ -1,12 +1,10 @@
package meteordevelopment.addons.template.modules;
import meteordevelopment.addons.template.TemplateAddon;
import minegame159.meteorclient.systems.modules.Module;
import meteordevelopment.meteorclient.systems.modules.Module;
public class Example extends Module {
public Example() {
super(TemplateAddon.CATEGORY, "example", "An example module in a custom category.");
}
}

View File

@ -1,17 +1,14 @@
{
"schemaVersion": 1,
"id": "template-addon",
"id": "addon-template",
"version": "${version}",
"name": "Template Addon",
"name": "Addon Template",
"description": "An addon template for the Meteor Addon API.",
"authors": [
"seasnail8169"
],
"contact": {
"issues": "https://github.com/MeteorDevelopment/meteor-addon-template/issues",
"sources": "https://github.com/MeteorDevelopment/meteor-addon-template/",
"discord": "https://meteorclient.com/discord"
"repo": "https://github.com/MeteorDevelopment/meteor-addon-template"
},
"icon": "assets/template/icon.png",
"environment": "client",
@ -24,8 +21,8 @@
"template.mixins.json"
],
"depends": {
"fabricloader": ">=0.7.4",
"minecraft": "1.16.x",
"meteor-client": "*"
"java": "16",
"minecraft": "<=1.17",
"meteor-client": "<=0.4.4"
}
}

View File

@ -1,9 +1,8 @@
{
"required": true,
"package": "meteordevelopment.addons.template.mixins",
"compatibilityLevel": "JAVA_8",
"client": [
],
"compatibilityLevel": "JAVA_16",
"client": [],
"injectors": {
"defaultRequire": 1
}