Navigation

    CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to tell a module is on or off?

    Scripts
    8
    23
    277
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chodeman
      chodeman last edited by chodeman

      How to tell if a module is on or off?

      moduleManager.getModule("Trigger").get()
      

      This didn't work. What do I need to do?

      Also how do you take a screenshot?

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by

        getState() maybe

        chodeman 1 Reply Last reply Reply Quote 0
        • chodeman
          chodeman @Guest last edited by

          @sexma Also how would I take a screenshot? Thanks.

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @chodeman last edited by

            @chodeman said in How to tell a module is on or off?:

            @sexma Also how would I take a screenshot? Thanks.

            f2 should work

            chodeman 1 Reply Last reply Reply Quote 0
            • chodeman
              chodeman @Guest last edited by

              @sexma i mean via script

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User last edited by

                also im checking lb src but I couldn't find any functions about it

                notepad++_fjbyzK0bre.png

                I can only see this

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @chodeman last edited by

                  @chodeman said in How to tell a module is on or off?:

                  @sexma i mean via script

                  why would you screenshot via script

                  chodeman 1 Reply Last reply Reply Quote 0
                  • chodeman
                    chodeman @Guest last edited by

                    @sexma that's not pertinent

                    1 Reply Last reply Reply Quote 0
                    • Litely
                      Litely last edited by

                      LiquidBounce.moduleManager.getModule(Trigger.class).getState()
                      or
                      final Trigger trigger = (Trigger) LiquidBounce.moduleManager.getModule(Trigger.class);
                      trigger.getState() idk

                      chodeman 1 Reply Last reply Reply Quote 0
                      • chodeman
                        chodeman @Litely last edited by

                        @idkmyname

                        final Trigger trigger = (Trigger) LiquidBounce.moduleManager.getModule(Trigger.class);
                        trigger.getState()
                        

                        syntax maybe?

                        Litely 1 Reply Last reply Reply Quote 0
                        • Litely
                          Litely @chodeman last edited by

                          try
                          //8chars

                          1 Reply Last reply Reply Quote 0
                          • C
                            commandblock2 last edited by commandblock2

                            LiquidBounce/1.8.9-Forge/build/tmp/recompileMc/sources/net $ grep screenshot . -ir
                            
                            ...
                            
                            ./minecraft/client/Minecraft.java:import net.minecraft.util.ScreenShotHelper;
                            ./minecraft/client/Minecraft.java:                    else if (i == this.gameSettings.keyBindScreenshot.getKeyCode())
                            ./minecraft/client/Minecraft.java:                        this.ingameGUI.getChatGUI().printChatMessage(ScreenShotHelper.saveScreenshot(this.mcDataDir, this.displayWidth, this.displayHeight, this.framebufferMc));
                            
                            ...
                            

                            beware that this.framebufferMc could be a private member.

                            O 1 Reply Last reply Reply Quote 4
                            • O
                              ohno @commandblock2 last edited by

                              @commandblock2 then modify liquidbounce_at.cfg :axoconfused:

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                commandblock2 @ohno last edited by

                                @ohno Or you use a dirty reflection.

                                C 1 Reply Last reply Reply Quote 4
                                • C
                                  commandblock2 @commandblock2 last edited by

                                  @commandblock2
                                  do this

                                  .minecraft/LiquidBounce-1.8 $ grep framebufferMc mcp-stable_22.srg  
                                  FD: net/minecraft/client/Minecraft/framebufferMc net/minecraft/client/Minecraft/field_147124_at
                                  

                                  and get field_147124_at.
                                  then you have this

                                  ScreenShotHelper = Java.type("net.minecraft.util.ScreenShotHelper")
                                  function screenShot()
                                  {
                                      framebufferMcField = mc.class.getDeclaredField("field_147124_at")
                                      framebufferMcField.setAccessible(true)
                                      framebufferMc = framebufferMcField.get(mc)
                                  
                                      //with Core.lib you only need 1 line
                                      //framebufferMc = getField(mc, "field_147124_at").get(mc)
                                  
                                  
                                      ScreenShotHelper.saveScreenshot(mc.mcDataDir, mc.displayWidth, mc.displayHeight, framebufferMc);
                                  }
                                  
                                  chodeman CzechHek 2 Replies Last reply Reply Quote 4
                                  • chodeman
                                    chodeman @commandblock2 last edited by

                                    @commandblock2
                                    Thank you! I'm new, what is the

                                    .minecraft/LiquidBounce-1.8 $ grep framebufferMc mcp-stable_22.srg  
                                    FD: net/minecraft/client/Minecraft/framebufferMc net/minecraft/client/Minecraft/field_147124_at
                                    

                                    ?

                                    C 1 Reply Last reply Reply Quote 0
                                    • C
                                      commandblock2 @chodeman last edited by commandblock2

                                      @chodeman
                                      f299f913-88e8-4993-874c-d7ae99d28e0d-image.png
                                      It is searching using grep(a program in GNU coreutils) in a text file called mcp-stable_22.srg in .minecraft/LiquidBounce-1.8.
                                      Or you can use any text editor to find it as well.
                                      Btw thx Aftery

                                      chodeman 1 Reply Last reply Reply Quote 4
                                      • O
                                        ohno last edited by

                                        var trigger = moduleManager.getModule("Trigger")
                                        if (trigger.getState()) {
                                        mc.shutdown()
                                        }

                                        1 Reply Last reply Reply Quote 0
                                        • chodeman
                                          chodeman @commandblock2 last edited by

                                          @commandblock2 said in How to tell a module is on or off?:

                                          well

                                          what does finding that in the text file have to do with the code that you put after? Do I have to change something in the text file or what?

                                          C 1 Reply Last reply Reply Quote 0
                                          • CzechHek
                                            CzechHek @commandblock2 last edited by

                                            @commandblock2 said in How to tell a module is on or off?:

                                            @commandblock2

                                                //with Core.lib you only need 1 line
                                                //framebufferMc = getField(mc, "field_147124_at").get(mc)
                                            

                                            You can do it even more easily with Core now.

                                            adaptedMc = new Reflector(mc);
                                            print(adaptedMc.framebufferMc);
                                            adaptedMc.framebufferMc = idk;
                                            

                                            and so on

                                            exit scammed 1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post