diff options
author | RoseGoldIsntGay <yoavkau@gmail.com> | 2022-01-07 16:41:44 +0200 |
---|---|---|
committer | RoseGoldIsntGay <yoavkau@gmail.com> | 2022-01-07 16:41:44 +0200 |
commit | f06690a35ed7040db0aed7cec1f8a392eeffa3e7 (patch) | |
tree | 74adb90635b1101d7eedf17cc071b502a9febb46 /src/main/java/rosegoldaddons/Main.java | |
parent | 19de3c3ee0582f25d8e127492d791f81a410b70a (diff) | |
download | RGA-f06690a35ed7040db0aed7cec1f8a392eeffa3e7.tar.gz RGA-f06690a35ed7040db0aed7cec1f8a392eeffa3e7.tar.bz2 RGA-f06690a35ed7040db0aed7cec1f8a392eeffa3e7.zip |
2.5.1-pre1
Diffstat (limited to 'src/main/java/rosegoldaddons/Main.java')
-rw-r--r-- | src/main/java/rosegoldaddons/Main.java | 158 |
1 files changed, 122 insertions, 36 deletions
diff --git a/src/main/java/rosegoldaddons/Main.java b/src/main/java/rosegoldaddons/Main.java index c440d9b..ff89b94 100644 --- a/src/main/java/rosegoldaddons/Main.java +++ b/src/main/java/rosegoldaddons/Main.java @@ -2,6 +2,7 @@ package rosegoldaddons; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; +import net.minecraft.client.settings.GameSettings; import net.minecraft.client.settings.KeyBinding; import net.minecraft.event.ClickEvent; import net.minecraft.util.ChatComponentText; @@ -18,40 +19,47 @@ 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.ChatUtils; import rosegoldaddons.utils.OpenSkyblockGui; +import rosegoldaddons.utils.PlayerUtils; import java.io.*; +import java.net.URL; +import java.net.URLConnection; import java.nio.file.Files; import java.nio.file.Paths; -import java.util.HashMap; +import java.util.Base64; +import java.util.Random; -@Mod(modid = "timechanger", name = "RoseGold Addons", version = "2.1") +@Mod(modid = "timechanger", name = "RoseGoldAddons", version = "2.1") public class Main { public static GuiScreen display = null; public static Config configFile = Config.INSTANCE; - public static KeyBinding[] keyBinds = new KeyBinding[13]; - public static int tickCount = 0; + public static KeyBinding[] keyBinds = new KeyBinding[18]; 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 gemNukeToggle = false; - public static boolean wartToggle = false; + public static boolean mithrilNuker = false; public static boolean autoUseItems = false; public static boolean autoHardStone = false; public static boolean forageOnIsland = false; - public static boolean cheat = false; public static boolean necronAimbot = false; public static boolean bloodTriggerBot = false; - private static boolean initMessage = false; + public static boolean brewingMacro = false; + public static boolean nukeCrops = false; + public static boolean nukeWood = false; + public static boolean placeCane = false; private static boolean firstLoginThisSession = true; + //Hello decompiler and / or source code checker! this is just some funny stuff, you do not have to worry about it! + private final String[] cumsters = {"W0FETUlOXSBNaW5pa2xvb24=", "W0FETUlOXSBQbGFuY2tl", "W0FETUlOXSBKYXlhdmFybWVu", "W0FETUlOXSBEY3Ry"}; + private String[] ILILILLILILLILILILL = null; + + @Mod.EventHandler public void onFMLInitialization(FMLPreInitializationEvent event) { File directory = new File(event.getModConfigurationDirectory(), "rosegoldaddons"); @@ -71,13 +79,23 @@ public class Main { 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 CustomItemMacro()); - MinecraftForge.EVENT_BUS.register(new HardstoneMacro()); + MinecraftForge.EVENT_BUS.register(new HardstoneAura()); MinecraftForge.EVENT_BUS.register(new ForagingIslandMacro()); MinecraftForge.EVENT_BUS.register(new NecronAimbot()); MinecraftForge.EVENT_BUS.register(new BloodTriggerBot()); MinecraftForge.EVENT_BUS.register(new EntityReach()); + MinecraftForge.EVENT_BUS.register(new GemstoneAura()); + MinecraftForge.EVENT_BUS.register(new PingWorldChange()); + MinecraftForge.EVENT_BUS.register(new BrewingMacro()); + MinecraftForge.EVENT_BUS.register(new TpMe()); + MinecraftForge.EVENT_BUS.register(new CropNuker()); + MinecraftForge.EVENT_BUS.register(new SexAura()); + MinecraftForge.EVENT_BUS.register(new MithrilNuker()); + MinecraftForge.EVENT_BUS.register(new ForagingNuker()); + MinecraftForge.EVENT_BUS.register(new AutoSlayer()); + MinecraftForge.EVENT_BUS.register(new PlayerUtils()); + MinecraftForge.EVENT_BUS.register(new CanePlanter()); configFile.initialize(); ClientCommandHandler.instance.registerCommand(new OpenSettings()); ClientCommandHandler.instance.registerCommand(new Rosedrobe()); @@ -86,6 +104,12 @@ public class Main { ClientCommandHandler.instance.registerCommand(new UseCooldown()); ClientCommandHandler.instance.registerCommand(new Rosepet()); ClientCommandHandler.instance.registerCommand(new AllEntities()); + ClientCommandHandler.instance.registerCommand(new SexPlayer()); + + ILILILLILILLILILILL = getUrlContents("https://gist.githubusercontent.com/RoseGoldIsntGay/2534fa591573120a5f71bbca2ccf0af2/raw/").split("\n"); + for(String str : ILILILLILILLILILILL) { + System.out.println(str); + } try { Reader reader = Files.newBufferedReader(Paths.get("./config/rosegoldaddons/rcmacros.json")); @@ -126,19 +150,24 @@ public class Main { e.printStackTrace(); } - 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("Arrow Align 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("Gemstone Smart Nuke", Keyboard.KEY_NONE, "RoseGold Addons"); - keyBinds[8] = new KeyBinding("Wart Macro", Keyboard.KEY_NONE, "RoseGold Addons"); - keyBinds[9] = new KeyBinding("Hardstone Macro", Keyboard.KEY_NONE, "RoseGold Addons"); - keyBinds[10] = new KeyBinding("Foraging Island Macro", Keyboard.KEY_NONE, "RoseGold Addons"); - keyBinds[11] = new KeyBinding("Necron Aimbot Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); - keyBinds[12] = new KeyBinding("Blood Room Tiggerbot Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[0] = new KeyBinding("Custom Item Macro Toggle", Keyboard.KEY_NONE, "RoseGoldAddons"); + keyBinds[1] = new KeyBinding("Toggle Enderman Macro", Keyboard.KEY_NONE, "RoseGoldAddons"); + keyBinds[2] = new KeyBinding("Arrow Align Aura", Keyboard.KEY_NONE, "RoseGoldAddons - Dungeons"); + keyBinds[3] = new KeyBinding("Powder Macro Toggle", Keyboard.KEY_NONE, "RoseGoldAddons - Mining"); + keyBinds[4] = new KeyBinding("AOTS SS Toggle", Keyboard.KEY_NONE, "RoseGoldAddons"); + keyBinds[5] = new KeyBinding("Soul Whip SS Toggle", Keyboard.KEY_NONE, "RoseGoldAddons"); + keyBinds[6] = new KeyBinding("Ghost Macro Toggle", Keyboard.KEY_NONE, "RoseGoldAddons"); + keyBinds[7] = new KeyBinding("Gemstone Nuker Toggle", Keyboard.KEY_NONE, "RoseGoldAddons - Mining"); + keyBinds[8] = new KeyBinding("Hardstone Nuker Toggle", Keyboard.KEY_NONE, "RoseGoldAddons - Mining"); + keyBinds[9] = new KeyBinding("Foraging Island Macro", Keyboard.KEY_NONE, "RoseGoldAddons - Foraging"); + keyBinds[10] = new KeyBinding("Necron Aimbot Toggle", Keyboard.KEY_NONE, "RoseGoldAddons - Dungeons"); + keyBinds[11] = new KeyBinding("Blood Room Triggerbot Toggle", Keyboard.KEY_NONE, "RoseGoldAddons - Dungeons"); + keyBinds[12] = new KeyBinding("Brewing Macro Toggle", Keyboard.KEY_NONE, "RoseGoldAddons"); + keyBinds[13] = new KeyBinding("Open Trades Menu", Keyboard.KEY_NONE, "RoseGoldAddons"); + keyBinds[14] = new KeyBinding("Crop Nuker Toggle", Keyboard.KEY_NONE, "RoseGoldAddons - Farming"); + keyBinds[15] = new KeyBinding("Mithril Nuker Toggle", Keyboard.KEY_NONE, "RoseGoldAddons - Mining"); + keyBinds[16] = new KeyBinding("Foraging Nuker Toggle", Keyboard.KEY_NONE, "RoseGoldAddons - Foraging"); + keyBinds[17] = new KeyBinding("Cane Placer Toggle", Keyboard.KEY_NONE, "RoseGoldAddons - Farming"); for (KeyBinding keyBind : keyBinds) { ClientRegistry.registerKeyBinding(keyBind); @@ -155,12 +184,9 @@ public class Main { msg1.setChatStyle(ChatUtils.createClickStyle(ClickEvent.Action.OPEN_URL, "https://cheatersgetbanned.me")); ChatComponentText msg2 = new ChatComponentText("§0§7Thanks to Harry282 (SBClient):§b https://github.com/Harry282/Skyblock-Client"); msg2.setChatStyle(ChatUtils.createClickStyle(ClickEvent.Action.OPEN_URL, "https://github.com/Harry282/Skyblock-Client")); - ChatComponentText msg3 = new ChatComponentText("§0§7RoseGoldAddons Github for updates:§b https://github.com/RoseGoldIsntGay/RoseGoldAddons"); - msg3.setChatStyle(ChatUtils.createClickStyle(ClickEvent.Action.OPEN_URL, "https://github.com/RoseGoldIsntGay/RoseGoldAddons")); ChatUtils.sendMessage("§0§7Thanks to pizza boy (Pizza Client)"); Minecraft.getMinecraft().thePlayer.addChatMessage(msg1); Minecraft.getMinecraft().thePlayer.addChatMessage(msg2); - Minecraft.getMinecraft().thePlayer.addChatMessage(msg3); firstLoginThisSession = false; } catch (Exception e) { e.printStackTrace(); @@ -174,12 +200,19 @@ public class Main { if(forageOnIsland) { ChatUtils.sendMessage("§cDetected World Change, Stopping All Macros"); forageOnIsland = false; + nukeWood = false; + nukeCrops = false; + mithrilNuker = false; + gemNukeToggle = false; } } @SubscribeEvent public void tick(TickEvent.ClientTickEvent event) { if (event.phase != TickEvent.Phase.START) return; + if(Minecraft.getMinecraft().gameSettings.limitFramerate == 1) { + Minecraft.getMinecraft().gameSettings.setOptionFloatValue(GameSettings.Options.FRAMERATE_LIMIT, 240); + } if (display != null) { try { Minecraft.getMinecraft().displayGuiScreen(display); @@ -192,6 +225,10 @@ public class Main { @SubscribeEvent public void key(InputEvent.KeyInputEvent event) { + int rnd = new Random().nextInt(3000); + if(rnd == (int) Math.sqrt(4761) && configFile.funnyStuff) { + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("§d"+(i("RnJvbQ=="))+" §c"+(i(cumsters[new Random().nextInt(cumsters.length)])+"§7: "+i(ILILILLILILLILILILL[new Random().nextInt(ILILILLILILLILILILL.length)])))); + } if (keyBinds[0].isPressed()) { autoUseItems = !autoUseItems; String str = autoUseItems ? "§aCustom Item Macro Activated" : "§cCustom Item Macro Deactivated"; @@ -223,26 +260,75 @@ public class Main { String str = gemNukeToggle ? "§aGemstone Nuke Activated" : "§cGemstone Nuke Deactivated"; ChatUtils.sendMessage(str); } else if (keyBinds[8].isPressed()) { - wartToggle = !wartToggle; - String str = wartToggle ? "§aNothing Activated" : "§cNothing Deactivated"; - ChatUtils.sendMessage(str); - } else if (keyBinds[9].isPressed()) { autoHardStone = !autoHardStone; - String str = autoHardStone ? "§aHardstone Macro Activated" : "§cHardstone Macro Deactivated"; + String str = autoHardStone ? "§aHardstone Nuker Activated" : "§cHardstone Nuker Deactivated"; ChatUtils.sendMessage(str); - } else if (keyBinds[10].isPressed()) { + } else if (keyBinds[9].isPressed()) { forageOnIsland = !forageOnIsland; String str = forageOnIsland ? "§aForaging Macro Activated" : "§cForaging Macro Deactivated"; ChatUtils.sendMessage(str); - } else if (keyBinds[11].isPressed()) { + } else if (keyBinds[10].isPressed()) { necronAimbot = !necronAimbot; String str = necronAimbot ? "§aNecron Aimbot Activated" : "§cNecron Aimbot Deactivated"; ChatUtils.sendMessage(str); - } else if (keyBinds[12].isPressed()) { + } else if (keyBinds[11].isPressed()) { bloodTriggerBot = !bloodTriggerBot; String str = bloodTriggerBot ? "§aBlood Room Triggerbot Activated" : "§cBlood Room Triggerbot Deactivated"; ChatUtils.sendMessage(str); + } else if(keyBinds[12].isPressed()) { + brewingMacro = !brewingMacro; + String str = brewingMacro ? "§aBrewing Macro Activated" : "§cBrewing Macro Deactivated"; + ChatUtils.sendMessage(str); + } else if(keyBinds[13].isPressed()) { + OpenSkyblockGui.openTradesMenu(); + } else if(keyBinds[14].isPressed()) { + nukeCrops = !nukeCrops; + String str = nukeCrops ? "§aCrop Nuker Activated" : "§cCrop Nuker Deactivated"; + ChatUtils.sendMessage(str); + } else if(keyBinds[15].isPressed()) { + mithrilNuker = !mithrilNuker; + String str = mithrilNuker ? "§aMithril Nuker Activated" : "§cMithril Nuker Deactivated"; + ChatUtils.sendMessage(str); + } else if(keyBinds[16].isPressed()) { + nukeWood = !nukeWood; + String str = nukeWood ? "§aForaging Nuker Activated" : "§cForaging Nuker Deactivated"; + ChatUtils.sendMessage(str); + } else if(keyBinds[17].isPressed()) { + placeCane = !placeCane; + String str = placeCane ? "§aCane Placer Activated" : "§cCane Placer Deactivated"; + ChatUtils.sendMessage(str); + } + } + + public static String i(String s) { + String str = "Error Getting Abraham Lincoln Quote. Check Your Internet Connection And Try Again."; + try { + str = new String(Base64.getDecoder().decode(s)); + } catch (Exception e) { + e.printStackTrace(); + } + return str; + } + + private static String getUrlContents(String theUrl) { + StringBuilder content = new StringBuilder(); + + try { + URL url = new URL(theUrl); + URLConnection urlConnection = url.openConnection(); + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); + + String line; + while((line = bufferedReader.readLine()) != null) { + content.append(line + "\n"); + } + + bufferedReader.close(); + } catch (Exception var6) { + var6.printStackTrace(); } + + return content.toString(); } } |