ScriptReg
-
Can anyone make this script in liquid script?
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;
} -
@vapetest where'd you paste this from
-
@vapetest So quero um nerd fazendo um bagulho ai jao fica na sua vtnc
-
@vapetest contribute something then
-
@vapetest "Me want to harm fucking" BRUH
-
@vapetest just translate this code into c++ using google translator
-
@skidma ye lmao