diff --git a/build.gradle b/build.gradle index 220d900..f76922e 100644 --- a/build.gradle +++ b/build.gradle @@ -10,6 +10,13 @@ archivesBaseName = project.archives_base_name version = project.mod_version group = project.maven_group +repositories { + maven { + name = "CottonMC" + url = "https://server.bbkr.space/artifactory/libs-release" + } +} + dependencies { //to change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" @@ -21,6 +28,9 @@ dependencies { // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. // You may need to force-disable transitiveness on them. + dependencies { + modImplementation "io.github.cottonmc:LibGui:3.2.1+1.16.3" + } } processResources { diff --git a/src/main/java/com/josyf/macrobuttons/MacroButtons.java b/src/main/java/com/josyf/macrobuttons/MacroButtons.java new file mode 100644 index 0000000..1469633 --- /dev/null +++ b/src/main/java/com/josyf/macrobuttons/MacroButtons.java @@ -0,0 +1,13 @@ +package com.josyf.macrobuttons; + +import net.fabricmc.api.ModInitializer; + +public class MacroButtons implements ModInitializer { + + public static final String MOD_ID = "mgbuttons"; + + @Override + public void onInitialize() { + + } +} diff --git a/src/main/java/net/fabricmc/example/ExampleMod.java b/src/main/java/net/fabricmc/example/ExampleMod.java deleted file mode 100644 index e5ed082..0000000 --- a/src/main/java/net/fabricmc/example/ExampleMod.java +++ /dev/null @@ -1,14 +0,0 @@ -package net.fabricmc.example; - -import net.fabricmc.api.ModInitializer; - -public class ExampleMod implements ModInitializer { - @Override - public void onInitialize() { - // This code runs as soon as Minecraft is in a mod-load-ready state. - // However, some things (like resources) may still be uninitialized. - // Proceed with mild caution. - - System.out.println("Hello Fabric world!"); - } -} diff --git a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java b/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java deleted file mode 100644 index 83ee1a8..0000000 --- a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java +++ /dev/null @@ -1,15 +0,0 @@ -package net.fabricmc.example.mixin; - -import net.minecraft.client.gui.screen.TitleScreen; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -@Mixin(TitleScreen.class) -public class ExampleMixin { - @Inject(at = @At("HEAD"), method = "init()V") - private void init(CallbackInfo info) { - System.out.println("This line is printed by an example mod mixin!"); - } -} diff --git a/src/main/resources/assets/modid/icon.png b/src/main/resources/assets/mgbuttons/icon.png similarity index 100% rename from src/main/resources/assets/modid/icon.png rename to src/main/resources/assets/mgbuttons/icon.png diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 3762966..1aa6fb9 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,35 +1,36 @@ { "schemaVersion": 1, - "id": "modid", + "id": "mgbuttons", "version": "${version}", - "name": "Example Mod", - "description": "This is an example description! Tell everyone what your mod is about!", + "name": "Macro GUI Buttons", + "description": "Create GUI buttons in-game to execute macro commands.", "authors": [ - "Me!" + "JosephG" ], "contact": { - "homepage": "https://fabricmc.net/", - "sources": "https://github.com/FabricMC/fabric-example-mod" + "homepage": "", + "sources": "https://github.com/joseph-garcia/macro-gui-buttons" }, - "license": "CC0-1.0", - "icon": "assets/modid/icon.png", + "license": "gpl-3.0", + "icon": "assets/mgbuttons/icon.png", "environment": "*", "entrypoints": { "main": [ - "net.fabricmc.example.ExampleMod" + "com.josyf.macrobuttons.MacroButtons" ] }, "mixins": [ - "modid.mixins.json" + ], "depends": { "fabricloader": ">=0.7.4", "fabric": "*", - "minecraft": "1.16.x" + "minecraft": "1.16.x", + "fabric-key-binding-api-v1": "*" }, "suggests": { "flamingo": "*"