Last help please
-
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 -
@skidma Script is not going): '-' this is unbelievable
-
well, i tried fixing it up but looks like it still doesn't wanna run in game.
var scriptName = "Regen+"; var scriptVersion = 1.0; 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"); var regen = new regen(); var client; function regen() { Health = value.createFloat('Health', 20, 1, 20); this.addValues = function(values) { values.add(Health); }; this.getName = function() { return "Regen+"; }; this.getDescription = function() { return "Better version of Regen."; }; this.getCategory = function() { return "Player"; }; var packets = 5.0; var potionPackets = 8.5; var health = 9.9; var potion = true; this.onUpdate = function() { var i; if (this.potion) { if (ClientUtils.player().getActivePotionEffect(Potion.regeneration) != null && ClientUtils.player().getActivePotionEffect(Potion.regeneration).getDuration() > 0 && ClientUtils.player().getHealth() <= this.health * 2.0 && (ClientUtils.player().isCollidedVertically || this.isInsideBlock()) && event.getState().equals(State.POST)) { for(i = 0; i < this.potionPackets; ++i) { ClientUtils.player().getActivePotionEffect(Potion.regeneration).deincrementDuration(); ClientUtils.packet(new C03PacketPlayer(true)); } } } else if (ClientUtils.player().getHealth() <= this.health * 2.0 && (ClientUtils.player().isCollidedVertically || this.isInsideBlock()) && event.getState().equals(State.POST)) { for(i = 0; i < this.packets; ++i) { ClientUtils.packet(new C03PacketPlayer(true)); } } } function isInsideBlock() { for(var x = MathHelper.floor_double(ClientUtils.player().boundingBox.minX); x < MathHelper.floor_double(ClientUtils.player().boundingBox.maxX) + 1; ++x) { for(var y = MathHelper.floor_double(ClientUtils.player().boundingBox.minY); y < MathHelper.floor_double(ClientUtils.player().boundingBox.maxY) + 1; ++y) { for(var z = MathHelper.floor_double(ClientUtils.player().boundingBox.minZ); z < MathHelper.floor_double(ClientUtils.player().boundingBox.maxZ) + 1; ++z) { var block = ClientUtils.world().getBlockState(new BlockPos(x, y, z)).getBlock(); if (block != null && !(block instanceof BlockAir)) { var 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(x, y, z, (double)(x + 1), (double)(y + 1), (double)(z + 1)); } if (boundingBox != null && ClientUtils.player().boundingBox.intersectsWith(boundingBox)) { return true; } } } } } return false; } function onLoad() {} function onEnable() { client = moduleManager.registerModule(regen); } function onDisable() { moduleManager.unregisterModule(client); } }
if there was a way to check what errors i had with js stuff, i would've probably fixed it.