Can someone deobf AACBoostOBF script please?
-
Here is a semi-deobf, perhaps someone can fully deobf it
https://paste.ccbluex.net/8b7b1cf3b -
semi-deobf v2
https://paste.ccbluex.net/f3cd10331 -
Fixed some of it, fixing it up is just a lot of repetetive work you can do it in 40-50 min if u tried.
var scriptName = "AACBoost"; var scriptAuthor = "Nvaros"; var scriptVersion = 1; var S12 = Java.type("net.minecraft.network.play.server.S12PacketEntityVelocity"); var S08 = Java.type("net.minecraft.network.play.server.S08PacketPlayerPosLook"); Math.radians = function (doniyor) { var jocene = {}; jocene.gXFbB = function (fayte, tamal) { return fayte / tamal; }; jocene.CLQPD = function (jaidyn, ansli) { return jaidyn * ansli; }; var jasias = jocene; return jasias.gXFbB(jasias.CLQPD(doniyor, Math.PI), 180); }; Math.degrees = function (tiaisha) { var lonney = {}; lonney.parID = function (colinda, kearsten) { return colinda * kearsten; }; var taneishia = lonney; return taneishia.parID(tiaisha, 180) / Math.PI; }; function sign(markevion) { var viren = {}; viren.IcCzb = function (kevonda, geana) { return kevonda == geana; }; viren.tcHys = function (keydra, monserrad) { return keydra / monserrad; }; var kymbria = viren; return isNaN(markevion) ? 1 : kymbria.IcCzb(Math.abs(markevion), 0) ? 0 : kymbria.tcHys(markevion, Math.abs(markevion)); } function getMoveYaw() { var sylias = {}; sylias.mvEDk = function (kayge, cyenthia) { return kayge == cyenthia; }; sylias.tZiIh = function (tymara, bijal) { return tymara * bijal; }; sylias.NDHIY = function (mikkel, chaka) { return mikkel * chaka; }; sylias.UWElB = function (arti, cynai) { return arti + cynai; }; sylias.EqEOm = function (cacie, athaniel) { return cacie(athaniel); }; sylias.ImCPP = function (ryian, barney) { return ryian - barney; }; sylias.eebmN = function (buse, miski) { return buse * miski; }; sylias.KZjKQ = function (trine, everette) { return trine - everette; }; sylias.hykPN = function (versai, wilmah) { return versai * wilmah; }; sylias.uPUAQ = function (mette, gizele) { return mette(gizele); }; var zoma = sylias; var denessa = mc.thePlayer.rotationYaw; denessa -= zoma.mvEDk(zoma.tZiIh(mc.thePlayer.movementInput.moveForward, mc.thePlayer.movementInput.moveStrafe), 0) ? zoma.mvEDk(mc.thePlayer.movementInput.moveForward, 0) && mc.thePlayer.movementInput.moveStrafe == 0 ? 0 : zoma.NDHIY(zoma.UWElB(zoma.EqEOm(sign, mc.thePlayer.movementInput.moveStrafe), zoma.ImCPP(sign(mc.thePlayer.movementInput.moveForward), 1) * zoma.ImCPP(Math.abs(sign(mc.thePlayer.movementInput.moveStrafe)), 1)), 90) : zoma.eebmN(zoma.EqEOm(sign, mc.thePlayer.movementInput.moveStrafe), zoma.KZjKQ(90, zoma.hykPN(zoma.uPUAQ(sign, mc.thePlayer.movementInput.moveForward), 45))); return denessa; } function AACBoost() { var cereniti = {}; cereniti.WOoVe = "RtsIp"; cereniti.BCmfH = "AACBoost"; cereniti.Icxyy = function (haris, shrey) { return haris !== shrey; }; cereniti.ZSFIS = "vSdmI"; cereniti.lUgGC = "2|5|1|0|6|4|3"; cereniti.pTCih = function (kalyne, ottavia) { return kalyne + ottavia; }; cereniti.ubqIf = "debu"; cereniti.dqwAa = "gger"; cereniti.FtHvY = function (eta, lerissa) { return eta == lerissa; }; cereniti.jjWXp = function (sirley, grayci) { return sirley / grayci; }; cereniti.gyFtK = function (cori, elmae) { return cori(elmae); }; cereniti.tnxsz = function (lizzie, arpine) { return lizzie + arpine; }; cereniti.QxIFS = "return (function() "; cereniti.ItUTR = "RlLhB"; cereniti.DYcQU = function (jakyrian, kaydyn) { return jakyrian instanceof kaydyn; }; cereniti.JUlAn = "Jump"; cereniti.tnvEh = function (treron, taneiqua) { return treron !== taneiqua; }; cereniti.rZSyr = "GterW"; cereniti.Ayzyt = function (unia, jazaih) { return unia === jazaih; }; cereniti.MFGiY = "sVzeC"; cereniti.kYCCR = "BRBDv"; cereniti.wwMnR = "CancelVelo"; cereniti.AeAsn = "NHyEf"; cereniti.OtQIS = "wXRCR"; cereniti.RKoDs = "zVCbi"; cereniti.JGtFP = "5|4|1|2|0|3"; cereniti.Gewkl = function (sedrick, baber) { return sedrick(baber); }; cereniti.EOCVI = "dZMbQ"; cereniti.rvmgK = "xgAtz"; cereniti.bnZgx = "Misc"; cereniti.QceBw = function (rito, ardra) { return rito !== ardra; }; cereniti.coWcU = "IamYV"; cereniti.TDVFc = function (aliciana, gittle) { return aliciana * gittle; }; cereniti.gHFUR = function (eddie, maheen) { return eddie - maheen; }; cereniti.aomKS = "function *( *)"; cereniti.PKwpk = "++ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)"; cereniti.hznGp = "init"; cereniti.kOfEr = function (quentarius, antiqua) { return quentarius(antiqua); }; cereniti.xoPUq = function (marshie) { return marshie(); }; cereniti.xkLAu = "0|1|5|4|2|3"; cereniti.aoSPa = "while (true) {}"; cereniti.QXUnh = "counter"; cereniti.vjPoM = 'return /" + this + "/'; cereniti.eFOjY = function (caydin, stcy) { return caydin === stcy; }; cereniti.jpcmn = "ciArH"; cereniti.wNjhl = "ltEiD"; cereniti.CMRyB = function (yvonne) { return yvonne(); }; cereniti.gXsnO = "IJqMA"; cereniti.VdkKj = function (keshaun, xadyn) { return keshaun !== xadyn; }; cereniti.anMWg = "eKdJj"; cereniti.jwDlh = function (victorian, terrionna) { return victorian <= terrionna; }; cereniti.NuwAy = function (hennesie, stearns) { return hennesie - stearns; }; cereniti.sFInK = "BBoDI"; cereniti.bxKqF = function (stanwood, amius) { return stanwood !== amius; }; cereniti.aMbub = "fMoWe"; cereniti.RjTIF = "tePNN"; cereniti.fLCEM = function (jemika, tyndall) { return jemika == tyndall; }; cereniti.ataXD = function (lawerence, aalap) { return lawerence >= aalap; }; cereniti.UmkKK = "gusvq"; cereniti.iLJBy = function (swinton, nikko) { return swinton * nikko; }; cereniti.gQHgd = function (ally, jimica) { return ally * jimica; }; cereniti.RnnNQ = function (bleu, cluster) { return bleu === cluster; }; cereniti.OSCgk = "FkzEF"; cereniti.ixmLG = function (armiya, ofelia) { return armiya === ofelia; }; cereniti.HWCjb = "qCiQT"; cereniti.wRjkP = function (wakinyan, annalei) { return wakinyan * annalei; }; cereniti.multiply_inputs = function (input1, input2) { return input1 * input2; }; cereniti.isEqual = function (input1, input2) { return input1 === input2; }; cereniti.uPZQY = "rVOrJ"; cereniti.UlkbN = function (malerie, denari) { return malerie == denari; }; cereniti.KxfYV = function (jacqual, emalee) { return jacqual == emalee; }; cereniti.CVWoC = function (kashya, sharlon) { return kashya > sharlon; }; cereniti.KHyZY = "SFehq"; cereniti.qLfXg = "QoHhK"; cereniti.qOEQi = "2|5|1|4|0|3"; cereniti.jitGC = function (mikara, camery) { return mikara > camery; }; cereniti.GAGwj = function (goebel, yalani) { return goebel > yalani; }; cereniti.efZGM = "PacketHVelocity"; cereniti.EDirX = "MaxJumpBoost"; cereniti.Jkawz = "SubtractGroundBoost"; cereniti.cSdgz = "KeepBoostOnGround"; cereniti.MJPZK = "CancelVeloInAir"; var ferrel = cereniti; var machael; var toccarra; var diera; var shahrazad = value.createFloat(ferrel.efZGM, .8, .01, .9); var thaddea = value.createFloat(ferrel.EDirX, 1.17, 1.05, 1.35); var waad = value.createFloat(ferrel.Jkawz, .2, .1, .25); var shaeden = value.createBoolean(ferrel.cSdgz, false); var jeneene = value.createBoolean(ferrel.JUlAn, false); var ailton = value.createBoolean("ModifyYMotion", false); var shaquala = value.createBoolean(ferrel.MJPZK, false); var jakeveon = value.createList("VeloOnBoost", ["CancelBoost", ferrel.wwMnR, ferrel.JUlAn], "CancelVelo"); var gattlin; var martisha; var ayyub; var oskar; var denarius; var jamaad; var zakhai; var lonniel; var uinise; var destery; var marquisa; var tanikqua; var jeret; var calogera; var rehmat; this.getName = function () { if ("rcNcr" !== ferrel.WOoVe) { return ferrel.BCmfH; } else { calogera = false; } }; this.onEnable = function () { if (ferrel.Icxyy(ferrel.ZSFIS, "UbmKa")) { var estelle = ferrel.lUgGC.split("|"); var aliee = 0; while (true) { switch (estelle[aliee++]) { case "0": jamaad = false; continue; case "1": martisha = false; continue; case "2": machael = 0; continue; case "3": rehmat = false; continue; case "4": calogera = false; continue; case "5": toccarra = false; continue; case "6": tanikqua = false; continue; } break; } } else { if (fn) { var jarmal = fn.apply(context, arguments); fn = null; return jarmal; } } }; this.onPacket = function (rhenlee) { var kaytlyn = {}; kaytlyn.LYhnP = function (jaylise, braylin) { return ferrel.gyFtK(jaylise, braylin); }; kaytlyn.NlILp = function (leath, wensley) { return ferrel.tnxsz(leath, wensley); }; kaytlyn.PlVGo = ferrel.QxIFS; kaytlyn.vceRc = function (faydell) { return faydell(); }; var jeneice = kaytlyn; if (ferrel.ItUTR === ferrel.ItUTR) { var tilor = rhenlee.getPacket(); if (ferrel.DYcQU(tilor, S12) && tilor.getEntityID() == mc.thePlayer.getEntityId() && (tilor.getMotionX() != 0 || tilor.getMotionZ() != 0) && mc.thePlayer.onGround && (!toccarra || toccarra && shaeden.get() && jakeveon.get() == ferrel.JUlAn)) { if (ferrel.tnvEh(ferrel.rZSyr, ferrel.rZSyr)) { return false; } else { toccarra = true; jamaad = false; machael = 0; martisha = false; rehmat = true; tilor.motionX *= shahrazad.get(); tilor.motionZ *= shahrazad.get(); tilor.motionY *= 1.02; oskar = mc.thePlayer.posY; if (ailton.get()) { if (ferrel.Ayzyt(ferrel.MFGiY, ferrel.kYCCR)) { var lashinda = Vubyii.LYhnP(Function, Vubyii.NlILp(Vubyii.PlVGo + '{}.constructor("return this")( )', ");")); that = Vubyii.vceRc(lashinda); } else { calogera = true; } } } } else if (tilor instanceof S12 && tilor.getEntityID() == mc.thePlayer.getEntityId() && toccarra && (shaquala.get() && !mc.thePlayer.onGround || ferrel.FtHvY(jakeveon.get(), ferrel.wwMnR) && shaeden.get() && mc.thePlayer.onGround)) { if ("MpOGp" === ferrel.AeAsn) { (function () { return false; }.constructor(yZaFmy.pTCih(yZaFmy.ubqIf, yZaFmy.dqwAa)).apply("stateObject")); } else { rhenlee.cancelEvent(); } } if (tilor instanceof S08 && martisha) { if (ferrel.OtQIS === ferrel.RKoDs) { if (ret) { return debuggerProtection; } else { Vubyii.LYhnP(debuggerProtection, 0); } } else { var sundae = ferrel.JGtFP.split("|"); var seton = 0; while (true) { switch (sundae[seton++]) { case "0": jamaad = false; continue; case "1": machael = 0; continue; case "2": martisha = false; continue; case "3": rehmat = false; continue; case "4": calogera = false; continue; case "5": toccarra = false; continue; } break; } } } } else { return isNaN(value) ? 1 : ferrel.FtHvY(Math.abs(value), 0) ? 0 : ferrel.jjWXp(value, Math.abs(value)); } }; this.getDescription = function () { return "Nice AirBoost"; }; this.getCategory = function () { if (ferrel.EOCVI !== ferrel.rvmgK) { return ferrel.bnZgx; } else { yZaFmy.Gewkl(result, "0"); } }; this.addValues = function (wilroy) { if (ferrel.QceBw(ferrel.coWcU, "IamYV")) { tanikqua = false; } else { wilroy.add(thaddea); wilroy.add(waad); wilroy.add(shahrazad); wilroy.add(shaeden); wilroy.add(jeneene); wilroy.add(shaquala); wilroy.add(ailton); wilroy.add(jakeveon); } }; this.onUpdate = function () { var anntonette = {}; anntonette.AwNxJ = function (crstal, myrah) { return ferrel.jjWXp(crstal, myrah); }; anntonette.GlmKh = function (enis, niko) { return ferrel.TDVFc(enis, niko); }; anntonette.yoYSe = ferrel.bnZgx; anntonette.wrDpj = function (princeston, sakiya) { return princeston * sakiya; }; anntonette.syitX = ferrel.vjPoM; anntonette.yXXxv = "Nice AirBoost"; var shyona = anntonette; if (ferrel.eFOjY(ferrel.jpcmn, ferrel.wNjhl)) { return shyona.AwNxJ(shyona.GlmKh(radians, 180), Math.PI); } else { var ardarius = Math.radians(ferrel.CMRyB(getMoveYaw)); if (toccarra) { if (ferrel.gXsnO !== "IJqMA") { mc.thePlayer.motionY = .428 - ferrel.TDVFc(ferrel.gHFUR(.0723, (machael + 1) * .000265), machael); } else { if (rehmat) { rehmat = false; if (mc.thePlayer.hurtTime < 8) { if (ferrel.VdkKj(ferrel.anMWg, ferrel.anMWg)) { return shyona.yoYSe; } else { toccarra = false; } } } if (jeneene.get() ? ferrel.jwDlh(ferrel.NuwAy(mc.thePlayer.posY, oskar), .24) && mc.thePlayer.motionY < -0.1 : true) { if (ferrel.sFInK !== ferrel.sFInK) { mc.thePlayer.motionY = .43; } else { martisha = true; } } denarius = jeneene.get() ? thaddea.get() : ferrel.NuwAy(thaddea.get(), waad.get()); if (martisha) { if (ferrel.bxKqF(ferrel.aMbub, "bclzy")) { ardarius = Math.radians(getMoveYaw()); if (mc.gameSettings.keyBindForward.isKeyDown() || mc.gameSettings.keyBindRight.isKeyDown() || mc.gameSettings.keyBindLeft.isKeyDown() || mc.gameSettings.keyBindBack.isKeyDown()) { if ("tePNN" === ferrel.RjTIF) { if (ferrel.fLCEM(machael, 0)) { mc.thePlayer.motionY = .43; } else if (machael >= 1 && ferrel.ataXD(mc.thePlayer.motionY, -0.9) && !jamaad && ailton.get() && calogera) { if (ferrel.eFOjY(ferrel.UmkKK, "CCEux")) { var awad = fn.apply(context, arguments); fn = null; return awad; } else { mc.thePlayer.motionY = .428 - ferrel.iLJBy(.0723 - ferrel.gQHgd(machael + 1, .000265), machael); } } if (mc.thePlayer.onGround && machael > 2) { if (ferrel.RnnNQ("pGooZ", "VcckG")) { var ailanny = ferrel.xkLAu.split("|"); var lochlin = 0; while (true) { switch (ailanny[lochlin++]) { case "0": toccarra = false; continue; case "1": calogera = false; continue; case "2": jamaad = false; continue; case "3": rehmat = false; continue; case "4": martisha = false; continue; case "5": machael = 0; continue; } break; } } else { jamaad = true; } } lonniel = mc.thePlayer.getActivePotionEffects().toArray(); if (lonniel.length > 0) { if ("FkzEF" === ferrel.OSCgk) { for (o in lonniel) { if (ferrel.ixmLG(ferrel.HWCjb, "qCiQT")) { marquisa = lonniel[o].getPotionID(); tanikqua = ferrel.fLCEM(marquisa, 1) ? !![] : false; if (tanikqua) { if (ferrel.bxKqF("krvRJ", "krvRJ")) { return shyona.wrDpj(degrees, Math.PI) / 180; } else { zakhai = lonniel[o].getAmplifier() + 1; break; } } } else { var latris = firstCall ? function () { if (fn) { var aritzel = fn.apply(context, arguments); fn = null; return aritzel; } } : function () {}; firstCall = false; return latris; } } } else { return function (alizaya) {}.constructor(yZaFmy.aoSPa).apply(yZaFmy.QXUnh); } } else { tanikqua = false; } jeret = tanikqua ? .0007 * zakhai : 0; ayyub = mc.thePlayer.onGround && shaeden.get() ? .9825 - jeret : .9835; mc.thePlayer.motionX = ferrel.multiply_inputs(-Math.sin(ardarius), denarius) * Math.pow(ayyub, machael); mc.thePlayer.motionZ = ferrel.multiply_inputs(Math.cos(ardarius), denarius) * Math.pow(ayyub, machael); } else { var stefanos = test.constructor(EsGFFm.syitX)().compile("^([^ ]+( +[^ ]+)+)+[^ ]}"); return !stefanos.test(onie); } } else if (!mc.thePlayer.onGround && calogera) { if (ferrel.isEqual("rVOrJ", ferrel.uPZQY)) { calogera = false; } else { return mc.gameSettings.keyBindForward.isKeyDown() || mc.gameSettings.keyBindRight.isKeyDown() || mc.gameSettings.keyBindLeft.isKeyDown() || mc.gameSettings.keyBindBack.isKeyDown(); } } machael++; } else { values.add(thaddea); values.add(waad); values.add(shahrazad); values.add(shaeden); values.add(jeneene); values.add(shaquala); values.add(ailton); values.add(jakeveon); } } } } if ((!shaeden.get() ? mc.thePlayer.onGround && martisha && (!jeneene.get() ? machael > 1 : true) : ferrel.UlkbN(mc.thePlayer.movementInput.moveStrafe, 0) && ferrel.KxfYV(mc.thePlayer.movementInput.moveForward, 0) && mc.thePlayer.onGround && ferrel.CVWoC(machael, 1)) || Math.pow(ayyub, machael) < .16 || jamaad && !mc.thePlayer.onGround || mc.thePlayer.isCollidedHorizontally) { if (ferrel.isEqual(ferrel.KHyZY, ferrel.qLfXg)) { return shyona.yXXxv; } else { var dashanda = ferrel.qOEQi.split("|"); var vildan = 0; while (true) { switch (dashanda[vildan++]) { case "0": jamaad = false; continue; case "1": martisha = false; continue; case "2": if (!mc.thePlayer.onGround && jamaad) { mc.thePlayer.motionX *= ferrel.jitGC(mc.thePlayer.motionY, 0) ? .78 : .66; mc.thePlayer.motionZ *= ferrel.GAGwj(mc.thePlayer.motionY, 0) ? .78 : .66; } continue; case "3": calogera = false; continue; case "4": machael = 0; continue; case "5": toccarra = false; continue; } break; } } } } }; } var aacboost = new AACBoost; var aacboostClient; function onEnable() { aacboostClient = moduleManager.registerModule(aacboost); } function onDisable() { moduleManager.unregisterModule(aacboost); } function khadeidra(aubrei) { var valerin = {}; valerin.gcEZa = function (dekisha) { return dekisha(); }; valerin.pzXKo = "6|7|5|2|0|1|4|3"; valerin.qdAcM = function (cheick, colemon) { return cheick !== colemon; }; valerin.MCdgy = "HGZoB"; valerin.zbVmb = "qKiMM"; valerin.TCkoH = "UsHsN"; valerin.RgLDC = "jnEbN"; valerin.Boyji = function (norell, cloud) { return norell === cloud; }; valerin.ZymuR = "WwrGX"; valerin.SgFzy = "ZVpCr"; valerin.dNkkN = function (adamm, jahidi) { return adamm + jahidi; }; valerin.CudTK = function (arlus, annyston) { return arlus / annyston; }; valerin.Itehp = "length"; valerin.IYyno = "kDeDY"; valerin.PmZpN = "action"; valerin.TuJUs = "Txgso"; valerin.psbUJ = "debu"; valerin.HgfGi = "GHgdE"; valerin.oXZxS = "YypZH"; valerin.Qeokb = function (elbern, halley) { return elbern !== halley; }; valerin.ucAmv = "MwAmG"; valerin.oaScQ = function (callasandra, yarisel) { return callasandra(yarisel); }; var adellynn = valerin; function afsa(amanni) { var damontay = {}; damontay.mEmMZ = function (printess, goldena) { return printess(goldena); }; var wendal = damontay; if (adellynn.Boyji(adellynn.ZymuR, "NVOVZ")) { var sulamita = fn.apply(context, arguments); fn = null; return sulamita; } else { if (adellynn.Boyji(typeof amanni, "string")) { if (adellynn.qdAcM("ZVpCr", adellynn.SgFzy)) { adellynn.gcEZa(khadeidra); } else { return function (laciana) {}.constructor("while (true) {}").apply("counter"); } } else { if (adellynn.dNkkN("", adellynn.CudTK(amanni, amanni))[adellynn.Itehp] !== 1 || adellynn.Boyji(amanni % 20, 0)) { if ("sxWax" === adellynn.IYyno) { var murael = adellynn.pzXKo.split("|"); var khyaire = 0; while (true) { switch (murael[khyaire++]) { case "0": that.console.error = func; continue; case "1": that.console.exception = func; continue; case "2": that.console.info = func; continue; case "3": that.console.trace = func; continue; case "4": that.console.table = func; continue; case "5": that.console.debug = func; continue; case "6": that.console.log = func; continue; case "7": that.console.warn = func; continue; } break; } } else { (function () { if (adellynn.qdAcM(adellynn.MCdgy, adellynn.zbVmb)) { return true; } else { hasBeenOnGround = true; } }.constructor("debugger").call(adellynn.PmZpN)); } } else { if (adellynn.qdAcM(adellynn.TuJUs, "Txgso")) { var shennel = "1|0|3|7|8|2|6|9|4|5".split("|"); var megon = 0; while (true) { switch (shennel[megon++]) { case "0": hasBeenOnGround = false; continue; case "1": hasBeenHit = true; continue; case "2": packet.motionX *= PacketHVelocity.get(); continue; case "3": i = 0; continue; case "4": groundY = mc.thePlayer.posY; continue; case "5": if (ModifyYMotion.get()) { shouldModifyY = true; } continue; case "6": packet.motionZ *= PacketHVelocity.get(); continue; case "7": shouldJump = false; continue; case "8": jumpStart = true; continue; case "9": packet.motionY *= 1.02; continue; } break; } } } } afsa(++amanni); } } try { if (adellynn.qdAcM(adellynn.HgfGi, adellynn.oXZxS)) { if (aubrei) { if (adellynn.Qeokb(adellynn.ucAmv, "CFgqK")) { return afsa; } else { return true; } } else { adellynn.oaScQ(afsa, 0); } } else { var mcclain = "3|5|1|6|2|4|0".split("|"); var iola = 0; while (true) { switch (mcclain[iola++]) { case "0": jumpStart = false; continue; case "1": shouldJump = false; continue; case "2": hasActiveSpeedEffect = false; continue; case "3": i = 0; continue; case "4": shouldModifyY = false; continue; case "5": hasBeenHit = false; continue; case "6": hasBeenOnGround = false; continue; } break; } } } catch (hubertine) {} }
-
lmao...
if he knew how to code it would only require some time to deobf it. -
Even through the "semi-deobf" i sent you can still make out most of what it does.
-
-
what the fuck man literally went online after a year
-
@nvarolotl Wtf since when where u online
-
he is still active on discord
-
@freerobuxgen2022 Discord or Guilded
-
discord
-
@plumer-man said in Can someone deobf AACBoostOBF script please?:
debu
gger -
this.onUpdate = function () { if (isHurt) { if (rehmat) { rehmat = false; if (mc.thePlayer.hurtTime < 8) { isHurt = false; } } if (Jump.get() ? mc.thePlayer.posY - preYpos <= .24 && mc.thePlayer.motionY < -0.1 : true) { shouldBoost = true; } boost = Jump.get() ? MaxJumpBoost.get() : MaxJumpBoost.get() - SubtractGroundBoost.get(); if (shouldBoost) { var moveRadians = Math.radians(getMoveYaw()); if (mc.gameSettings.keyBindForward.isKeyDown() || mc.gameSettings.keyBindRight.isKeyDown() || mc.gameSettings.keyBindLeft.isKeyDown() || mc.gameSettings.keyBindBack.isKeyDown()) { if (inAirTicks == 0) { mc.thePlayer.motionY = .43; } else if (inAirTicks >= 1 && mc.thePlayer.motionY >= -0.9 && !test && ModifyYMotion.get() && shouldModifyYMotion) { mc.thePlayer.motionY = .428 - ((.0723 - ((inAirTicks + 1) * .000265)) * inAirTicks); } if (mc.thePlayer.onGround && inAirTicks > 2) test = true; activePotions = mc.thePlayer.getActivePotionEffects().toArray(); if (activePotions.length > 0) { for (index in activePotions) { potionID = activePotions[index].getPotionID(); isSpeed = potionID == 1 ? true : false; if (isSpeed) { speedAmplifier = activePotions[index].getAmplifier() + 1; break; } } } else { isSpeed = false; } speedIncrease = isSpeed ? .0007 * speedAmplifier : 0; boost_value = mc.thePlayer.onGround && KeepBoostOnGround.get() ? .9825 - speedIncrease : .9835; mc.thePlayer.motionX = (-Math.sin(moveRadians) * boost) * Math.pow(boost_value, inAirTicks); mc.thePlayer.motionZ = (Math.cos(moveRadians) * boost) * Math.pow(boost_value, inAirTicks); } else if (!mc.thePlayer.onGround && shouldModifyYMotion) { shouldModifyYMotion = false; } inAirTicks++; } } if ((!KeepBoostOnGround.get() ? mc.thePlayer.onGround && shouldBoost && (!Jump.get() ? inAirTicks > 1 : true) : mc.thePlayer.movementInput.moveStrafe == 0 && mc.thePlayer.movementInput.moveForward > 0 && mc.thePlayer.onGround && inAirTicks > 1) || Math.pow(boost_value, inAirTicks) < .16 || test && !mc.thePlayer.onGround || mc.thePlayer.isCollidedHorizontally) { if (!mc.thePlayer.onGround && test) { var boostValue = mc.thePlayer.motionY > 0 ? .78 : .66; mc.thePlayer.motionX *= boostValue; mc.thePlayer.motionZ *= boostValue; } isHurt = false; shouldBoost = false; inAirTicks = 0; test = false; shouldModifyYMotion = false; } };