Last help please
-
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;
}
} -
learn java and javascript first idiot
-
skid gang -
@skidma said in Last help please:
skid gang -
@skidma Which version should I use?
-
I need regeneration because of the full edit server
even more than the liquid Killaura is very good Thanksip sv jogar.ghostsv.net Perm Hack
-
@idk-my-name I did not understand sorry
-
avaj = sj