CCBlueX Forum

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

    Last help please

    Scripts
    10
    46
    728
    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.
    • Maeyse
      Maeyse last edited by Maeyse

      I tried to fix the script in class but I don't know if it's right can someone help?Script liquid
      var scriptName = "Regen2";
      var scriptAuthor = "Maeyse";
      var Block = Java.type("net.minecraft.block.Block");
      var BlockAir= Java.type("net.minecraft.block.BlockAir");
      var BlockHopper = Java.type("net.minecraft.block.BlockHopper");
      var C03PacketPlayer = Java.type("net.minecraft.network.play.client.C03PacketPlayer");
      var Potion = Java.type("net.minecraft.potion.Potion");
      var AxisAlignedBB = Java.type("net.minecraft.util.AxisAlignedBB");
      var BlockPos = Java.type("net.minecraft.util.BlockPos");
      var MathHelper = Java.type("net.minecraft.util.MathHelper");
      this.getName = function() {
      return "Regen2";
      };
      this.getDescription = function() {
      return "Regenerates health quickly.";
      };
      var swics = false;
      this.getCategory = function() {
      return "Combat";
      };
      private double packets = 5.0 D;
      double potionPackets = 8.5 D;
      name = "§bHealth",
      min = 0.0 D,
      max = 20.0 D,
      increment = 0.5 D
      )
      private double health = 9.9 D;
      private boolean potion = true;
      };
      int i;
      if (this.potion) {
      if (ClientUtils.player().getActivePotionEffect(Potion.regeneration) != null && ClientUtils.player().getActivePotionEffect(Potion.regeneration).getDuration() > 0 && (double) ClientUtils.player().getHealth() <= this.health * 2.0 D && (ClientUtils.player().isCollidedVertically || this.isInsideBlock()) && event.getState().equals(State.POST)) {
      for (i = 0;
      if (double) i < this.potionPackets; ++i) {
      ClientUtils.player().getActivePotionEffect(Potion.regeneration).deincrementDuration();
      ClientUtils.packet(new C03PacketPlayer(true));
      }
      }
      } else if ((double) ClientUtils.player().getHealth() <= this.health * 2.0 D && (ClientUtils.player().isCollidedVertically || this.isInsideBlock()) && event.getState().equals(State.POST)) {
      for (i = 0;
      if (double) i < this.packets; ++i) {
      if ClientUtils.packet(new C03PacketPlayer(true));
      }
      }

      }

      private boolean isInsideBlock() {
      for (int x = MathHelper.floor_double(ClientUtils.player().boundingBox.minX); x < MathHelper.floor_double(ClientUtils.player().boundingBox.maxX) + 1; ++x) {
      for (int y = MathHelper.floor_double(ClientUtils.player().boundingBox.minY); y < MathHelper.floor_double(ClientUtils.player().boundingBox.maxY) + 1; ++y) {
      for (int z = MathHelper.floor_double(ClientUtils.player().boundingBox.minZ); z < MathHelper.floor_double(ClientUtils.player().boundingBox.maxZ) + 1; ++z) {
      Block block = ClientUtils.world().getBlockState(new BlockPos(x, y, z)).getBlock();
      if (block != null && !(block instanceof BlockAir)) {
      AxisAlignedBB boundingBox = block.getCollisionBoundingBox(ClientUtils.world(), new BlockPos(x, y, z), ClientUtils.world().getBlockState(new BlockPos(x, y, z)));
      if (block instanceof BlockHopper) {
      boundingBox = new AxisAlignedBB((double) x, (double) y, (double) z, (double)(x + 1), (double)(y + 1), (double)(z + 1));
      }

                      if (boundingBox != null && ClientUtils.player().boundingBox.intersectsWith(boundingBox)) {
                          return true;
                      }
                  }
              }
          }
      }
      
      return false;
      

      }
      }

      A hahayes icewormy3 3 Replies Last reply Reply Quote 0
      • ?
        A Former User last edited by

        learn java and javascript first idiot

        1 Reply Last reply Reply Quote 1
        • DreamWasFucked
          DreamWasFucked Banned last edited by

          dadad.png
          skid gang

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

            @skidma said in Last help please:

            dadad.png
            skid gang

            😎

            1 Reply Last reply Reply Quote 0
            • A
              Aftery @Maeyse last edited by

              @maeyse can someone help
              no

              1 Reply Last reply Reply Quote 0
              • Lenox
                Lenox last edited by

                68926f03-435f-4ee9-969d-988338c134b5-image.png

                1 Reply Last reply Reply Quote 0
                • M
                  mems Moderator last edited by

                  ok i will fix it

                  Maeyse 1 Reply Last reply Reply Quote 0
                  • Maeyse
                    Maeyse @mems last edited by

                    @mems Thanks Some members of the forum are making me sad

                    O M 3 Replies Last reply Reply Quote 0
                    • O
                      ohno @Maeyse last edited by

                      @maeyse who cares

                      1 Reply Last reply Reply Quote 0
                      • O
                        ohno @Maeyse last edited by

                        @maeyse Didn't @idk-my-name post ported script from this virtue-skid?
                        6121f8fe-1d68-48e5-9121-dd0f89a2037d-image.png

                        1 Reply Last reply Reply Quote 0
                        • M
                          mems Moderator @Maeyse last edited by

                          @maeyse shiit that was lowkey a sarcasm comment but it looks like some peeps have hit you mentally... well

                          Maeyse 2 Replies Last reply Reply Quote 1
                          • Maeyse
                            Maeyse @mems last edited by

                            @mems I put that script in the scriptmanager but nothing happened

                            1 Reply Last reply Reply Quote 0
                            • Maeyse
                              Maeyse @mems last edited by

                              @mems I put the script untitled.js not working

                              DreamWasFucked I 2 Replies Last reply Reply Quote 0
                              • DreamWasFucked
                                DreamWasFucked Banned @Maeyse last edited by

                                @maeyse if you are using this script on b73, it may not work

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

                                  @skidma Which version should I use?

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

                                    @maeyse b72

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

                                      I need regeneration because of the full edit server
                                      even more than the liquid Killaura is very good Thanks

                                      ip sv jogar.ghostsv.net Perm Hack

                                      1 Reply Last reply Reply Quote 0
                                      • I
                                        idk my name @Maeyse last edited by

                                        @maeyse logs?

                                        Maeyse 1 Reply Last reply Reply Quote 0
                                        • Maeyse
                                          Maeyse @idk my name last edited by

                                          @idk-my-name I did not understand sorry

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

                                            fer.png dgh.png
                                            avaj = sj

                                            Maeyse 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