ArrayList made on java script
-
Poor performance, skidded from my own custom liquidbounce. Color from GKing
Im probably gonna get banned lmaovar script = registerScript({ name: "ArrayListJS", version: "0", authors: ["OrangeCat"] //OMG XPOSED :( }); script.registerModule({ name: "ArrayListJS", category: "Fun", description: "An arraylist made in js" }, function (module) { var RenderUtils = Java.type("net.ccbluex.liquidbounce.utils.render.RenderUtils"); var ScaledResolution = Java.type("net.minecraft.client.gui.ScaledResolution"); var Module = Java.type("net.ccbluex.liquidbounce.features.module.Module"); var md = Java.type("net.ccbluex.liquidbounce.LiquidBounce").moduleManager; var ArrayList = Java.type("java.util.ArrayList"); var Color = Java.type("java.awt.Color"); var modules = new ArrayList(Module); var mdl = md.getModules(); module.on("render2D", function(){ var sc = new ScaledResolution(mc); var font = mc.fontRendererObj; modules = new ArrayList(mdl); modules.removeIf(function (i){ return !i.getState(); }); modules.sort(function (a, b){ return Java.type("java.lang.Float").compare(font.getStringWidth(b.getTagName()), font.getStringWidth(a.getTagName())); }); var y = 5; for (var i = 0; i < modules.size(); i++) { var m = modules.get(i); var pm = modules.get(i > 0 ? i - 1 : 0); var x = -font.getStringWidth(m.getTagName()) - 5 + sc.getScaledWidth(); var pX = -font.getStringWidth(pm.getTagName()) - 5 + sc.getScaledWidth(); var co = sk(i, 1, 0.6).getRGB(); RenderUtils.drawRect(x - 5, y - 5, x + sc.getScaledWidth(), y + font.FONT_HEIGHT + 2 - 5, new Color(0,0,0,60)); RenderUtils.drawRect(x - 5, y - 5, x - 4, y + font.FONT_HEIGHT + 2 - 5, co); if(m != modules.get(0)){ RenderUtils.drawRect(pX - 5, y - 5, x - 5, y - 4, co); } if(m == modules.get(modules.size() - 1)){ RenderUtils.drawRect(x - 5, y + font.FONT_HEIGHT + 1 - 5, sc.getScaledWidth(), y + font.FONT_HEIGHT + 2 - 5, co) } font.drawString(m.getTagName(), parseInt(x), parseInt(y - 3.5), co); y += font.FONT_HEIGHT + 2; } font.drawString("dmVyeSBleHBlY3RlZCBuZ2wgLSBPcmFuZ2VDYXQ", sc.getScaledWidth(), y); }); function sk(c, brightness, saturation) { var v1 = Java.type("java.lang.Math").ceil(Java.type("java.lang.System").currentTimeMillis() + (c * 109)) / 5; return Color.getHSBColor(((v1 %= 360.0) / 360.0) < 0.5 ? -(v1 / 360.0) : v1 / 360.0, saturation, brightness); } });
Edit: forgot the screenshot
-
@britishbiscuit this is a good idea! just for those who do not know Intellij idea for them this is the ideal script, but! this script has optimization problems please do something about it
-
@__flex java script is awfull at iterating elements, so i can't do anything about it.
-
Ummm i came here for the VerusDisabler2021 free download
-
@plumer-man nofall.js enjoy useless script
-
@britishbiscuit Gimme I want verus disabler by using C-VERUSDISABLE packets
-
@plumer-man you are funny
-
@plumer-man you are funny
-
@britishbiscuit bruh you can move the module sorting and what not outside of eventrender2d it drastically improve performance.
-
@britishbiscuit said in ArrayList made on java script:
1660ti bad
-
Looks Cool!