CCBlueX Forum

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

    edit sign text how to

    Kotlin/Java
    6
    15
    247
    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.
    • DreamWasFucked
      DreamWasFucked Banned last edited by DreamWasFucked

      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 Reply Quote 0
      • [deleted]
        [deleted] last edited by

        you cant edit text of placed sign, its serverside

        DreamWasFucked 1 Reply Last reply Reply Quote 0
        • DreamWasFucked
          DreamWasFucked Banned @[deleted] last edited by

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

          melih_gmc2 dntdbt 2 Replies Last reply Reply Quote 0
          • melih_gmc2
            melih_gmc2 @DreamWasFucked last edited by

            @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

            DreamWasFucked 1 Reply Last reply Reply Quote 0
            • DreamWasFucked
              DreamWasFucked Banned @melih_gmc2 last edited by

              survival gaymode

              1 Reply Last reply Reply Quote 0
              • dntdbt
                dntdbt @DreamWasFucked last edited by

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

                DreamWasFucked 6Sence 2 Replies Last reply Reply Quote 0
                • DreamWasFucked
                  DreamWasFucked Banned @dntdbt last edited by

                  ok but how to change

                  1 Reply Last reply Reply Quote 0
                  • 6Sence
                    6Sence @dntdbt last edited by 6Sence

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

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

                      You mean client-side?

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

                        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

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

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

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

                            @auto-reply-bot wurst is open source bruh

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

                              i dont know where to find the actual code bruhbruh

                              fa.png

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

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

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

                                  bruh thx

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post
                                  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