Updated addon template to latest versions
This commit is contained in:
parent
04a14407d7
commit
283ee11e65
27
.github/ISSUE_TEMPLATE/bug_report.md
vendored
27
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -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).
|
|
17
.github/ISSUE_TEMPLATE/feature_request.md
vendored
17
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@ -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.
|
|
34
build.gradle
34
build.gradle
@ -1,22 +1,25 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'fabric-loom' version '0.6-SNAPSHOT'
|
id 'fabric-loom' version '0.9-SNAPSHOT'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16
|
||||||
|
|
||||||
archivesBaseName = project.archives_base_name
|
archivesBaseName = project.archives_base_name
|
||||||
version = project.mod_version
|
version = project.mod_version
|
||||||
group = project.maven_group
|
group = project.maven_group
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven { url "https://jitpack.io" }
|
maven {
|
||||||
|
name = "jitpack"
|
||||||
|
url = "https://jitpack.io"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
//Minecraft
|
//Minecraft
|
||||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
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}"
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||||
|
|
||||||
//Meteor
|
//Meteor
|
||||||
@ -38,27 +41,4 @@ tasks.withType(JavaCompile).configureEach {
|
|||||||
if (JavaVersion.current().isJava9Compatible()) {
|
if (JavaVersion.current().isJava9Compatible()) {
|
||||||
it.options.release = targetVersion
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -1,10 +1,11 @@
|
|||||||
org.gradle.jvmargs=-Xmx2G
|
org.gradle.jvmargs=-Xmx2G
|
||||||
|
|
||||||
minecraft_version=1.16.5
|
# Fabric (https://fabricmc.net/versions.html)
|
||||||
yarn_mappings=1.16.5+build.9
|
minecraft_version=1.17
|
||||||
loader_version=0.11.3
|
yarn_version=1.17+build.11
|
||||||
|
loader_version=0.11.6
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.2
|
mod_version=0.3
|
||||||
maven_group = meteordevelopment.addons
|
maven_group=meteordevelopment.addons
|
||||||
archives_base_name = template
|
archives_base_name=addon-template
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
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
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@ -3,15 +3,14 @@ package meteordevelopment.addons.template;
|
|||||||
import meteordevelopment.addons.template.commands.ExampleCommand;
|
import meteordevelopment.addons.template.commands.ExampleCommand;
|
||||||
import meteordevelopment.addons.template.modules.AnotherExample;
|
import meteordevelopment.addons.template.modules.AnotherExample;
|
||||||
import meteordevelopment.addons.template.modules.Example;
|
import meteordevelopment.addons.template.modules.Example;
|
||||||
import minegame159.meteorclient.MeteorAddon;
|
import meteordevelopment.meteorclient.MeteorAddon;
|
||||||
import minegame159.meteorclient.systems.commands.Commands;
|
import meteordevelopment.meteorclient.systems.commands.Commands;
|
||||||
import minegame159.meteorclient.systems.modules.Category;
|
import meteordevelopment.meteorclient.systems.modules.Category;
|
||||||
import minegame159.meteorclient.systems.modules.Modules;
|
import meteordevelopment.meteorclient.systems.modules.Modules;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
public class TemplateAddon extends MeteorAddon {
|
public class TemplateAddon extends MeteorAddon {
|
||||||
|
|
||||||
public static final Logger LOG = LogManager.getLogger();
|
public static final Logger LOG = LogManager.getLogger();
|
||||||
public static final Category CATEGORY = new Category("Example");
|
public static final Category CATEGORY = new Category("Example");
|
||||||
|
|
||||||
@ -31,5 +30,4 @@ public class TemplateAddon extends MeteorAddon {
|
|||||||
public void onRegisterCategories() {
|
public void onRegisterCategories() {
|
||||||
Modules.registerCategory(CATEGORY);
|
Modules.registerCategory(CATEGORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,14 +1,13 @@
|
|||||||
package meteordevelopment.addons.template.commands;
|
package meteordevelopment.addons.template.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import minegame159.meteorclient.systems.commands.Command;
|
import meteordevelopment.meteorclient.systems.commands.Command;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
import meteordevelopment.meteorclient.utils.player.ChatUtils;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
|
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
|
||||||
|
|
||||||
public class ExampleCommand extends Command {
|
public class ExampleCommand extends Command {
|
||||||
|
|
||||||
public ExampleCommand() {
|
public ExampleCommand() {
|
||||||
super("example", "Sends a message.");
|
super("example", "Sends a message.");
|
||||||
}
|
}
|
||||||
@ -20,5 +19,4 @@ public class ExampleCommand extends Command {
|
|||||||
return SINGLE_SUCCESS;
|
return SINGLE_SUCCESS;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
package meteordevelopment.addons.template.modules;
|
package meteordevelopment.addons.template.modules;
|
||||||
|
|
||||||
import minegame159.meteorclient.systems.modules.Categories;
|
import meteordevelopment.meteorclient.systems.modules.Categories;
|
||||||
import minegame159.meteorclient.systems.modules.Module;
|
import meteordevelopment.meteorclient.systems.modules.Module;
|
||||||
|
|
||||||
public class AnotherExample extends Module {
|
public class AnotherExample extends Module {
|
||||||
|
|
||||||
public AnotherExample() {
|
public AnotherExample() {
|
||||||
super(Categories.Player, "example-2", "An example module in an existing category.");
|
super(Categories.Player, "example-2", "An example module in an existing category.");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,12 +1,10 @@
|
|||||||
package meteordevelopment.addons.template.modules;
|
package meteordevelopment.addons.template.modules;
|
||||||
|
|
||||||
import meteordevelopment.addons.template.TemplateAddon;
|
import meteordevelopment.addons.template.TemplateAddon;
|
||||||
import minegame159.meteorclient.systems.modules.Module;
|
import meteordevelopment.meteorclient.systems.modules.Module;
|
||||||
|
|
||||||
public class Example extends Module {
|
public class Example extends Module {
|
||||||
|
|
||||||
public Example() {
|
public Example() {
|
||||||
super(TemplateAddon.CATEGORY, "example", "An example module in a custom category.");
|
super(TemplateAddon.CATEGORY, "example", "An example module in a custom category.");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,17 +1,14 @@
|
|||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"id": "template-addon",
|
"id": "addon-template",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
|
"name": "Addon Template",
|
||||||
"name": "Template Addon",
|
|
||||||
"description": "An addon template for the Meteor Addon API.",
|
"description": "An addon template for the Meteor Addon API.",
|
||||||
"authors": [
|
"authors": [
|
||||||
"seasnail8169"
|
"seasnail8169"
|
||||||
],
|
],
|
||||||
"contact": {
|
"contact": {
|
||||||
"issues": "https://github.com/MeteorDevelopment/meteor-addon-template/issues",
|
"repo": "https://github.com/MeteorDevelopment/meteor-addon-template"
|
||||||
"sources": "https://github.com/MeteorDevelopment/meteor-addon-template/",
|
|
||||||
"discord": "https://meteorclient.com/discord"
|
|
||||||
},
|
},
|
||||||
"icon": "assets/template/icon.png",
|
"icon": "assets/template/icon.png",
|
||||||
"environment": "client",
|
"environment": "client",
|
||||||
@ -24,8 +21,8 @@
|
|||||||
"template.mixins.json"
|
"template.mixins.json"
|
||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.7.4",
|
"java": "16",
|
||||||
"minecraft": "1.16.x",
|
"minecraft": "<=1.17",
|
||||||
"meteor-client": "*"
|
"meteor-client": "<=0.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"package": "meteordevelopment.addons.template.mixins",
|
"package": "meteordevelopment.addons.template.mixins",
|
||||||
"compatibilityLevel": "JAVA_8",
|
"compatibilityLevel": "JAVA_16",
|
||||||
"client": [
|
"client": [],
|
||||||
],
|
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user