diff options
| author | RoseGoldIsntGay <yoavkau@gmail.com> | 2021-11-07 18:34:22 +0200 |
|---|---|---|
| committer | RoseGoldIsntGay <yoavkau@gmail.com> | 2021-11-07 18:34:22 +0200 |
| commit | 6f69d1e1aff688bf2f5ca34754640eed5102b045 (patch) | |
| tree | e931c56ad48dedb4cec6ffceb78ef0b320c1c192 | |
| download | RGA-6f69d1e1aff688bf2f5ca34754640eed5102b045.tar.gz RGA-6f69d1e1aff688bf2f5ca34754640eed5102b045.tar.bz2 RGA-6f69d1e1aff688bf2f5ca34754640eed5102b045.zip | |
committed
or something
38 files changed, 3780 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..36367f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +# eclipse +eclipse +bin +*.launch +.settings +.metadata +.classpath +.project + +# idea +out +classes +*.ipr +*.iws +*.iml +.idea + +# gradle +build +.gradle + +#Netbeans +.nb-gradle +.nb-gradle-properties + +# other +run +.DS_Store +Thumbs.db
\ No newline at end of file diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..dceb049 --- /dev/null +++ b/build.gradle @@ -0,0 +1,94 @@ +plugins { + id "net.minecraftforge.gradle.forge" version "6f53277" + id "com.github.johnrengelman.shadow" version "6.1.0" + id "org.spongepowered.mixin" version "0.6-SNAPSHOT" +} + +version = "2.0.1" +group = "rosegoldaddons" +archivesBaseName = "RoseGoldAddons" + +sourceCompatibility = targetCompatibility = 1.8 +compileJava.options.encoding = 'UTF-8' + +minecraft { + version = "1.8.9-11.15.1.2318-1.8.9" + runDir = "run" + mappings = "stable_22" + makeObfSourceJar = false + clientRunArgs += ["--tweakClass gg.essential.loader.stage0.EssentialSetupTweaker", "--mixin mixins.rosegoldaddons.json"] +} + +repositories { + mavenCentral() + maven { url "https://jitpack.io" } + maven { url "https://repo.spongepowered.org/repository/maven-public/" } + maven { url "https://repo.sk1er.club/repository/maven-public" } + maven { url "https://repo.sk1er.club/repository/maven-releases/" } +} + +configurations { + packageLib + configurations.implementation.extendsFrom(configurations.packageLib) +} + + +dependencies { + annotationProcessor("org.spongepowered:mixin:0.7.11-SNAPSHOT") + implementation("org.spongepowered:mixin:0.7.11-SNAPSHOT") + packageLib("gg.essential:loader-launchwrapper:1.1.1") + implementation("gg.essential:essential-1.8.9-forge:1498") +} + +mixin { + disableRefMapWarning = true + defaultObfuscationEnv searge + add sourceSets.main, "mixins.rosegoldaddons.refmap.json" +} + +jar { + + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + + manifest.attributes( + "FMLCorePluginContainsFMLMod": true, + "FMLCorePlugin": "rosegoldaddons.FMLLoadingPlugin", + "ForceLoadAsMod": true, + "MixinConfigs": "mixins.rosegoldaddons.json", + "ModSide": "CLIENT", + "TweakClass": "gg.essential.loader.stage0.EssentialSetupTweaker", + "TweakOrder": "0" + ) + + enabled = false +} + +shadowJar { + archiveFileName = jar.archiveFileName + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + configurations = [project.configurations.packageLib] +} + +reobf { + shadowJar { + classpath = sourceSets.main.compileClasspath + } +} + +processResources { + inputs.property "version", project.version + inputs.property "mcversion", project.minecraft.version + from(sourceSets.main.resources.srcDirs) { + include 'mcmod.info' + expand 'version':project.version, 'mcversion':project.minecraft.version + } + from(sourceSets.main.resources.srcDirs) { + exclude 'mcmod.info' + } +} + +sourceSets { + main { output.resourcesDir = java.outputDir } +} + +tasks.reobfJar.dependsOn(shadowJar) diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..bf86fb7 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +org.gradle.jvmargs=-Xmx2G
\ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar Binary files differnew file mode 100644 index 0000000..e708b1c --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..8cf6eb5 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..107acd3 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..f66dbc7 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,31 @@ +pluginManagement { + repositories { + mavenCentral() + gradlePluginPortal() + + // Add the Forge Repository (ForgeGradle fetches most of its stuff from here) + maven { + name = "Forge" + url = "https://maven.minecraftforge.net" + } + + // Add the Jitpack Repository (We fetch ForgeGradle from this) + maven { + name = "Jitpack" + url = "https://jitpack.io/" + } + } + resolutionStrategy { + eachPlugin { + // If the "net.minecraftforge.gradle.forge" plugin is requested we redirect it to asbyth's ForgeGradle fork + if (requested.id.id == "net.minecraftforge.gradle.forge") { + useModule("com.github.asbyth:ForgeGradle:${requested.version}") + } + if (requested.id.id == "org.spongepowered.mixin") { + useModule("com.github.xcfrg:MixinGradle:${requested.version}") + } + } + } +} + +rootProject.name = "ForgeTemplate"
\ No newline at end of file diff --git a/src/main/java/rosegoldaddons/Config.java b/src/main/java/rosegoldaddons/Config.java new file mode 100644 index 0000000..0047b65 --- /dev/null +++ b/src/main/java/rosegoldaddons/Config.java @@ -0,0 +1,52 @@ +package rosegoldaddons; + +import gg.essential.vigilance.Vigilant; +import gg.essential.vigilance.data.Property; +import gg.essential.vigilance.data.PropertyType; + +import java.awt.*; +import java.io.File; +import java.util.Arrays; + +import java.io.File; + +public class Config extends Vigilant { + public static Config INSTANCE = new Config(); + + @Property(type = PropertyType.SWITCH, name = "Auto Start Dungeon + Ready", description = "Automatically starts the dungeon and gets ready.", + category = "RoseGoldAddons", subcategory = "General") + public boolean AutoReady = true; + + @Property(type = PropertyType.SWITCH, name = "Party Untransfer", description = "When you really dont wanna be party leader.", + category = "RoseGoldAddons", subcategory = "General") + public boolean AutoUntransfer = true; + + @Property(type = PropertyType.SWITCH, name = "Enderman ESP", description = "**NOT** Needed for enderman macro.", + category = "RoseGoldAddons", subcategory = "General") + public boolean EndermanESP = false; + + @Property(type = PropertyType.SWITCH, name = "Use Utility Items when Swapping", description = "Automatically use Tuba / Orb / Wand when AOTS or Whip swap are enabled", + category = "RoseGoldAddons", subcategory = "General") + public boolean UseUtility = false; + + @Property(type = PropertyType.SLIDER, name = "Sword Swap Delay", description = "How often to swap swords (in miliseconds)", + category = "RoseGoldAddons", subcategory = "General", max = 2000) + public int swapFrequency = 500; + + @Property(type = PropertyType.SLIDER, name = "ItemFrame Terminal Aura Delay", description = "How often to click an item frame (in miliseconds)", + category = "RoseGoldAddons", subcategory = "General", max = 500) + public int auraDelay = 10; + + @Property(type = PropertyType.SLIDER, name = "Smooth Look Velocity", description = "How fast should head rotation changes be (in miliseconds)", + category = "RoseGoldAddons", subcategory = "General", min = 1, max = 200) + public int smoothLookVelocity = 50; + + @Property(type = PropertyType.SLIDER, name = "Macro Range", description = "Look for entities only in radius of the player, 0 = unlimited", + category = "RoseGoldAddons", subcategory = "General", min = 0, max = 100) + public int macroRadius = 0; + + public Config() { + super(new File("./config/rosegoldaddons/config.toml"), "RoseGold Addons"); + initialize(); + } +} diff --git a/src/main/java/rosegoldaddons/FMLLoadingPlugin.java b/src/main/java/rosegoldaddons/FMLLoadingPlugin.java new file mode 100644 index 0000000..57d237e --- /dev/null +++ b/src/main/java/rosegoldaddons/FMLLoadingPlugin.java @@ -0,0 +1,45 @@ +package rosegoldaddons; + +import net.minecraftforge.common.ForgeVersion; +import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; +import org.spongepowered.asm.launch.MixinBootstrap; +import org.spongepowered.asm.mixin.MixinEnvironment; +import org.spongepowered.asm.mixin.Mixins; + + +import java.util.Map; + +@IFMLLoadingPlugin.MCVersion(ForgeVersion.mcVersion) +public class FMLLoadingPlugin implements IFMLLoadingPlugin { + + public FMLLoadingPlugin() { + MixinBootstrap.init(); + Mixins.addConfiguration("mixins.rosegoldaddons.json"); + MixinEnvironment.getCurrentEnvironment().setObfuscationContext("searge"); + } + + @Override + public String[] getASMTransformerClass() { + return new String[0]; + } + + @Override + public String getModContainerClass() { + return null; + } + + @Override + public String getSetupClass() { + return null; + } + + @Override + public void injectData(Map<String, Object> data) { + + } + + @Override + public String getAccessTransformerClass() { + return null; + } +} diff --git a/src/main/java/rosegoldaddons/Main.java b/src/main/java/rosegoldaddons/Main.java new file mode 100644 index 0000000..9c2a338 --- /dev/null +++ b/src/main/java/rosegoldaddons/Main.java @@ -0,0 +1,159 @@ +package rosegoldaddons; + +import net.minecraft.client.Minecraft; +import net.minecraft.client.gui.GuiScreen; +import net.minecraft.client.settings.KeyBinding; +import net.minecraft.util.ChatComponentText; +import net.minecraftforge.client.ClientCommandHandler; +import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.fml.client.registry.ClientRegistry; +import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.common.event.FMLInitializationEvent; +import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; +import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; +import net.minecraftforge.fml.common.gameevent.InputEvent; +import net.minecraftforge.fml.common.gameevent.TickEvent; +import net.minecraftforge.fml.common.network.FMLNetworkEvent; +import org.lwjgl.input.Keyboard; +import rosegoldaddons.commands.*; +import rosegoldaddons.features.BlockBreakAura; +import rosegoldaddons.features.*; +import rosegoldaddons.utils.OpenSkyblockGui; + +import java.io.*; + +@Mod(modid = "timechanger", name = "RoseGold Addons", version = "2.1") +public class Main { + public static GuiScreen display = null; + public static Config configFile = Config.INSTANCE; + public static KeyBinding[] keyBinds = new KeyBinding[11]; + public static int tickCount = 0; + public static boolean endermanMacro = false; + public static boolean powderMacro = false; + public static String u = ""; + public static boolean AOTSMacro = false; + public static boolean SoulWhipMacro = false; + public static boolean verified = false; + public static boolean GhostMacro = false; + public static boolean legitToggle = false; + public static boolean gemNukeToggle = false; + public static boolean wartToggle = false; + public static boolean autoUseItems = false; + public static boolean autoHardStone = false; + + @Mod.EventHandler + public void onFMLInitialization(FMLPreInitializationEvent event) { + File directory = new File(event.getModConfigurationDirectory(), "rosegoldaddons"); + if (!directory.exists()) { + directory.mkdirs(); + } + } + + @Mod.EventHandler + public void init(FMLInitializationEvent event) { + MinecraftForge.EVENT_BUS.register(this); + MinecraftForge.EVENT_BUS.register(new AutoReady()); + MinecraftForge.EVENT_BUS.register(new OpenSkyblockGui()); + MinecraftForge.EVENT_BUS.register(new EndermanMacro()); + MinecraftForge.EVENT_BUS.register(new ItemFrameAura()); + MinecraftForge.EVENT_BUS.register(new PowderMacro()); + MinecraftForge.EVENT_BUS.register(new SwordSwapping()); + MinecraftForge.EVENT_BUS.register(new PartyUntransfer()); + MinecraftForge.EVENT_BUS.register(new GhostMacro()); + MinecraftForge.EVENT_BUS.register(new BlockBreakAura()); + MinecraftForge.EVENT_BUS.register(new WartMacro()); + MinecraftForge.EVENT_BUS.register(new CustomItemMacro()); + MinecraftForge.EVENT_BUS.register(new HardstoneMacro()); + + configFile.initialize(); + ClientCommandHandler.instance.registerCommand(new OpenSettings()); + ClientCommandHandler.instance.registerCommand(new Rosedrobe()); + ClientCommandHandler.instance.registerCommand(new LobbySwap()); + ClientCommandHandler.instance.registerCommand(new Backpack()); + ClientCommandHandler.instance.registerCommand(new WartSetup()); + ClientCommandHandler.instance.registerCommand(new UseCooldown()); + + keyBinds[0] = new KeyBinding("Custom Item Macro Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[1] = new KeyBinding("Toggle Enderman Macro", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[2] = new KeyBinding("Item Frame Aura", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[3] = new KeyBinding("Powder Macro Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[4] = new KeyBinding("AOTS SS Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[5] = new KeyBinding("Soul Whip SS Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[6] = new KeyBinding("Ghost Macro Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[7] = new KeyBinding("Item Frame Legit Mode Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[8] = new KeyBinding("Gemstone Smart Nuke", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[9] = new KeyBinding("Wart Macro", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[10] = new KeyBinding("Hardstone Macro", Keyboard.KEY_NONE, "RoseGold Addons"); + + for (KeyBinding keyBind : keyBinds) { + ClientRegistry.registerKeyBinding(keyBind); + } + } + + @SubscribeEvent + public void tick(TickEvent.ClientTickEvent event) { + if (event.phase != TickEvent.Phase.START) return; + if (display != null) { + try { + Minecraft.getMinecraft().displayGuiScreen(display); + } catch (Exception e) { + e.printStackTrace(); + } + display = null; + } + } + + @SubscribeEvent + public void connect(FMLNetworkEvent.ClientConnectedToServerEvent event) { + + } + + @SubscribeEvent + public void key(InputEvent.KeyInputEvent event) { + if (keyBinds[0].isPressed()) { + autoUseItems = !autoUseItems; + String str = autoUseItems ? "§aCustom Item Macro Activated" : "§cCustom Item Macro Deactivated"; + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + } else if (keyBinds[1].isPressed()) { + endermanMacro = !endermanMacro; + String str = endermanMacro ? "§aZealot Macro Activated" : "§cZealot Macro Deactivated"; + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + } else if (keyBinds[2].isPressed()) { + ItemFrameAura.mainAura(); + } else if (keyBinds[3].isPressed()) { + powderMacro = !powderMacro; + String str = powderMacro ? "§aPowder Macro Activated" : "§cPowder Macro Deactivated"; + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + } else if (keyBinds[4].isPressed()) { + AOTSMacro = !AOTSMacro; + String str = AOTSMacro ? "§aAOTS Macro Activated" : "§cAOTS Macro Deactivated"; + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + } else if (keyBinds[5].isPressed()) { + SoulWhipMacro = !SoulWhipMacro; + String str = SoulWhipMacro ? "§aSoul Whip Macro Activated" : "§cSoul Whip Macro Deactivated"; + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + } else if(keyBinds[6].isPressed()) { + GhostMacro = !GhostMacro; + String str = GhostMacro ? "§aGhost Macro Activated" : "§cGhost Macro Deactivated"; + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + } else if(keyBinds[7].isPressed()) { + legitToggle = !legitToggle; + String str = legitToggle ? "§aLegit Mode Activated" : "§cLegit Mode Deactivated"; + SwordSwapping.tickCount = 0; + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + } else if(keyBinds[8].isPressed()) { + gemNukeToggle = !gemNukeToggle; + String str = gemN |
