diff options
Diffstat (limited to 'src/main/java/rosegoldaddons/Main.java')
-rw-r--r-- | src/main/java/rosegoldaddons/Main.java | 89 |
1 files changed, 67 insertions, 22 deletions
diff --git a/src/main/java/rosegoldaddons/Main.java b/src/main/java/rosegoldaddons/Main.java index 9c2a338..7a134de 100644 --- a/src/main/java/rosegoldaddons/Main.java +++ b/src/main/java/rosegoldaddons/Main.java @@ -3,9 +3,13 @@ package rosegoldaddons; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.settings.KeyBinding; +import net.minecraft.event.ClickEvent; import net.minecraft.util.ChatComponentText; +import net.minecraft.util.Timer; import net.minecraftforge.client.ClientCommandHandler; +import net.minecraftforge.common.ForgeHooks; import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.event.world.WorldEvent; import net.minecraftforge.fml.client.registry.ClientRegistry; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLInitializationEvent; @@ -18,15 +22,18 @@ import org.lwjgl.input.Keyboard; import rosegoldaddons.commands.*; import rosegoldaddons.features.BlockBreakAura; import rosegoldaddons.features.*; +import rosegoldaddons.utils.ChatUtils; import rosegoldaddons.utils.OpenSkyblockGui; +import tv.twitch.chat.Chat; import java.io.*; +import java.util.TimerTask; @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 KeyBinding[] keyBinds = new KeyBinding[14]; public static int tickCount = 0; public static boolean endermanMacro = false; public static boolean powderMacro = false; @@ -40,6 +47,11 @@ public class Main { public static boolean wartToggle = 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; @Mod.EventHandler public void onFMLInitialization(FMLPreInitializationEvent event) { @@ -64,7 +76,9 @@ public class Main { MinecraftForge.EVENT_BUS.register(new WartMacro()); MinecraftForge.EVENT_BUS.register(new CustomItemMacro()); MinecraftForge.EVENT_BUS.register(new HardstoneMacro()); - + MinecraftForge.EVENT_BUS.register(new ForagingIslandMacro()); + MinecraftForge.EVENT_BUS.register(new NecronAimbot()); + MinecraftForge.EVENT_BUS.register(new BloodTriggerBot()); configFile.initialize(); ClientCommandHandler.instance.registerCommand(new OpenSettings()); ClientCommandHandler.instance.registerCommand(new Rosedrobe()); @@ -84,6 +98,9 @@ public class Main { 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"); + keyBinds[11] = new KeyBinding("Foraging Island Macro", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[12] = new KeyBinding("Necron Aimbot Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); + keyBinds[13] = new KeyBinding("Blood Room Tiggerbot Toggle", Keyboard.KEY_NONE, "RoseGold Addons"); for (KeyBinding keyBind : keyBinds) { ClientRegistry.registerKeyBinding(keyBind); @@ -91,6 +108,27 @@ public class Main { } @SubscribeEvent + public void onConnect(FMLNetworkEvent.ClientConnectedToServerEvent event) { + new Thread(() -> { + try { + Thread.sleep(4000); + ChatComponentText msg1 = new ChatComponentText("§0§7Thanks to ShadyAddons:§b https://cheatersgetbanned.me"); + 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("RoseGoldAddons 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); + } catch (Exception e) { + e.printStackTrace(); + } + }).start(); + } + + @SubscribeEvent public void tick(TickEvent.ClientTickEvent event) { if (event.phase != TickEvent.Phase.START) return; if (display != null) { @@ -104,55 +142,62 @@ public class Main { } @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)); + ChatUtils.sendMessage(str); } else if (keyBinds[1].isPressed()) { endermanMacro = !endermanMacro; String str = endermanMacro ? "§aZealot Macro Activated" : "§cZealot Macro Deactivated"; - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + ChatUtils.sendMessage(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)); + ChatUtils.sendMessage(str); } else if (keyBinds[4].isPressed()) { AOTSMacro = !AOTSMacro; String str = AOTSMacro ? "§aAOTS Macro Activated" : "§cAOTS Macro Deactivated"; - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + ChatUtils.sendMessage(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()) { + ChatUtils.sendMessage(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()) { + ChatUtils.sendMessage(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()) { + ChatUtils.sendMessage(str); + } else if (keyBinds[8].isPressed()) { gemNukeToggle = !gemNukeToggle; String str = gemNukeToggle ? "§aGemstone Nuke Activated" : "§cGemstone Nuke Deactivated"; - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); - } else if(keyBinds[9].isPressed()) { + ChatUtils.sendMessage(str); + } else if (keyBinds[9].isPressed()) { wartToggle = !wartToggle; String str = wartToggle ? "§aWart Macro Activated" : "§cWart Macro Deactivated"; - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); - } else if(keyBinds[10].isPressed()) { + ChatUtils.sendMessage(str); + } else if (keyBinds[10].isPressed()) { autoHardStone = !autoHardStone; String str = autoHardStone ? "§aHardstone Macro Activated" : "§cHardstone Macro Deactivated"; - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(str)); + ChatUtils.sendMessage(str); + } else if (keyBinds[11].isPressed()) { + forageOnIsland = !forageOnIsland; + String str = forageOnIsland ? "§aForaging Macro Activated" : "§cForaging Macro Deactivated"; + ChatUtils.sendMessage(str); + } else if (keyBinds[12].isPressed()) { + necronAimbot = !necronAimbot; + String str = necronAimbot ? "§aNecron Aimbot Activated" : "§cNecron Aimbot Deactivated"; + ChatUtils.sendMessage(str); + } else if (keyBinds[13].isPressed()) { + bloodTriggerBot = !bloodTriggerBot; + String str = bloodTriggerBot ? "§aBlood Room Triggerbot Activated" : "§cBlood Room Triggerbot Deactivated"; + ChatUtils.sendMessage(str); } } |