Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. B73 and packet S02

B73 and packet S02

Scheduled Pinned Locked Moved Unsolved ScriptAPI
13 Posts 8 Posters 3.8k Views
  • 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.
  • FaaatPotatoF FaaatPotato

    Is that broken in b73 in general and will it be fixed some day?

    module.on("packet", function (e) {
    var packet = e.getPacket();
    
    if (packet instanceof S02) {
    if (packet.getChatComponent().getUnformattedText().contains("something")) {
    //something
    }
    }
    });
    
    A Offline
    A Offline
    Aashaby
    wrote on last edited by
    #2

    @faaatpotato Try version b72

    FaaatPotatoF 1 Reply Last reply
    0
    • A Aashaby

      @faaatpotato Try version b72

      FaaatPotatoF Offline
      FaaatPotatoF Offline
      FaaatPotato
      wrote on last edited by
      #3

      @aashaby no

      1 Reply Last reply
      0
      • FaaatPotatoF FaaatPotato

        Is that broken in b73 in general and will it be fixed some day?

        module.on("packet", function (e) {
        var packet = e.getPacket();
        
        if (packet instanceof S02) {
        if (packet.getChatComponent().getUnformattedText().contains("something")) {
        //something
        }
        }
        });
        
        CzechHekC Offline
        CzechHekC Offline
        CzechHek
        wrote on last edited by
        #4

        @faaatpotato
        Try to replace packet = e.getPacket()
        with packet = e.getPacket().wrapped.

        If you are having problems with wrapped packets on cross-version.

        ? 1 Reply Last reply
        2
        • FaaatPotatoF FaaatPotato

          Is that broken in b73 in general and will it be fixed some day?

          module.on("packet", function (e) {
          var packet = e.getPacket();
          
          if (packet instanceof S02) {
          if (packet.getChatComponent().getUnformattedText().contains("something")) {
          //something
          }
          }
          });
          
          Konoha ScarletK Offline
          Konoha ScarletK Offline
          Konoha Scarlet
          wrote on last edited by
          #5

          @faaatpotato What you need is S02PacketChat

          FaaatPotatoF 1 Reply Last reply
          1
          • Konoha ScarletK Konoha Scarlet

            @faaatpotato What you need is S02PacketChat

            FaaatPotatoF Offline
            FaaatPotatoF Offline
            FaaatPotato
            wrote on last edited by FaaatPotato
            #6

            @konoha-scarlet ig no

            i was just laizy

            var S02 = Java.type("net.minecraft.network.play.server.S02PacketChat");
            

            did not type that into my top message

            1 Reply Last reply
            0
            • FaaatPotatoF FaaatPotato

              Is that broken in b73 in general and will it be fixed some day?

              module.on("packet", function (e) {
              var packet = e.getPacket();
              
              if (packet instanceof S02) {
              if (packet.getChatComponent().getUnformattedText().contains("something")) {
              //something
              }
              }
              });
              
              dntdbtD Offline
              dntdbtD Offline
              dntdbt
              wrote on last edited by
              #7

              @faaatpotato use wrapped packets with searge obfuscated methods

              FaaatPotatoF 1 Reply Last reply
              1
              • dntdbtD dntdbt

                @faaatpotato use wrapped packets with searge obfuscated methods

                FaaatPotatoF Offline
                FaaatPotatoF Offline
                FaaatPotato
                wrote on last edited by
                #8

                @dntdbt kk

                1 Reply Last reply
                0
                • FaaatPotatoF Offline
                  FaaatPotatoF Offline
                  FaaatPotato
                  wrote on last edited by
                  #9

                  @sigmer 6d9c4812-f939-4b24-8af5-823188646212-image.png

                  undefined undefined

                  1 Reply Last reply
                  0
                  • CzechHekC CzechHek

                    @faaatpotato
                    Try to replace packet = e.getPacket()
                    with packet = e.getPacket().wrapped.

                    If you are having problems with wrapped packets on cross-version.

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by A Former User
                    #10

                    @czechhek i really hate cross version, breaking a shit ton of scripts man 😞

                    I 1 Reply Last reply
                    0
                    • ? A Former User

                      @czechhek i really hate cross version, breaking a shit ton of scripts man 😞

                      I Offline
                      I Offline
                      idk my name
                      wrote on last edited by idk my name
                      #11

                      @fartcheese all of them correctly work if you use wrapped access & searge names
                      example (I did not really use "wrapped access" because I fixed this shit by changing wrapped events to unwrapped in my custom build):
                      non xversion:

                      onPacket: function(e) {
                          e.getPacket() instanceof C03PacketPlayer  && (e.getPacket().onGround = true);
                      }
                      

                      xversion:

                      onPacket: function(e) {
                          e.getPacket() instanceof C03PacketPlayer  && (e.getPacket().wrapped.field_149474_g = true); //onGround
                      }
                      
                      I ? 2 Replies Last reply
                      0
                      • I idk my name

                        @fartcheese all of them correctly work if you use wrapped access & searge names
                        example (I did not really use "wrapped access" because I fixed this shit by changing wrapped events to unwrapped in my custom build):
                        non xversion:

                        onPacket: function(e) {
                            e.getPacket() instanceof C03PacketPlayer  && (e.getPacket().onGround = true);
                        }
                        

                        xversion:

                        onPacket: function(e) {
                            e.getPacket() instanceof C03PacketPlayer  && (e.getPacket().wrapped.field_149474_g = true); //onGround
                        }
                        
                        I Offline
                        I Offline
                        idk my name
                        wrote on last edited by
                        #12

                        @idk-my-name said in B73 and packet S02:

                        searge names

                        You can find all of them in LiquidBounce-1.8/mcp-stable_22.srg
                        215bc07c-5362-4af7-8dd4-c335a2884de9-image.png

                        1 Reply Last reply
                        0
                        • I idk my name

                          @fartcheese all of them correctly work if you use wrapped access & searge names
                          example (I did not really use "wrapped access" because I fixed this shit by changing wrapped events to unwrapped in my custom build):
                          non xversion:

                          onPacket: function(e) {
                              e.getPacket() instanceof C03PacketPlayer  && (e.getPacket().onGround = true);
                          }
                          

                          xversion:

                          onPacket: function(e) {
                              e.getPacket() instanceof C03PacketPlayer  && (e.getPacket().wrapped.field_149474_g = true); //onGround
                          }
                          
                          ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #13

                          @idk-my-name yeah, and by telling a lot of script makers to use wrapped packets because of a change 😳

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          About
                          • Terms of Service
                          • Privacy Policy
                          • Status
                          • Contact Us
                          Downloads
                          • Releases
                          • Source code
                          • License
                          Docs
                          • Tutorials
                          • CustomHUD
                          • AutoSettings
                          • ScriptAPI
                          Community
                          • Forum
                          • Guilded
                          • YouTube
                          • Twitter
                          • D.Tube
                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups