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. Kotlin/Java
  3. edit sign text how to

edit sign text how to

Scheduled Pinned Locked Moved Kotlin/Java
15 Posts 6 Posters 3.4k 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.
  • DreamWasFuckedD Offline
    DreamWasFuckedD Offline
    DreamWasFucked
    wrote on last edited by DreamWasFucked
    #1

    how
    i tried to use C12PacketUpdateSign but it doesnt work

        @EventTarget
        fun onPacket(event: PacketEvent) {
            val packet = event.packet
            if (packet is C12PacketUpdateSign) {
                // like packet.text = "lolxdsex"
            }
        }
    

    i also tried to use TileEntitySign.signText

    1 Reply Last reply
    0
    • [deleted][ Offline
      [deleted][ Offline
      [deleted]
      wrote on last edited by
      #2

      you cant edit text of placed sign, its serverside

      DreamWasFuckedD 1 Reply Last reply
      0
      • [deleted][ [deleted]

        you cant edit text of placed sign, its serverside

        DreamWasFuckedD Offline
        DreamWasFuckedD Offline
        DreamWasFucked
        wrote on last edited by
        #3

        is there any way to put a sign already with text or paste text?

        melih_gmc2M dntdbtD 2 Replies Last reply
        0
        • DreamWasFuckedD DreamWasFucked

          is there any way to put a sign already with text or paste text?

          melih_gmc2M Offline
          melih_gmc2M Offline
          melih_gmc2
          wrote on last edited by
          #4

          @auto-reply-bot there is, just place some sign with a text on it and press crtl + middle mouse button and it should save the sign with nbt tags so you can place it with text

          DreamWasFuckedD 1 Reply Last reply
          0
          • melih_gmc2M melih_gmc2

            @auto-reply-bot there is, just place some sign with a text on it and press crtl + middle mouse button and it should save the sign with nbt tags so you can place it with text

            DreamWasFuckedD Offline
            DreamWasFuckedD Offline
            DreamWasFucked
            wrote on last edited by
            #5

            survival gaymode

            1 Reply Last reply
            0
            • DreamWasFuckedD DreamWasFucked

              is there any way to put a sign already with text or paste text?

              dntdbtD Offline
              dntdbtD Offline
              dntdbt
              wrote on last edited by
              #6

              @auto-reply-bot lol just log your packets when you place a sign, what's problem?

              DreamWasFuckedD 6Sence6 2 Replies Last reply
              0
              • dntdbtD dntdbt

                @auto-reply-bot lol just log your packets when you place a sign, what's problem?

                DreamWasFuckedD Offline
                DreamWasFuckedD Offline
                DreamWasFucked
                wrote on last edited by
                #7

                ok but how to change

                1 Reply Last reply
                0
                • dntdbtD dntdbt

                  @auto-reply-bot lol just log your packets when you place a sign, what's problem?

                  6Sence6 Offline
                  6Sence6 Offline
                  6Sence
                  wrote on last edited by 6Sence
                  #8

                  @dntdbt obviously he doesn't know that otherwise he wouldn't be asking

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #9

                    You mean client-side?

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #10

                      At TileEntitySignRenderer modify the part that says something like

                      if (destroyStage < 0) {
                                      for (int j = 0; j < te.signText.length; ++j) {
                                          int i1 = j * 10 - te.signText.length * 5;
                                          if (te.signText[j] != null) {
                                              IChatComponent ichatcomponent = te.signText[j];
                                              List<IChatComponent> list = GuiUtilRenderComponents.func_178908_a(ichatcomponent, 90, fontrenderer, false, true);
                                              String s = list != null && list.size() > 0 ? list.get(0).getFormattedText() : "";
                      
                                              if (j == te.lineBeingEdited) {
                                                  s = "> " + s + " <";
                                                  fontrenderer.drawString(s, -fontrenderer.getStringWidth(s) / 2, i1, i);
                                              } else {
                                                  fontrenderer.drawString(s, -fontrenderer.getStringWidth(s) / 2, i1, i);
                                              }
                                          }
                                      }
                                  }
                      

                      To what ever you want in fontrenderer.drawString

                      DreamWasFuckedD 1 Reply Last reply
                      0
                      • ? A Former User

                        At TileEntitySignRenderer modify the part that says something like

                        if (destroyStage < 0) {
                                        for (int j = 0; j < te.signText.length; ++j) {
                                            int i1 = j * 10 - te.signText.length * 5;
                                            if (te.signText[j] != null) {
                                                IChatComponent ichatcomponent = te.signText[j];
                                                List<IChatComponent> list = GuiUtilRenderComponents.func_178908_a(ichatcomponent, 90, fontrenderer, false, true);
                                                String s = list != null && list.size() > 0 ? list.get(0).getFormattedText() : "";
                        
                                                if (j == te.lineBeingEdited) {
                                                    s = "> " + s + " <";
                                                    fontrenderer.drawString(s, -fontrenderer.getStringWidth(s) / 2, i1, i);
                                                } else {
                                                    fontrenderer.drawString(s, -fontrenderer.getStringWidth(s) / 2, i1, i);
                                                }
                                            }
                                        }
                                    }
                        

                        To what ever you want in fontrenderer.drawString

                        DreamWasFuckedD Offline
                        DreamWasFuckedD Offline
                        DreamWasFucked
                        wrote on last edited by
                        #11

                        https://wiki.wurstclient.net/autosign something like this

                        ? 1 Reply Last reply
                        0
                        • DreamWasFuckedD DreamWasFucked

                          https://wiki.wurstclient.net/autosign something like this

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

                          @auto-reply-bot wurst is open source bruh

                          DreamWasFuckedD 1 Reply Last reply
                          0
                          • ? A Former User

                            @auto-reply-bot wurst is open source bruh

                            DreamWasFuckedD Offline
                            DreamWasFuckedD Offline
                            DreamWasFucked
                            wrote on last edited by
                            #13

                            i dont know where to find the actual code bruhbruh

                            fa.png

                            ? 1 Reply Last reply
                            0
                            • DreamWasFuckedD DreamWasFucked

                              i dont know where to find the actual code bruhbruh

                              fa.png

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

                              @auto-reply-bot https://github.com/Wurst-Imperium/Wurst7/blob/master/src/main/java/net/wurstclient/mixin/SignEditScreenMixin.java
                              bruhbruhbruh

                              DreamWasFuckedD 1 Reply Last reply
                              0
                              • ? A Former User

                                @auto-reply-bot https://github.com/Wurst-Imperium/Wurst7/blob/master/src/main/java/net/wurstclient/mixin/SignEditScreenMixin.java
                                bruhbruhbruh

                                DreamWasFuckedD Offline
                                DreamWasFuckedD Offline
                                DreamWasFucked
                                wrote on last edited by
                                #15

                                bruh thx

                                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