CCBlueX Forum

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

    How do you damage yourself?

    Scripts
    4
    42
    580
    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.
    • X
      xunder last edited by

      Im trying to create a damage fly for hycraft but idk how to damage myself also I just started making scripts like 2 days ago so don't judge

      Plumer Man suicidemouse33 2 Replies Last reply Reply Quote 0
      • Plumer Man
        Plumer Man @xunder last edited by

        You can either get damage from items or from falling.

        You can recreate falling by sending packets above and then sending to your position.

        X 1 Reply Last reply Reply Quote 0
        • X
          xunder @Plumer Man last edited by xunder

          @plumer-man got it, I would send position packets right

          Plumer Man 1 Reply Last reply Reply Quote 0
          • Plumer Man
            Plumer Man @xunder last edited by

            @xunder yes
            if you want an example i can send

            X 1 Reply Last reply Reply Quote 0
            • X
              xunder @Plumer Man last edited by

              @plumer-man sure, that would be great also can you tell me how to import/ use movement utils on a liquidscript im very new to this kind of thing

              Plumer Man 1 Reply Last reply Reply Quote 0
              • Plumer Man
                Plumer Man @xunder last edited by Plumer Man

                To import movement utils just use this.

                var MovementUtils = Java.type('net.ccbluex.liquidbounce.utils.MovementUtils');
                

                https://github.com/CCBlueX/LiquidBounce/blob/legacy/src/main/java/net/ccbluex/liquidbounce/utils/MovementUtils.kt

                You can use it like this:

                MovementUtils.strafe(motionvalue);
                
                X 1 Reply Last reply Reply Quote 0
                • X
                  xunder @Plumer Man last edited by

                  @plumer-man ok thank you

                  Plumer Man 1 Reply Last reply Reply Quote 0
                  • Plumer Man
                    Plumer Man @xunder last edited by Plumer Man

                    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 3.01, mc.thePlayer.posZ, false));
                    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
                    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
                    

                    Simple damage

                    X 2 Replies Last reply Reply Quote 0
                    • X
                      xunder @Plumer Man last edited by

                      @plumer-man got it thanks

                      1 Reply Last reply Reply Quote 0
                      • X
                        xunder @Plumer Man last edited by

                        @plumer-man I was just using set position 3 blocks into the air before this lol, also how would I increase my movement speed while flying without timer

                        Plumer Man 1 Reply Last reply Reply Quote 0
                        • Plumer Man
                          Plumer Man @xunder last edited by

                          @xunder use the strafe function

                          X 2 Replies Last reply Reply Quote 0
                          • X
                            xunder @Plumer Man last edited by

                            @plumer-man ok

                            1 Reply Last reply Reply Quote 0
                            • X
                              xunder @Plumer Man last edited by

                              @plumer-man what would that look like?

                              Plumer Man 1 Reply Last reply Reply Quote 0
                              • Plumer Man
                                Plumer Man @xunder last edited by

                                @xunder What do you mean??

                                X 1 Reply Last reply Reply Quote 0
                                • X
                                  xunder @Plumer Man last edited by

                                  @plumer-man like mc.theplayer.strafe = true
                                  or how would that work

                                  Plumer Man 1 Reply Last reply Reply Quote 1
                                  • Plumer Man
                                    Plumer Man @xunder last edited by

                                    3df052f6-3a94-4417-a0de-4ea6025defc0-image.png @xunder 12d42943-126a-4b29-b9e3-62c9ba84d09e-image.png Mo
                                    Movement utils...

                                    X 1 Reply Last reply Reply Quote 1
                                    • X
                                      xunder @Plumer Man last edited by

                                      @plumer-man ok thanks, also the damage thing from earlier is being weird and doesn't damage you Screen Shot 2022-06-29 at 2.42.07 PM.png

                                      Plumer Man Ali00035 2 Replies Last reply Reply Quote 1
                                      • Plumer Man
                                        Plumer Man @xunder last edited by

                                        are you in singeplayer survival?

                                        X 1 Reply Last reply Reply Quote 0
                                        • X
                                          xunder @Plumer Man last edited by

                                          @plumer-man yes but I also tried it on several test servers also would you like to continue this conversation on discord because I can only chat every 2 minutes

                                          Ali00035 1 Reply Last reply Reply Quote 1
                                          • Ali00035
                                            Ali00035 Banned @xunder last edited by

                                            @xunder said in How do you damage yourself?:

                                            I can only chat every 2 minutes

                                            Gave you some rep, now you can chat without waiting for 2 minutes

                                            X 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