CCBlueX Forum

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

    How can I increase the potion's vanishing speed (3:00 --> 0)

    Scripts
    4
    18
    243
    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.
    • B
      BTX 0 last edited by

      How can I increase the potion's vanishing speed (3:00 --> 0)

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

        @btx-0 serverside? not possible
        client side? just remove the potion effect

        B 2 Replies Last reply Reply Quote 0
        • B
          BTX @Plumer Man last edited by

          @plumer-man 1 way to shorten the duration of effects

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

            @plumer-man it will fast forward the time of potion effect

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

              @btx that dosent work server side...

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

                @btx explain in more detail please

                suicidesquidward B 2 Replies Last reply Reply Quote 0
                • suicidesquidward
                  suicidesquidward Banned @Plumer Man last edited by

                  @plumer-man He wants to decrease the potion time.

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

                    @suicidesquidward he wants to decrease it to zero which is the equivalent of removing the effect client-side

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

                      @plumer-man i want to make a regen module by speeding up the potion's healing which is equivalent to time lapse but i am facing the problem that it is not working

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

                        @plumer-man i'm using the code 'mc.thePlayer.getActive Effect' but I don't know why it's not working
                        Help me pls

                        suicidesquidward Plumer Man 2 Replies Last reply Reply Quote 0
                        • suicidesquidward
                          suicidesquidward Banned @BTX last edited by

                          @btx Full code?

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

                            That dosent work server side....

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

                              I mean if you're doing client side godmode/regen just cancel damage/health packet

                              1 Reply Last reply Reply Quote 0
                              • B
                                BTX @suicidesquidward last edited by BTX

                                @suicidesquidward

                                code_text
                                ```mc.thePlayer.getActivePotionEffect(Potion.regenrenation).deincrementDuration()
                                suicidesquidward 1 Reply Last reply Reply Quote 0
                                • suicidesquidward
                                  suicidesquidward Banned @BTX last edited by

                                  @btx said in How can I increase the potion's vanishing speed (3:00 --> 0):

                                  Potion.regenrenation

                                  B 2 Replies Last reply Reply Quote 0
                                  • B
                                    BTX 0 @suicidesquidward last edited by BTX 0

                                    @suicidesquidward Was it correct?

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      BTX 0 @suicidesquidward last edited by BTX 0

                                      @suicidesquidward Was it correct?

                                      @btx said in How can I increase the potion's vanishing speed (3:00 --> 0):

                                      Potion.regenrenation

                                      var scriptName = "Regen2";
                                      var scriptVersion = 1.0;
                                      var scriptAuthor = "BTX";
                                      
                                      var Regen= new Regen();
                                      var RegenClient;
                                      
                                      
                                      var C03PlayerPacket = Java.type('net.minecraft.network.play.client.C03PacketPlayer');
                                      var Potion = Java.type("net.minecraft.potion.Potion");
                                      var PotionEffect = Java.type("net.minecraft.potion.PotionEffect")
                                      
                                      function Nolagz() {
                                          this.getName = function () {
                                              return "Regen2";
                                          };
                                      
                                          this.getDescription = function () {
                                              return ".";
                                          };
                                          this.getCategory = function () {
                                              return "Player";
                                          };
                                          
                                          this.onUpdate = function() {
                                      mc.thePlayer.getActivePotionEffect(Potion.regenrenation).deincrementDuration()
                                      	for(var i =0; i< 25; i++) {
                                      	mc.thePlayer.sendQueue.getNetworkManager().sendPacket(new C03PlayerPacket(true));
                                      		}
                                          }
                                      
                                          this.onDisable = function() {
                                          }
                                          
                                          this.onEnable = function() {
                                          }
                                      
                                      }
                                      
                                      function onEnable() {
                                          RegenClient = moduleManager.registerModule(Regen);
                                      };
                                      
                                      function onDisable() {
                                          moduleManager.unregisterModule(RegenClient);
                                      };
                                      
                                      Plumer Man 1 Reply Last reply Reply Quote 0
                                      • Plumer Man
                                        Plumer Man @BTX 0 last edited by

                                        @btx-0 YYou can actually skip the potion effect as its only visual

                                        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