Navigation

    CCBlueX Forum

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

    Script Regen

    Scripts
    6
    21
    181
    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.
    • ?
      A Former User last edited by

      Can anyone make this class a liquidbounce script?http://www.mediafire.com/file/m8yr873ud67schz/Regen.class/file

      Oreoezi I 2 Replies Last reply Reply Quote 0
      • skidma
        skidma last edited by

        no:axodevil: :axocoffee: :axodab:

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

          @vapetest stop using links to other websites

          Here is a decompiled version that you can easily turn into a script

          package me.aristhena.crest.module.modules.combat;
          
          import me.aristhena.crest.module.*;
          import me.aristhena.crest.option.*;
          import me.aristhena.event.events.*;
          import me.aristhena.utils.*;
          import net.minecraft.potion.*;
          import net.minecraft.network.play.client.*;
          import net.minecraft.network.*;
          import me.aristhena.event.*;
          import net.minecraft.world.*;
          import net.minecraft.util.*;
          import net.minecraft.block.*;
          
          @Module.Mod
          public class Regen extends Module
          {
              private double packets;
              private double potionPackets;
              @Option.Op(name = "§bHealth", min = 0.0, max = 32.0, increment = 0.32)
              private double health;
              private boolean potion;
              
              public Regen() {
                  this.packets = 32.0;
                  this.potionPackets = 32.0;
                  this.health = 32.0;
                  this.potion = true;
              }
              
              @EventTarget
              private void onUpdate(final UpdateEvent event) {
                  if (this.potion) {
                      if (ClientUtils.player().getActivePotionEffect(Potion.regeneration) != null && ClientUtils.player().getActivePotionEffect(Potion.regeneration).getDuration() > 0 && ClientUtils.player().getHealth() <= this.health * 0.0 && (ClientUtils.player().isCollidedVertically || this.isInsideBlock()) && event.getState().equals((Object)Event.State.POST)) {
                          for (int i = 0; i < this.potionPackets; ++i) {
                              ClientUtils.player().getActivePotionEffect(Potion.regeneration).deincrementDuration();
                              ClientUtils.packet((Packet)new C03PacketPlayer(true));
                          }
                      }
                  }
                  else if (ClientUtils.player().getHealth() <= this.health * 0.0 && (ClientUtils.player().isCollidedVertically || this.isInsideBlock()) && event.getState().equals((Object)Event.State.POST)) {
                      for (int i = 0; i < this.packets; ++i) {
                          ClientUtils.packet((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) {
                              final Block block = ClientUtils.world().getBlockState(new BlockPos(x, y, z)).getBlock();
                              if (block != null && !(block instanceof BlockAir)) {
                                  AxisAlignedBB boundingBox = block.getCollisionBoundingBox((World)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;
              }
          }
          
          skidma ? 4 Replies Last reply Reply Quote 0
          • skidma
            skidma @Oreoezi last edited by

            @oreoezi He wants liquidbounce script!!!

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

              @oreoezi said in Script Regen:

              package me.aristhena.crest.module.modules.combat;

              import me.aristhena.crest.module.;
              import me.aristhena.crest.option.
              ;
              import me.aristhena.event.events.;
              import me.aristhena.utils.
              ;
              import net.minecraft.potion.;
              import net.minecraft.network.play.client.
              ;
              import net.minecraft.network.;
              import me.aristhena.event.
              ;
              import net.minecraft.world.;
              import net.minecraft.util.
              ;
              import net.minecraft.block.*;

              @Module.Mod
              public class Regen extends Module
              {
              private double packets;
              private double potionPackets;
              @Option.Op(name = "§bHealth", min = 0.0, max = 32.0, increment = 0.32)
              private double health;
              private boolean potion;

              public Regen() {
                  this.packets = 32.0;
                  this.potionPackets = 32.0;
                  this.health = 32.0;
                  this.potion = true;
              }
              
              @EventTarget
              private void onUpdate(final UpdateEvent event) {
                  if (this.potion) {
                      if (ClientUtils.player().getActivePotionEffect(Potion.regeneration) != null && ClientUtils.player().getActivePotionEffect(Potion.regeneration).getDuration() > 0 && ClientUtils.player().getHealth() <= this.health * 0.0 && (ClientUtils.player().isCollidedVertically || this.isInsideBlock()) && event.getState().equals((Object)Event.State.POST)) {
                          for (int i = 0; i < this.potionPackets; ++i) {
                              ClientUtils.player().getActivePotionEffect(Potion.regeneration).deincrementDuration();
                              ClientUtils.packet((Packet)new C03PacketPlayer(true));
                          }
                      }
                  }
                  else if (ClientUtils.player().getHealth() <= this.health * 0.0 && (ClientUtils.player().isCollidedVertically || this.isInsideBlock()) && event.getState().equals((Object)Event.State.POST)) {
                      for (int i = 0; i < this.packets; ++i) {
                          ClientUtils.packet((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) {
                              final Block block = ClientUtils.world().getBlockState(new BlockPos(x, y, z)).getBlock();
                              if (block != null && !(block instanceof BlockAir)) {
                                  AxisAlignedBB boundingBox = block.getCollisionBoundingBox((World)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;
              }
              

              }

              so is it just me playing in the notepad that the script is finished?

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

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @Oreoezi last edited by

                  @oreoezi can you do on a liquid bounce basis?

                  I 3 Replies Last reply Reply Quote 0
                  • I
                    idk my name @Guest last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • I
                      idk my name @Guest last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • I
                        idk my name @Guest last edited by

                        @vapetest untitled.js
                        There you go my good sir!

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @idk my name last edited by

                          @idk-my-name said in Script Regen:

                          here you go my good sir!

                          would like the script on liquid basis

                          I ? 2 Replies Last reply Reply Quote 0
                          • I
                            idk my name @Guest last edited by

                            @vapetest could you speak basic english

                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @idk my name last edited by

                              @idk-my-name said in Script Regen:

                              could you speak basic english

                              I am Brazilian

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

                                @vapetest I would like a regen based liquidbounce script

                                skidma ? 3 Replies Last reply Reply Quote 0
                                • skidma
                                  skidma @Guest last edited by

                                  @vapetest

                                  mc.thePlayer.health += 1
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @Guest last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @Guest last edited by

                                      @vapetest I do not understand

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

                                        @vapetest you know why I wanted a script of this class because the normal liquid regen makes me stick in the block and I need a high health that doesn't stick in the block

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

                                          @oreoezi Can you make this script for liquidbounce?

                                          1 Reply Last reply Reply Quote 0
                                          • allah gaming
                                            allah gaming last edited by

                                            bruh people don't want to learn scriptapi nowadays and beg other people to make it for them instead

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post
                                            Powered by NodeBB | Contributors