//CODE by the Apoc Team //GUI by WolfHax YT =P //CODES FROM THIS CLIENT IS MORE ADVANCED THEN OTHERS! //GUI STUFF var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); var Button = android.widget.Button; var LinearLayout = android.widget.LinearLayout; var RelativeLayout = android.widget.RelativeLayout; var PopupWindow = android.widget.PopupWindow; var ScrollView = android.widget.ScrollView; var TextView = android.widget.TextView; var CheckBox = android.widget.CheckBox; var Switch = android.widget.Switch; var Toast = android.widget.Toast; var Runnable = java.lang.Runnable; var View = android.view.View; var ColorDrawable = android.graphics.drawable.ColorDrawable; var Color = android.graphics.Color; var Gravity = android.view.Gravity; var Intent = android.content.Intent; var Uri = android.net.Uri; //UTILITIES var Utils = { File: { dragopDir: android.os.Environment.getExternalStorageDirectory() + "/DragOP/", getTextFromFile: function (file) { let readed = (new java.io.BufferedReader(new java.io.FileReader(file))); let data = new java.lang.StringBuilder(); let string; while((string = readed.readLine()) != null) data.append(string + "\n"); return data.toString(); }, saveTextToFile: function (file, text) { if(!file.exists()) file.createNewFile(); let bytes = java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, text.length()); for(let i = 0; i < text.length(); i++) bytes[i] = text.charCodeAt(i); let stream = new java.io.FileOutputStream(file); try { stream.write(bytes); } finally { stream.close(); } } }, Render: { getFloatBuffer: function (fArray) { let bBuffer = java.nio.ByteBuffer.allocateDirect(fArray.length * 4); bBuffer.order(java.nio.ByteOrder.nativeOrder()); let fBuffer = bBuffer.asFloatBuffer(); fBuffer.put(fArray); fBuffer.position(0); return fBuffer; }, getShortBuffer: function (sArray) { let bBuffer = java.nio.ByteBuffer.allocateDirect(sArray.length * 2); bBuffer.order(java.nio.ByteOrder.nativeOrder()); let sBuffer = bBuffer.asShortBuffer(); sBuffer.put(sArray); sBuffer.position(0); return sBuffer; }, renderer: null, glSurface: null, fov: 90, color: android.graphics.Color.rgb(255, 7, 7), initted: false, init: function () { if(Utils.Render.initted) return; let options = Utils.File.getTextFromFile(new java.io.File(android.os.Environment.getExternalStorageDirectory() + "/games/com.mojang/minecraftpe/", "options.txt")); options = options.split("\n"); options.forEach(function (entry) { let suboption = entry.split(":"); if(suboption[0] == "gfx_field_of_view") { Utils.Render.fov = suboption[1]; } }); this.renderer = new android.opengl.GLSurfaceView.Renderer({ onSurfaceCreated: function (gl, config) { let GL10 = javax.microedition.khronos.opengles.GL10; gl.glClearColor(0, 0, 0, 0); gl.glShadeModel(GL10.GL_SMOOTH); gl.glClearDepthf(1.0); gl.glDisable(GL10.GL_DITHER); gl.glEnable(GL10.GL_DEPTH_TEST); gl.glDepthFunc(GL10.GL_LEQUAL); gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); }, onSurfaceChanged: function (gl, width, height) { let GL10 = javax.microedition.khronos.opengles.GL10; gl.glMatrixMode(GL10.GL_PROJECTION); gl.glLoadIdentity(); android.opengl.GLU.gluPerspective(gl, Utils.Render.fov, width / height, 0.1, 100); gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glLoadIdentity(); }, onDrawFrame: function (gl) { let GL10 = javax.microedition.khronos.opengles.GL10; gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glLoadIdentity(); if(esp == true && getPlayerEnt() != -1) { try { gl.glDisable(GL10.GL_LIGHTING); let yaw = getYaw() % 360; let pitch = getPitch() % 360; let eyeX = getPlayerX(); let eyeY = getPlayerY() + 1; let eyeZ = getPlayerZ(); let dCenterX = Math.sin(yaw / 180 * Math.PI); let dCenterZ = Math.cos(yaw / 180 * Math.PI); let dCenterY = Math.sqrt(dCenterX * dCenterX + dCenterZ * dCenterZ) * Math.tan((pitch - 180) / 180 * Math.PI); var px = getPlayerX(); var py = getPlayerY(); var pz = getPlayerZ(); let centerX = eyeX - dCenterX; let centerZ = eyeZ + dCenterZ; let centerY = eyeY - dCenterY; android.opengl.GLU.gluLookAt(gl, eyeX, eyeY, eyeZ, centerX, centerY, centerZ, 0, 1.0, 0); //Hardcoding the esp //Skidders, dont do that let mobs = Entity.getAll(); let players = Server.getAllPlayers(); //clientMessage(mobs.length); mobs.forEach(function (entry) { if(entry != getPlayerEnt() && Entity.getEntityTypeId(entry) == EntityType.PLAYER) { Utils.Render.drawBox(gl, Entity.getX(entry) - 0.5, Entity.getY(entry) - 0.5, Entity.getZ(entry) - 0.50, 1, 2, 1); } }); players.forEach(function (entry) { if(entry != getPlayerEnt() && Entity.getEntityTypeId(entry) == EntityType.PLAYER) { Utils.Render.drawBox(gl, Entity.getX(entry) - 0.5, Entity.getY(entry) - 0.5, Entity.getZ(entry) - 0.5, 1, 2, 1); } }); } catch(e) { clientMessage("RenderProblem: " + e); } } else { } } }); ctx.runOnUiThread(new java.lang.Runnable({ run: function () { Utils.Render.glSurface = new android.opengl.GLSurfaceView(ctx); Utils.Render.glSurface.setZOrderOnTop(true); Utils.Render.glSurface.setEGLConfigChooser(8, 8, 8, 8, 16, 0); Utils.Render.glSurface.getHolder().setFormat(android.graphics.PixelFormat.TRANSLUCENT); Utils.Render.glSurface.setRenderer(Utils.Render.renderer); ctx.getWindow().getDecorView().addView(Utils.Render.glSurface); Utils.Render.initted = true; } })); }, drawBox: function (gl, x, y, z, xsize, ysize, zsize) { let GL10 = javax.microedition.khronos.opengles.GL10; let size = new Array(xsize, ysize, zsize); let vertices = [ 0, 0, 0, size[0], 0, 0, 0, 0, size[2], size[0], 0, size[2], 0, size[1], 0, size[0], size[1], 0, 0, size[1], size[2], size[0], size[1], size[2] ]; let vertexBuffer = Utils.Render.getFloatBuffer(vertices); let lineIndices = [ 0, 1, 0, 2, 0, 4, 3, 1, 3, 2, 3, 7, 5, 4, 5, 7, 5, 1, 6, 4, 6, 7, 6, 2 ]; let polyIndices = [ 0, 1, 4, 1, 4, 5, 2, 3, 6, 7, 6, 3, 1, 3, 7, 7, 1, 5, 0, 2, 6, 6, 0, 4, 0, 1, 2, 3, 1, 2, 4, 5, 6, 7, 5, 6 ]; let lineBuffer = Utils.Render.getShortBuffer(lineIndices); let polyBuffer = Utils.Render.getShortBuffer(polyIndices); gl.glTranslatef(x, y, z); gl.glFrontFace(GL10.GL_CCW); gl.glEnable(GL10.GL_BLEND); //gl.glEnable(GL10.GL_LINE_SMOOTH); gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); gl.glLineWidth(7); gl.glColor4f(android.graphics.Color.red(Utils.Render.color) / 255,android.graphics.Color.red(Utils.Render.color) / 255, android.graphics.Color.red(Utils.Render.color) / 255, 0.7); gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer); gl.glColor4f(android.graphics.Color.red(Utils.Render.color) / 255, android.graphics.Color.red(Utils.Render.color) / 255, android.graphics.Color.red(Utils.Render.color) / 255, 0.2); gl.glDrawElements(GL10.GL_TRIANGLES, polyIndices.length, GL10.GL_UNSIGNED_SHORT, polyBuffer); gl.glDisable(GL10.GL_LINE_SMOOTH); gl.glTranslatef(-x, -y, -z); }, drawLine: function (gl, x, y, z, x2, y2, z2) { let GL10 = javax.microedition.khronos.opengles.GL10; let size = new Array(x2, y2, z2); let vertices = [ 0, 0, 0, x2 - x, y2 - y, z2 - z ]; let vertexBuffer = Utils.Render.getFloatBuffer(vertices); let indices = [ 0, 1 ]; let indexBuffer = Utils.Render.getShortBuffer(indices); gl.glTranslatef(x, y, z); gl.glEnable(GL10.GL_BLEND); gl.glDepthMask(false); //gl.glEnable(GL10.GL_LINE_SMOOTH); gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); gl.glLineWidth(4); gl.glColor4f(android.graphics.Color.red(Utils.Render.color) / 255,android.graphics.Color.green(Utils.Render.color) / 255, android.graphics.Color.blue(Utils.Render.color) /255, 0.7); gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer); gl.glDrawElements(GL10.GL_LINES, indices.length, GL10.GL_UNSIGNED_SHORT, indexBuffer); gl.glTranslatef(-x, -y, -z); gl.glDepthMask(true); gl.glDisable(GL10.GL_LINE_SMOOTH); } //PLAYER ESP }, Block: { isLiquid: function(id) { if(id >= 8 && id <= 11) return true; return false; }, fastBreak: function() { for(i = 0; i < 256; i++) { Block.setDestroyTime(i, 0); } }, fastBreakDefault: function() { for(i = 0; i < 256; i++) { Block.setDestroyTime(i, defDestroyTime[i]); } }, isLadder: function(id) { if(id == 65) return true; return false; }, }, Velocity: { calculateSpeed: function() { return Math.sqrt(Math.pow(Entity.getVelX(getPlayerEnt()), 2) + Math.pow(Entity.getVelZ(getPlayerEnt()), 2)); } }, Text: { replaceAll: function(target, replacement, text) { var txt = text; return txt.replace(new RegExp(target, 'g'), replacement); } }, Player: { isInWater: function() { if(Utils.Block.isLiquid(getTile(Entity.getX(getPlayerEnt()), Entity.getY(getPlayerEnt()) - 1.65, Entity.getZ(getPlayerEnt())))) { return true; } else { return false; } }, isOnLadder: function(){ if(Utils.Block.isLadder(getTile(getPlayerX(), getPlayerY() + 0.001, getPlayerZ()))) { return true; } else { return false; } }, isOnGround: function() { var y = Entity.getY(getPlayerEnt()); while(y > 1) y -= 1; if((Math.round(y * 100) >= 61 && Math.round(y * 100) <= 63) && getTile(Entity.getX(getPlayerEnt()), Entity.getY(getPlayerEnt()) - 1.65, Entity.getZ(getPlayerEnt())) != 0 && !Utils.Block.isLiquid(getTile(Entity.getX(getPlayerEnt()), Entity.getY(getPlayerEnt()) - 1.65, Entity.getZ(getPlayerEnt())))) { return true; } if((Math.round(y * 100) >= 11 && Math.round(y * 100) <= 13) && getTile(Entity.getX(getPlayerEnt()), Entity.getY(getPlayerEnt()) - 1.65, Entity.getZ(getPlayerEnt())) != 0 && !Utils.Block.isLiquid(getTile(Entity.getX(getPlayerEnt()), Entity.getY(getPlayerEnt()) - 1.65, Entity.getZ(getPlayerEnt())))) { return true; } else { return false; } }, isCollidedHorizontally: function() { var x = Entity.getX(getPlayerEnt()); var z = Entity.getZ(getPlayerEnt()); var blockX = Math.round(x - 0.5); var blockZ = Math.round(z - 0.5); while(x < 1) x += 1; while(z < 1) z += 1; while(x > 1) x -= 1; while(z > 1) z -= 1; if(Math.round(x * 100) == 31) x -= 0.01; if(Math.round(z * 100) == 31) z -= 0.01; if(Math.round(x * 100) == 69) x += 0.01; if(Math.round(z * 100) == 69) z += 0.01; if(Math.round(x * 100) == 30) blockX--; if(Math.round(z * 100) == 30) blockZ--; if(Math.round(x * 100) == 70) blockX++; if(Math.round(z * 100) == 70) blockZ++; //clientMessage(blockX+";"+blockZ); if(getTile(blockX, Entity.getY(getPlayerEnt()), blockZ) == 0 && getTile(blockX, Entity.getY(getPlayerEnt()) - 1, blockZ) == 0) return false; if(Block.getDestroyTime(getTile(blockX, Entity.getY(getPlayerEnt()) - 1, blockZ)) <= 0.1 && Block.getDestroyTime(getTile(blockX, Entity.getY(getPlayerEnt()), blockZ)) <= 0.1) return false; if(Math.round(x * 100) == 30 || Math.round(x * 100) == 70) return true; if(Math.round(z * 100) == 30 || Math.round(z * 100) == 70) return true; return false; } } }; //BACKGROUND STUFF var bg = new android.graphics.drawable.GradientDrawable(); bg.setColor(android.graphics.Color.BLACK); //ButtonBGColor bg.setStroke(4, android.graphics.Color.GREEN); //ButtonStroke bg.setCornerRadius(2); //ButtonCornerRadius var bgh = new android.graphics.drawable.GradientDrawable(); bgh.setColor(android.graphics.Color.BLACK); //ButtonBGColor bgh.setStroke(4, android.graphics.Color.RED); //ButtonStroke bgh.setCornerRadius(2); //ButtonCornerRadius var cbg = new android.graphics.drawable.GradientDrawable(); cbg.setColor(android.graphics.Color.BLACK); //ButtonBGColor cbg.setStroke(4, android.graphics.Color.RED); //ButtonStroke cbg.setCornerRadius(0); //ButtonCornerRadius var pbg = new android.graphics.drawable.GradientDrawable(); pbg.setColor(android.graphics.Color.BLACK); //ButtonBGColor pbg.setStroke(4, android.graphics.Color.BLUE); //ButtonStroke pbg.setCornerRadius(0); //ButtonCornerRadius var mbg = new android.graphics.drawable.GradientDrawable(); mbg.setColor(android.graphics.Color.BLACK); //ButtonBGColor mbg.setStroke(4, android.graphics.Color.GREEN); //ButtonStroke mbg.setCornerRadius(0); //ButtonCornerRadius var sbg = new android.graphics.drawable.GradientDrawable(); sbg.setColor(android.graphics.Color.BLACK); //ButtonBGColor sbg.setStroke(4, android.graphics.Color.YELLOW); //ButtonStroke sbg.setCornerRadius(0); //ButtonCornerRadius var selected = new android.graphics.drawable.GradientDrawable(); selected.setColor(android.graphics.Color.GREEN); //ButtonBGColor selected.setStroke(4, android.graphics.Color.BLACK); //ButtonStroke selected.setCornerRadius(0); //ButtonCornerRadius var selectedR = new android.graphics.drawable.GradientDrawable(); selectedR.setColor(android.graphics.Color.RED); //ButtonBGColor selectedR.setStroke(4, android.graphics.Color.BLACK); //ButtonStroke selectedR.setCornerRadius(0); //ButtonCornerRadius var selectedY = new android.graphics.drawable.GradientDrawable(); selectedY.setColor(android.graphics.Color.YELLOW); //ButtonBGColor selectedY.setStroke(4, android.graphics.Color.BLACK); //ButtonStroke selectedY.setCornerRadius(0); //ButtonCornerRadius var selectedB = new android.graphics.drawable.GradientDrawable(); selectedB.setColor(android.graphics.Color.BLUE); //ButtonBGColor selectedB.setStroke(4, android.graphics.Color.BLACK); //ButtonStroke selectedB.setCornerRadius(0); //ButtonCornerRadius var xbg = new android.graphics.drawable.GradientDrawable(); xbg.setColor(android.graphics.Color.BLACK); //XButtonBGColor xbg.setStroke(4, android.graphics.Color.RED); //XButtonStroke xbg.setCornerRadius(2); //XButtonCornerRadius //MORE GUI + VARIABLES function newLevel() { ModPE.showTipMessage('§aHAVE FUN!!') } ModPE.langEdit("menu.copyright","§cApocalypse §aV13"); ModPE.langEdit("menu.play","§aApocalypes"); var GUI; var menu; var exitUI; //YOUR CLIENT INFORMATION var VERSION = "V̵̛̺͕̺͚́13"; var NAME = "̵̷̧̥̀À̸̴̧p̵̵̠̪͞o̢c̰̞̙͘͢͠ą̧ĺ̕͜y͉̞̠ps̨̛̮̬͓̀̕e̲̙͕"; var DEVELOPERS = "HACKER laastad"; var cBtn = "[AP]" var apocalypseV10 = check; var combat = check; var player = check; var setting = check; var motion = check; var gui = check; //MODULE VARIABLES var aim; var aimbot = false; var aimed = false; var gp var gps = false; var gped = false; var cgp var cgps = false; var cgped = false; var agp var agps = false; var agped = false; var minus = -5; var lhtick = 0; var ride var rides = false; var rided = false; var tests var testss = false; var tested = false; var water var waters = false; var watered = false; var lad var lads = false; var laded = false; var bgtick = 0; var safe var safes = false; var safed = false; var sake var sakes = false; var saked = false; var cafe var cafes = false; var cafed = false; var sword var swords = false; var sworded = false; var potion var potions = false; var potioned = false; var speeds var speedss = false; var speeded = false; var grapples var grappless = false; var grappleed = false; var twerks var twerkss = false; var twerked = false; var tCounter = 0; var nofall = false; var falltimer = 10; var bounces var bouncess = false; var bounced = false; var follows var followss = false; var followed = false; var heart var hearts = false; var hearted = false; var eart var earts = false; var earted = false; var xps var xpss = false; var xped = false; var spam var spams = false; var spamed = false; var pam var pams = false; var pamed = false; var underblocks var underblockss = false; var underblocked = false; var view var views = false; var viewed = false; var far var farbot = false; var fared = false; var dodges var dodgess = false; var dodged = false; var jetpacks var jetpackss = false; var jetpacked = false; var setpacks var setpackss = false; var setpacked = false; var craptps var craptpss = false; var craptped = false; var ghosts var ghostss = false; var ghosted = false; var hosts var hostss = false; var hosted = false; var taptps var taptpss = false; var taptped = false; var hitjumps var hitjumpss = false; var hitjumped = false; var bowaimbots var bowaimbotss = false; var bowaimboted = false; var stealths var stealthss = false; var stealthed = false; var cspeeds var cspeedss = false; var cspeeded = false; var snipers var sniperss = false; var snipered = false; var reachs var reachss = false; var reached = false; var jumpspeeds var jumpspeedss = false; var jumpspeeded = false; var jump1speeds var jump1speedss = false; var jump1speeded = false; var jump2speeds var jump2speedss = false; var jump2speeded = false; var jump3speeds var jump3speedss = false; var jump3speeded = false; var jump4speeds var jump4speedss = false; var jump4speeded = false; var jump5speeds var jump5speedss = false; var jump5speeded = false; var backfaces var backfacess = false; var backfaceed = false; var ndglides var ndglidess = false; var ndglideed = false; var sglides var sglidess = false; var sglideed = false; var dmgglides var dmgglidess = false; var dmgglideed = false; var autoclimbs var autoclimbss = false; var autoclimbed = false; var fullbrights var fullbrightss = false; var fullbrighted = false; var placetps var placetpss = false; var placetped = false; var leetspeaks var leetspeakss = false; var leetspeaked = false; var nearwarnings var nearwarningss = false; var nearwarninged = false; var nofalls var nofallss = false; var nofalled = false; var glides var glidess = false; var glideed = false; var criticaltrailss var criticaltrailsss = false; var criticaltrailsed = false; var xphits var xphitss = false; var xphited = false; var forcedestroys var forcedestroyss = false; var forcedestroyed = false; var Hack7; var bouncefly = false; var bouncedelay = 9; var bouncevel = 0.33; var bouncespeed = 1.04; var time = 0; var hoptick = +9; var csteps var cstepss = false; var csteped = false; var xsteps var xstepss = false; var xsteped = false; var dolphins var dolphinss = false; var dolphined = false; var elevators var elevatored = false; var fastbreaks var fastbreakss = false; var fastbreaked = false; var airjumps var airjumped = false; var afks var afkss = false; var afked = false; var tick = 0; var ddos var ddoss = false; var ddoed = false; var Language=ModPE.getLanguage() var YourKills=0 var YourDeaths=0 var velocs var velocss = false; var veloced = false; var cheats var cheatss = false; var cheated = false; var legitauras var legitaurass = false; var legitauraed = false; var betterlads var betterladss = false; var betterladed = false; var tapreachs var tapreachss = false; var tapreached = false; var vets var vetss = false; var veted = false; var javas var javass = false; var javaed = false; var mcps var mcpss = false; var mcped = false; var sexs var sexss = false; var sexed = false; var palls var pallss = false; var palled = false; var sfwalks var sfwalkss = false; var sfwalked = false; var radius var radiuss = false; var radiused = false; var enchants var enchantss = false; var enchanted = false; var snow var snows = false; var snowed = false; var now var nows = false; var nowed = false; var day var days = false; var dayed = false; var ay var ays = false; var ayed = false; var cord var cords = false; var corded = false; var invs var invss = false; var inved = false; var teles var teless = false; var teled = false; var eles var eless = false; var eled = false; var auto var autos = false; var autoed = false; var fps var fpss = false; var fped = false; var ncs var ncss = false; var nced = false; var pzs var pzss = false; var pzed = false; var gas var gass = false; var gaed = false; var aas var aass = false; var aaed = false; var pas var pass = false; var paed = false; var fas var fass = false; var faed = false; var dhs var dhss = false; var dhed = false; var ips var ipss = false; var iped = false; var jks var jkss = false; var jked = false; var kramps var krampss = false; var kramped = false; var tramps var trampss = false; var tramped = false; var aramps var arampss = false; var aramped = false; var vramps var vrampss = false; var vramped = false; var wramps var wrampss = false; var wramped = false; var zramps var zrampss = false; var zramped = false; var textVersion; var textFPS; var mcfont; var Compass = "south"; var show = false; var fps = 0; var lastLoop = new Date; var ztramps var ztrampss = false; var ztramped = false; var zeramps var zerampss = false; var zeramped = false; var zxramps var zxrampss = false; var zxramped = false; var zcramps var zcrampss = false; var zcramped = false; var uramps var urampss = false; var uramped = false; var oramps var orampss = false; var oramped = false; var iramps var irampss = false; var iramped = false; var xramps var xrampss = false; var xramped = false; var lramps var lrampss = false; var lramped = false; var dramps var drampss = false; var dramped = false; var qramps var qrampss = false; var qramped = false; var eramps var erampss = false; var eramped = false; var effecs var effecss = false; var effeced = false; var daxs var daxss = false; var daxed = false; var Fasteat1 = false; var uspe = 2; var id = 256; var noCreeper1 = false; var aos var aoss = false; var aoed = false; var gaos var gaoss = false; var gaoed = false; var bats var batss = false; var bated = false; var tpdods var tpdodss = false; var tpdoded = false; var scafs var scafss = false; var scafed = false; var fots var fotss = false; var foted = false; var eqs var eqss = false; var eqed = false; var mobaimbots var mobaimbotss = false; var mobaimboted = false; var gjs var gjss = false; var gjed = false; var blinks var blinkss = false; var blinked = false; var gwed var gweds = false; var gweed = false; var xsd var xsds = false; var xsed = false; var statd var statds = false; var stated = false; var esp = false; var item = false; var godaimbots var godaimbotss = false; var godaimboted = false; var alks var alkss = false; var alked = false; var walks var walkss = false; var walked = false; var talks var talkss = false; var talked = false; var steals var stealss = false; var stealed = false; var seals var sealss = false; var sealed = false; var rads var radss = false; var radsed = false; var pests var pestss = false; var pested = false; var crests var crestss = false; var crested = false; var pentBtn var pentBtn = false; var pentBtn = false; var combatBtnn var combatBtnn = false; var combatBtnn = false; //Tab var Gui var Gui = false; var Gui1 var Gui1 = false; var Gui2 var Gui2 = false; var Gui3 var Gui3 = false; //Phone var Gui7 var Gui7 = false; var Gui8 var Gui8 = false; var Gui9 var Gui9 = false; var Gui10 var Gui10 = false; //Hide Btn For Tablet var Hide var Hide = false; var Hide2 var Hide2 = false; function dip2px(dips){ return Math.ceil(dips * ctx.getResources().getDisplayMetrics().density); } //Button function tabgui1() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuhBtn = new Button(ctx); menuhBtn.setText('Hide'); menuhBtn.setTextColor(android.graphics.Color.GREEN); menuhBtn.setBackground(bg); menuhBtn.getBackground().setAlpha(150); menuhBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Hide){ GUI.dismiss(); GUI1.dismiss(); GUI4.dismiss(); GUI5.dismiss(); GUI6.dismiss(); print("Gui Hidden") Hide = true; }else{ showTitle(); showMenuBtn1(); showMenuBtn4(); showMenuBtn5(); showMenuBtn6(); print("Gui Shown") Hide = false; } } })); layout.addView(menuhBtn); GUIh = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIh.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIh.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.RIGHT, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } //Hide Button For Phone function hideBtn2() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuh2Btn = new Button(ctx); menuh2Btn.setText('Hide'); menuh2Btn.setTextColor(android.graphics.Color.GREEN); menuh2Btn.setBackground(bg); menuh2Btn.getBackground().setAlpha(150); menuh2Btn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Hide2){ GUI.dismiss(); GUI7.dismiss(); GUI8.dismiss(); GUI9.dismiss(); GUI10.dismiss(); print("Gui Hidden") Hide2 = true; }else{ showMenutBtn(); showMenuBtn7(); showMenuBtn8(); showMenuBtn9(); showMenuBtn10(); print("Gui Shown") Hide2 = false; } } })); layout.addView(menuh2Btn); GUIl = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIl.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIl.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.RIGHT, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showNOGLIDEBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var GlideBtn = new Button(ctx); GlideBtn.setText(" UP"); GlideBtn.setTextColor(Color.RED); GlideBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLUE)); GlideBtn.setPadding(10,10,10,10); GlideBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ Entity.setPositionRelative(getPlayerEnt(), 0, +2.53, 0); Entity.setPositionRelative(getPlayerEnt(), 0, 0.00000, 0); } })); layout.addView(GlideBtn); var GlideBtn = new Button(ctx); GlideBtn.setText(" Down"); GlideBtn.setTextColor(Color.RED); GlideBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLUE)); GlideBtn.setPadding(10,10,10,10); GlideBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()-1.01, getPlayerZ()); Entity.setPositionRelative(getPlayerEnt(), 0, 0.000, 0); } })); layout.addView(GlideBtn); GUIe = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIe.setBackgroundDrawable(new ColorDrawable(Color.DKGRAY)); GUIe.setAnimationStyle(android.R.style.Animation_Toast); GUIe.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.CENTER, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showAimBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var AimUpBtn = new Button(ctx); AimUpBtn.setText(" On"); AimUpBtn.setTextColor(Color.RED); AimUpBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLUE)); AimUpBtn.setPadding(10,10,10,10); AimUpBtn.getBackground().setAlpha(100); AimUpBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ Level.setGameMode(1) Player.setCanFly(0) } })); layout.addView(AimUpBtn); var AimDownBtn = new Button(ctx); AimDownBtn.setText(" Off"); AimDownBtn.setTextColor(Color.RED); AimDownBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLUE)); AimDownBtn.setPadding(10,10,10,10); AimDownBtn.getBackground().setAlpha(100); AimDownBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ Level.setGameMode(0) } })); layout.addView(AimDownBtn); GUIo = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIo.setBackgroundDrawable(new ColorDrawable(Color.DKGRAY)); GUIo.setAnimationStyle(android.R.style.Animation_Toast); GUIo.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.TOP, 0, 200); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showCrossBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var AimBtn = new Button(ctx); AimBtn.setText("-✟-"); AimBtn.setTextColor(Color.RED); AimBtn.setTextSize(40); AimBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); AimBtn.setPadding(10,10,10,10); AimBtn.getBackground().setAlpha(100); AimBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ } })); layout.addView(AimBtn); GUIv = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIv.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIv.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.CENTER, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showPieBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var AimPieBtn = new Button(ctx); AimPieBtn.setText("Up"); AimPieBtn.setTextColor(Color.RED); AimPieBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLUE)); AimPieBtn.setPadding(10,10,10,10); AimPieBtn.getBackground().setAlpha(100); AimPieBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ setVelY(Player.getEntity(), +2) } })); layout.addView(AimPieBtn); var AimPiBtn = new Button(ctx); AimPiBtn.setText("Down"); AimPiBtn.setTextColor(Color.RED); AimPiBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLUE)); AimPiBtn.setPadding(10,10,10,10); AimPiBtn.getBackground().setAlpha(100); AimPiBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ setVelY(Player.getEntity(), -2) } })); layout.addView(AimPiBtn); GUIg = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIg.setBackgroundDrawable(new ColorDrawable(Color.DKGRAY)); GUIg.setAnimationStyle(android.R.style.Animation_Toast); GUIg.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.CENTER, 0, 200); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } var tos; function showToS() { var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); ctx.runOnUiThread(new java.lang.Runnable({ run: function(){ try{ var tosLayout = new android.widget.LinearLayout(ctx); var tosScroll = new android.widget.ScrollView(ctx); var tosLayout1 = new android.widget.LinearLayout(ctx); tosLayout.setOrientation(1); tosLayout1.setOrientation(1); tosScroll.addView(tosLayout); tosScroll.setLayerType(View.LAYER_TYPE_SOFTWARE, null); tosLayout1.addView(tosScroll); var tosInfo = new TextView(ctx); tosInfo.setTextSize(10); tosInfo.setText("NOTIFICATION\nCreator: HACKER laastad\nDesigner: WolfHaxYT\nScriptFixer: KingDocterX "); tosInfo.setTextColor(android.graphics.Color.BLUE); tosInfo.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.RED)); tosInfo.getBackground().setAlpha(150); tosInfo.setGravity(Gravity.CENTER); tosLayout.addView(tosInfo); var yesBtn = new android.widget.Button(ctx); yesBtn.setText("Dismiss"); yesBtn.setTextColor(android.graphics.Color.GREEN); yesBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.RED)); yesBtn.getBackground().setAlpha(150); yesBtn.setTextSize(15); yesBtn.setGravity(android.view.Gravity.CENTER); yesBtn.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ tos.dismiss(); } })); tosLayout.addView(yesBtn); tos = new android.widget.PopupWindow(tosLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); tos.setAnimationStyle(android.R.style.Animation_Toast); tos.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); tos.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.LEFT | android.view.Gravity.BOTTOM, 0, 0); } catch(error) { print("An error occured: " + error); } }})); } showToS(); function showAirjumpBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('J'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Entity.setPositionRelative(getPlayerEnt(), 0, 0.+4, 0); Entity.setPositionRelative(getPlayerEnt(), 0, 0.00000, 0); setVelY(getPlayerEnt(), 0.000000); } })); layout.addView(button); GUIA = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIA.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIA.setAnimationStyle(android.R.style.Animation_Toast); GUIA.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.CENTER, 10, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showBoostBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('Boost'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 5); setVelY(Player.getEntity(), y * 2); setVelZ(Player.getEntity(), z * 5); } })); layout.addView(button); GUIBOO = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIBOO.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIBOO.setAnimationStyle(android.R.style.Animation_Toast); GUIBOO.showAtLocation(ctx.getWindow().getDecorView(), Gravity.TOP | Gravity.RIGHT, 100, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showMoveBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var scrollText = new android.widget.TextView(ctx); scrollText.setText("APOCALYPSE APOCALYPSE APOCALYPSE APOCALYPSE APOCALYPSE APOCALYPSE APOCALYPSE APOCALYPSE "); scrollText.setTextSize(15); scrollText.setPadding(10, 2, 2, 2); scrollText.setTextColor(android.graphics.Color.GREEN); scrollText.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); scrollText.setEllipsize(android.text.TextUtils.TruncateAt.MARQUEE); scrollText.setMarqueeRepeatLimit(-1); scrollText.setSingleLine(); scrollText.setHorizontallyScrolling(true); scrollText.setSelected(true); scrollText.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ showCmoveBtn(); GUIAU.dismiss(); } })); layout.addView(scrollText); GUIAU = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIAU.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIAU.setAnimationStyle(android.R.style.Animation_Toast); GUIAU.showAtLocation(ctx.getWindow().getDecorView(), Gravity.TOP | Gravity.LEFT, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showCmoveBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var scrollText1 = new android.widget.TextView(ctx); scrollText1.setText("COMBAT COMBAT COMBAT COMBAT COMBAT COMBAT COMBAT COMBAT COMBAT "); scrollText1.setTextSize(15); scrollText1.setPadding(10, 2, 2, 2); scrollText1.setTextColor(android.graphics.Color.RED); scrollText1.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); scrollText1.setEllipsize(android.text.TextUtils.TruncateAt.MARQUEE); scrollText1.setMarqueeRepeatLimit(-1); scrollText1.setSingleLine(); scrollText1.setHorizontallyScrolling(true); scrollText1.setSelected(true); scrollText1.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump2speeded){ mainMenu7(); scrollText1.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); jump2speeded = true; jump2speeded = true; }else{ scrollText1.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); menu7.dismiss(); jump2speeded = false; jump2speeded = false; } } })); layout.addView(scrollText1); var scrollText3 = new android.widget.TextView(ctx); scrollText3.setText("PLAYER PLAYER PLAYER PLAYER PLAYER PLAYER PLAYER PLAYER PLAYER PLAYER PLAYER "); scrollText3.setTextSize(15); scrollText3.setPadding(10, 2, 2, 2); scrollText3.setTextColor(android.graphics.Color.BLUE); scrollText3.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); scrollText3.setEllipsize(android.text.TextUtils.TruncateAt.MARQUEE); scrollText3.setMarqueeRepeatLimit(-1); scrollText3.setSingleLine(); scrollText3.setHorizontallyScrolling(true); scrollText3.setSelected(true); scrollText3.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump3speeded){ mainMenu8(); scrollText3.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); jump3speeded = true; jump3speeded = true; }else{ scrollText3.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); menu8.dismiss(); jump3speeded = false; jump3speeded = false; } } })); layout.addView(scrollText3); var scrollText4 = new android.widget.TextView(ctx); scrollText4.setText("MOTION MOTION MOTION MOTION MOTION MOTION MOTION MOTION MOTION MOTION MOTION "); scrollText4.setTextSize(15); scrollText4.setPadding(10, 2, 2, 2); scrollText4.setTextColor(android.graphics.Color.CYAN); scrollText4.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); scrollText4.setEllipsize(android.text.TextUtils.TruncateAt.MARQUEE); scrollText4.setMarqueeRepeatLimit(-1); scrollText4.setSingleLine(); scrollText4.setHorizontallyScrolling(true); scrollText4.setSelected(true); scrollText4.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump4speeded){ mainMenu9(); scrollText4.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); jump4speeded = true; jump4speeded = true; }else{ scrollText4.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); menu9.dismiss(); jump4speeded = false; jump4speeded = false; } } })); layout.addView(scrollText4); var scrollText5 = new android.widget.TextView(ctx); scrollText5.setText("SETTINGS SETTINGS SETTINGS SETTINGS SETTINGS SETTINGS SETTINGS SETTINGS SETTINGS SETTINGS "); scrollText5.setTextSize(15); scrollText5.setPadding(10, 2, 2, 2); scrollText5.setTextColor(android.graphics.Color.YELLOW); scrollText5.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); scrollText5.setEllipsize(android.text.TextUtils.TruncateAt.MARQUEE); scrollText5.setMarqueeRepeatLimit(-1); scrollText5.setSingleLine(); scrollText5.setHorizontallyScrolling(true); scrollText5.setSelected(true); scrollText5.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump5speeded){ mainMenu10(); scrollText5.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); jump5speeded = true; jump5speeded = true; }else{ scrollText5.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); menu10.dismiss(); jump5speeded = false; jump5speeded = false; } } })); layout.addView(scrollText5); var scrollText2 = new android.widget.TextView(ctx); scrollText2.setText("DISMISS DISMISS DISMISS DISMISS DISMISS DISMISS DISMISS DISMISS DISMISS DISMISS DISMISS "); scrollText2.setTextSize(15); scrollText2.setTextColor(android.graphics.Color.WHITE); scrollText2.setPadding(10, 2, 2, 2); scrollText2.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); scrollText2.setEllipsize(android.text.TextUtils.TruncateAt.MARQUEE); scrollText2.setMarqueeRepeatLimit(-1); scrollText2.setSingleLine(); scrollText2.setHorizontallyScrolling(true); scrollText2.setSelected(true); scrollText2.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump3speeded){ GUICT.dismiss(); showMoveBtn(); jump3speeded = true; jump3speeded = true; }else{ jump3speeded = false; jump3speeded = false; } } })); layout.addView(scrollText2); GUICT = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUICT.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUICT.setAnimationStyle(android.R.style.Animation_Toast); GUICT.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.LEFT, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showEspBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('Esp'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!esp){ esp = true; }else{ esp = false; } } })); layout.addView(button); GUIC = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIC.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIC.setAnimationStyle(android.R.style.Animation_Toast); GUIC.showAtLocation(ctx.getWindow().getDecorView(), Gravity.TOP | Gravity.RIGHT, 10, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showLookBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('Aimbot'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!aimed){ aimbot = true; aimed = true }else{ aimbot = false; aimed = false } } })); layout.addView(button); GUIF = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIF.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIF.setAnimationStyle(android.R.style.Animation_Toast); GUIF.showAtLocation(ctx.getWindow().getDecorView(), Gravity.BOTTOM | Gravity.CENTER, 10, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } var check = combat + player + setting + motion + gui + apocalypseV10; function showKbBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('KB'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!radsed){ radss = true; radsed = true; }else{ radss = false; radsed = false; } } })); layout.addView(button); GUIT = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIT.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIT.setAnimationStyle(android.R.style.Animation_Toast); GUIT.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.CENTER, 10, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showSwitchxBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('Disable Easy Access'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ GUIio.dismiss(); GUIioo.dismiss(); showApoc4Btn(); showDesign4Btn(); } })); layout.addView(button); GUIioo = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIioo.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIioo.setAnimationStyle(android.R.style.Animation_Toast); GUIioo.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 50); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showSwitchxxBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('Enable Easy Access'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ GUIiet.dismiss(); GUIiooo.dismiss(); showApoc3Btn(); showDesign3Btn(); } })); layout.addView(button); GUIiooo = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIiooo.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIiooo.setAnimationStyle(android.R.style.Animation_Toast); GUIiooo.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 50); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showDedBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var name = new TextView(ctx); name.setTextSize(50); name.setText(NAME+" "+VERSION); name.setTextColor(android.graphics.Color.GREEN); name.setGravity(Gravity.CENTER); menuLayout.addView(name); var button = new android.widget.Button(ctx); button.setText('DEVELOPER PANEL'); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(20); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Check Componets'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("Checking Componets....") scan print("Detected No Issues!") } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE DIRT'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(3, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE STONE'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(1, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE SAND'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(12, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE GRASSBLOCK'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(2, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE WOODPLANKS'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(5, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE BEDROCK'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(7, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE COBBLESTONE'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(4, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE DIAMOND SWORD'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(276, 1, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE IRON SWORD'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(267, 1, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE WOODEN SWORD'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(268, 1, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE STONE SWORD'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(272, 1, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE GOLD SWORD'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(283, 1, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE BOW'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(261, 1, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE ARROW'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(262, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE OBSIDIAN'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(49, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE TNT'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(46, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GIVE DIAMOND BLOCK'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Player.addItemInventory(57, 64, 0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('HighJump'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Entity.addEffect(Player.getEntity(), MobEffect.jump, 3000, 8, false, false); effect=true; } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Dismiss'); //feel free to change! button.setTextColor(android.graphics.Color.BLUE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ GUIEQ.dismiss(); } })); menuLayout.addView(button); GUIEQ = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIEQ.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIEQ.setAnimationStyle(android.R.style.Animation_Toast); GUIEQ.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.CENTER, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } var scan = Scanning; var Scanning = check; function showUIBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var VelY = Entity.getVelY(getPlayerEnt()); var VelX = Entity.getVelX(getPlayerEnt()); var VelZ = Entity.getVelZ(getPlayerEnt()); var button = new android.widget.Button(ctx); button.setText('Velocity Y:' + VelY); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(20); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Velocity X:' + VelX); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(20); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Velocity Z:' + VelZ); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(20); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Your Coordinates:' + Math.floor(Player.getX()) + " " + Math.floor(Player.getY() - 1) + " " + Math.floor(Player.getZ())); button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(20); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Dismiss'); //feel free to change! button.setTextColor(android.graphics.Color.BLUE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ GUIED.dismiss(); } })); menuLayout.addView(button); GUIED = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIED.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIED.setAnimationStyle(android.R.style.Animation_Toast); GUIED.showAtLocation(ctx.getWindow().getDecorView(), Gravity.TOP | Gravity.RIGHT, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showBoxBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('H'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!rided){ rides = true; rided = true; }else{ rides = false; rided = false; } } })); layout.addView(button); GUIJ = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIJ.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIJ.setAnimationStyle(android.R.style.Animation_Toast); GUIJ.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.TOP, 10, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showServerBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('Enable!'); button.setTextColor(android.graphics.Color.GREEN); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!qramped){ print("ServerMode Enabled!") showServer1Btn(); GUIJg.dismiss(); qrampss = true; qramped = true; }else{ qrampss = false; qramped = false; } } })); layout.addView(button); GUIJg = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIJg.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIJg.setAnimationStyle(android.R.style.Animation_Toast); GUIJg.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.TOP, 70, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showServer1Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('Disable!'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!qramped){ qrampss = true; qramped = true; }else{ print("ServerMode Disabled!") showServerBtn(); GUIJy.dismiss(); qrampss = false; qramped = false; } } })); layout.addView(button); GUIJy = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIJy.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIJy.setAnimationStyle(android.R.style.Animation_Toast); GUIJy.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.TOP, 70, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showChangelogBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('-Added No Menu Feature'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('-Added Op-Tp'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('-Added More Commands'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('-Added MiniMap'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('-Added Tree Capitator'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('-Added Spammer'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('-Minor Bug Fix'); button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Dismiss'); button.setTextColor(android.graphics.Color.BLUE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ GUIumm.dismiss(); } })); menuLayout.addView(button); GUIumm = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIumm.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIumm.setAnimationStyle(android.R.style.Animation_Toast); GUIumm.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.CENTER, 10, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showErrorzBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('Scroll-Error(FIX)'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("I Guess Its Not Small Enough For you!") check showErrorz1Btn(); GUIom.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('No Menu'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("You chose No Menu, Dont Worry You Can Use Commands!") GUIom.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Tablet/Big Device'); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ check GUIom.dismiss(); showTitle(); showMenuBtn1(); showMenuBtn4(); showMenuBtn5(); showMenuBtn6(); tabgui1(); print("Normal GUI choosen") } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GhostMode/Other/Device'); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("you chose ghost mode, just tap the top left corner") check showGhosttBtn(); GUIom.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Tablet/V2'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is A Better Version Of The Original And Supports More Tablets") check showApoc1Btn(); showDesignBtn(); GUIom.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Birthday/Special'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Mode Is Created Because My Birthday Is Coming Up!") check showApoc3Btn(); showDesign3Btn(); GUIom.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('CHOOSE YOUR DEVICE'); button.setTextColor(android.graphics.Color.RED); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Phone/V2'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is A Better Version Of The Original And Supports More Phones") check showApoc2Btn(); showDesignnBtn(); GUIom.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Other/Device'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is For Even smaller Devices") check showPentBtn(); GUIom.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('PC/Mode'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("PC/Mode is a new type of gui created by me") check showMoveBtn(); GUIom.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Phone/Small Devices'); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ check GUIom.dismiss(); showMenutBtn(); showMenuBtn7(); showMenuBtn8(); showMenuBtn9(); showMenuBtn10(); hideBtn2(); print("Smaller GUI choosen") } })); menuLayout.addView(button); GUIom = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIom.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIom.setAnimationStyle(android.R.style.Animation_Toast); GUIom.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.TOP, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showErrorz1Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('Scroll-Error(FIX)'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(10); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("Wow Its Still Not Small Enough? Try this") check showErrorz2Btn(); GUIom1.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('No Menu'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(10); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("You chose No Menu, Dont Worry You Can Use Commands!") GUIom1.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Tablet/Big Device'); button.setPadding(10, 2, 2, 2); button.setTextSize(10); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ check GUIom1.dismiss(); showTitle(); showMenuBtn1(); showMenuBtn4(); showMenuBtn5(); showMenuBtn6(); tabgui1(); print("Normal GUI choosen") } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GhostMode/Other/Device'); button.setPadding(10, 2, 2, 2); button.setTextSize(10); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("you chose ghost mode, just tap the top left corner") check showGhosttBtn(); GUIom1.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Tablet/V2'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(10); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is A Better Version Of The Original And Supports More Tablets") check showApoc1Btn(); showDesignBtn(); GUIom1.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Birthday/Special'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(10); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Mode Is Created Because My Birthday Is Coming Up!") check showApoc3Btn(); showDesign3Btn(); GUIom1.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('CHOOSE YOUR DEVICE'); button.setTextColor(android.graphics.Color.RED); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Phone/V2'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(10); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is A Better Version Of The Original And Supports More Phones") check showApoc2Btn(); showDesignnBtn(); GUIom1.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Other/Device'); button.setTextColor(android.graphics.Color.WHITE); button.setTextSize(10); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is For Even smaller Devices") check showPentBtn(); GUIom1.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('PC/Mode'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(10); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("PC/Mode is a new type of gui created by me") check showMoveBtn(); GUIom1.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Phone/Small Devices'); button.setPadding(10, 2, 2, 2); button.setTextSize(10); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ check GUIom1.dismiss(); showMenutBtn(); showMenuBtn7(); showMenuBtn8(); showMenuBtn9(); showMenuBtn10(); hideBtn2(); print("Smaller GUI choosen") } })); menuLayout.addView(button); GUIom1 = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIom1.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIom1.setAnimationStyle(android.R.style.Animation_Toast); GUIom1.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.TOP, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showErrorz2Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('Go Back!'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(5); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("Sorry I Cant Make It Any Smaller Then This!") check mainMenu(); GUIom2.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('No Menu'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(5); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("You chose No Menu, Dont Worry You Can Use Commands!") GUIom2.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Tablet/Big Device'); button.setPadding(10, 2, 2, 2); button.setTextSize(5); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ check GUIom2.dismiss(); showTitle(); showMenuBtn1(); showMenuBtn4(); showMenuBtn5(); showMenuBtn6(); tabgui1(); print("Normal GUI choosen") } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GhostMode/Other/Device'); button.setPadding(10, 2, 2, 2); button.setTextSize(5); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("you chose ghost mode, just tap the top left corner") check showGhosttBtn(); GUIom2.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Tablet/V2'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(5); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is A Better Version Of The Original And Supports More Tablets") check showApoc1Btn(); showDesignBtn(); GUIom2.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Birthday/Special'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(5); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Mode Is Created Because My Birthday Is Coming Up!") check showApoc3Btn(); showDesign3Btn(); GUIom2.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('CHOOSE YOUR DEVICE'); button.setTextSize(5); button.setTextColor(android.graphics.Color.RED); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Phone/V2'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(5); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is A Better Version Of The Original And Supports More Phones") check showApoc2Btn(); showDesignnBtn(); GUIom2.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Other/Device'); button.setTextColor(android.graphics.Color.WHITE); button.setTextSize(5); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is For Even smaller Devices") check showPentBtn(); GUIom2.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('PC/Mode'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(5); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("PC/Mode is a new type of gui created by me") check showMoveBtn(); GUIom2.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Phone/Small Devices'); button.setPadding(10, 2, 2, 2); button.setTextSize(5); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ check GUIom2.dismiss(); showMenutBtn(); showMenuBtn7(); showMenuBtn8(); showMenuBtn9(); showMenuBtn10(); hideBtn2(); print("Smaller GUI choosen") } })); menuLayout.addView(button); GUIom2 = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIom2.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIom2.setAnimationStyle(android.R.style.Animation_Toast); GUIom2.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.TOP, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showSupportBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var combatBtnn = new android.widget.Button(ctx); combatBtnn.setText('Combat'); //feel free to change! combatBtnn.setTextColor(android.graphics.Color.RED); combatBtnn.setPadding(10, 2, 2, 2); combatBtnn.setTextSize(15); combatBtnn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); combatBtnn.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump2speeded){ mainMenu7(); combatBtnn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); jump2speeded = true; jump2speeded = true; }else{ combatBtnn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menu7.dismiss(); jump2speeded = false; jump2speeded = false; } } })); layout.addView(combatBtnn); var button3 = new android.widget.Button(ctx); button3.setText('Player'); //feel free to change! button3.setTextColor(android.graphics.Color.BLUE); button3.setPadding(10, 2, 2, 2); button3.setTextSize(15); button3.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button3.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump3speeded){ mainMenu8(); button3.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); jump3speeded = true; jump3speeded = true; }else{ button3.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menu8.dismiss(); jump3speeded = false; jump3speeded = false; } } })); layout.addView(button3); var button4 = new android.widget.Button(ctx); button4.setText('Motion'); //feel free to change! button4.setTextColor(android.graphics.Color.GREEN); button4.setPadding(10, 2, 2, 2); button4.setTextSize(15); button4.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button4.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump4speeded){ button4.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); button4.setTextColor(android.graphics.Color.CYAN); mainMenu9(); jump4speeded = true; jump4speeded = true; }else{ button4.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button4.setTextColor(android.graphics.Color.GREEN); menu9.dismiss(); jump4speeded = false; jump4speeded = false; } } })); layout.addView(button4); var button5 = new android.widget.Button(ctx); button5.setText('Settings'); //feel free to change! button5.setTextColor(android.graphics.Color.YELLOW); button5.setPadding(10, 2, 2, 2); button5.setTextSize(15); button5.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button5.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump5speeded){ button5.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); mainMenu10(); jump5speeded = true; jump5speeded = true; }else{ button5.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menu10.dismiss(); jump5speeded = false; jump5speeded = false; } } })); layout.addView(button5); var button = new android.widget.Button(ctx); button.setText('Dismiss'); //feel free to change! button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ GUIXx.dismiss(); GUIZZ.dismiss(); showPentBtn(); } })); layout.addView(button); GUIXx = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIXx.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIXx.setAnimationStyle(android.R.style.Animation_Toast); GUIXx.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.CENTER, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showSupporttBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var combatBtnn = new android.widget.Button(ctx); combatBtnn.setText('Combat'); //feel free to change! combatBtnn.setTextColor(android.graphics.Color.RED); combatBtnn.setPadding(10, 2, 2, 2); combatBtnn.setTextSize(15); combatBtnn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); combatBtnn.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump2speeded){ mainMenu7(); combatBtnn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); jump2speeded = true; jump2speeded = true; }else{ combatBtnn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menu7.dismiss(); jump2speeded = false; jump2speeded = false; } } })); layout.addView(combatBtnn); var button3 = new android.widget.Button(ctx); button3.setText('Player'); //feel free to change! button3.setTextColor(android.graphics.Color.BLUE); button3.setPadding(10, 2, 2, 2); button3.setTextSize(15); button3.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button3.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump3speeded){ mainMenu8(); button3.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); jump3speeded = true; jump3speeded = true; }else{ button3.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menu8.dismiss(); jump3speeded = false; jump3speeded = false; } } })); layout.addView(button3); var button4 = new android.widget.Button(ctx); button4.setText('Motion'); //feel free to change! button4.setTextColor(android.graphics.Color.GREEN); button4.setPadding(10, 2, 2, 2); button4.setTextSize(15); button4.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button4.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump4speeded){ button4.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); button4.setTextColor(android.graphics.Color.CYAN); mainMenu9(); jump4speeded = true; jump4speeded = true; }else{ button4.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button4.setTextColor(android.graphics.Color.GREEN); menu9.dismiss(); jump4speeded = false; jump4speeded = false; } } })); layout.addView(button4); var button5 = new android.widget.Button(ctx); button5.setText('Settings'); //feel free to change! button5.setTextColor(android.graphics.Color.YELLOW); button5.setPadding(10, 2, 2, 2); button5.setTextSize(15); button5.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button5.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(!jump5speeded){ button5.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN)); mainMenu10(); jump5speeded = true; jump5speeded = true; }else{ button5.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menu10.dismiss(); jump5speeded = false; jump5speeded = false; } } })); layout.addView(button5); var button = new android.widget.Button(ctx); button.setText('Dismiss'); //feel free to change! button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ GUIXT.dismiss(); GUIDD.dismiss(); showGhosttBtn(); } })); layout.addView(button); GUIXT = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIXT.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIXT.setAnimationStyle(android.R.style.Animation_Toast); GUIXT.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.CENTER, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showBounceBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var button = new android.widget.Button(ctx); button.setText('B'); //feel free to change! button.setTextColor(android.graphics.Color.RED); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ if(bouncefly == false){ bouncefly = true; }else{ bouncefly = false; } } })); layout.addView(button); GUIH = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIH.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIH.setAnimationStyle(android.R.style.Animation_Toast); GUIH.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.RIGHT, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showEasyBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('EASY COMBAT'); button.setTextSize(20); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("EASY COMBAT is a quick access for the most wanted modules!") } })); menuLayout.addView(button); var aim = new android.widget.Switch(ctx); aim.setText("AimBot"); aim.setTextColor(android.graphics.Color.RED); aim.setPadding(10, 1, 1, 1); aim.setTextSize(15); aim.setChecked(aimed); aim.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!aimed){ aimbot = true; aimed = true; }else{ aimbot = false; aimed = false; } aim.setChecked(aimed); } })); menuLayout.addView(aim); var ride = new android.widget.Switch(ctx); ride.setText("HitBox Expander"); ride.setTextColor(android.graphics.Color.RED); ride.setPadding(10, 1, 1, 1); ride.setTextSize(15); ride.setChecked(rided); ride.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!rided){ rides = true; rided = true; }else{ rides = false; rided = false; } ride.setChecked(rided); } })); menuLayout.addView(ride); var mcps = new Switch(ctx); mcps.setText("Pc-TpAura"); mcps.setTextColor(android.graphics.Color.RED); mcps.setPadding(10, 3, 3, 3); mcps.setTextSize(15); mcps.setChecked(mcped); mcps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!mcped){ print("this hack simulates pc tpaura, bypasses crazed") mcpss = true; mcped = true; }else{ mcpss = false; mcped = false; } mcps.setChecked(mcped); } })); menuLayout.addView(mcps); var pests = new Switch(ctx); pests.setText("[Keybind]Aimbot"); pests.setTextColor(android.graphics.Color.RED); pests.setPadding(10, 3, 3, 3); pests.setTextSize(15); pests.setChecked(pested); pests.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!pested){ showLookBtn(); pestss = true; pested = true; }else{ GUIF.dismiss(); pestss = false; pested = false; } pests.setChecked(pested); } })); menuLayout.addView(pests); var rads = new Switch(ctx); rads.setText("AntiKB"); rads.setTextColor(android.graphics.Color.RED); rads.setPadding(10, 3, 3, 3); rads.setTextSize(15); rads.setChecked(radsed); rads.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!radsed){ radss = true; radsed = true; }else{ radss = false; radsed = false; } rads.setChecked(radsed); } })); menuLayout.addView(rads); GUIEG = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIEG.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIEG.setAnimationStyle(android.R.style.Animation_Toast); GUIEG.showAtLocation(ctx.getWindow().getDecorView(), Gravity.TOP | Gravity.RIGHT, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showEasy1Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('EASY PLAYER'); button.setTextSize(20); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("EASY PLAYER is a quick access for the most wanted modules!") } })); menuLayout.addView(button); var cafe = new Switch(ctx); cafe.setText("OverStep"); cafe.setTextColor(android.graphics.Color.BLUE); cafe.setPadding(10, 3, 3, 3); cafe.setTextSize(15); cafe.setChecked(cafed); cafe.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cafed){ print("You Cant Turn It Off Unless You Die") cafes = true; cafed = true; }else{ cafes = false; cafed = false; } cafe.setChecked(cafed); } })); menuLayout.addView(cafe); var hosts = new Switch(ctx); hosts.setText("YourHealth"); hosts.setTextColor(android.graphics.Color.BLUE); hosts.setPadding(10, 3, 3, 3); hosts.setTextSize(15); hosts.setChecked(hosted); hosts.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!hosted){ hostss = true; hosted = true; }else{ hostss = false; hosted = false; } hosts.setChecked(hosted); } })); menuLayout.addView(hosts); var fas = new Switch(ctx); fas.setText("Always-Day"); fas.setTextColor(android.graphics.Color.BLUE); fas.setPadding(10, 3, 3, 3); fas.setTextSize(15); fas.setChecked(faed); fas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!faed){ fass = true; faed = true; }else{ fass = false; faed = false; } fas.setChecked(faed); } })); menuLayout.addView(fas); var fullbrights = new Switch(ctx); fullbrights.setText("Fullbright"); fullbrights.setTextColor(android.graphics.Color.BLUE); fullbrights.setPadding(10, 3, 3, 3); fullbrights.setTextSize(15); fullbrights.setChecked(fullbrighted); fullbrights.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!fullbrighted){ Entity.addEffect(Player.getEntity(), MobEffect.nightVision, 999999, 100, false, false); effect=true; fullbrightss = true; fullbrighted = true; }else{ Block.setLightLevel(0, 0); fullbrightss = false; fullbrighted = false; } fullbrights.setChecked(fullbrighted); } })); menuLayout.addView(fullbrights); GUIEG1 = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIEG1.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIEG1.setAnimationStyle(android.R.style.Animation_Toast); GUIEG1.showAtLocation(ctx.getWindow().getDecorView(), Gravity.TOP | Gravity.RIGHT, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showEasy2Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('EASY MOTION'); button.setTextSize(20); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("EASY MOTION is a quick access for the most wanted modules!") } })); menuLayout.addView(button); var gp = new Switch(ctx); gp.setText("SprintAid"); gp.setTextColor(android.graphics.Color.GREEN); gp.setPadding(10, 3, 3, 3); gp.setTextSize(15); gp.setChecked(gped); gp.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gped){ gps = true; gped = true; }else{ gps = false; gped = false; } gp.setChecked(gped); } })); menuLayout.addView(gp); var menuBtn = new Button(ctx); menuBtn.setTextColor(android.graphics.Color.GREEN); menuBtn.getBackground().setAlpha(150); menuBtn.setText('Esp'); menuBtn.setTextSize(15); menuBtn.setPadding(10, 10, 10, 10); menuBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menuBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!esp){ esp = true; }else{ esp = false; } } })); menuLayout.addView(menuBtn); var godaimbots = new Switch(ctx); godaimbots.setText("Bypass Glide(NEW)"); godaimbots.setTextColor(android.graphics.Color.GREEN); godaimbots.setPadding(10, 3, 3, 3); godaimbots.setTextSize(15); godaimbots.setChecked(godaimboted); godaimbots.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!godaimboted){ print("This Glide Is Made By Me") godaimboted = true; godaimbotss = true; } else { godaimboted = false; godaimbotss = false; } godaimbots.setChecked(godaimboted); } })); menuLayout.addView(godaimbots); var walks = new Switch(ctx); walks.setText("Lb-Speed"); walks.setTextColor(android.graphics.Color.GREEN); walks.setPadding(10, 3, 3, 3); walks.setTextSize(15); walks.setChecked(walked); walks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!walked){ print("Lb-Speed Is A Bypass For ModPE.setGameSpeed!") walkss = true; walked = true; }else{ walkss = false; walked = false; } walks.setChecked(walked); } })); menuLayout.addView(walks); var steals = new Switch(ctx); steals.setText("PC-Bhop"); steals.setTextColor(android.graphics.Color.GREEN); steals.setPadding(10, 3, 3, 3); steals.setTextSize(15); steals.setChecked(stealed); steals.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!stealed){ stealss = true; stealed = true; }else{ stealss = false; stealed = false; } steals.setChecked(stealed); } })); menuLayout.addView(steals); var seals = new Switch(ctx); seals.setText("Airjump"); seals.setTextColor(android.graphics.Color.GREEN); seals.setPadding(10, 3, 3, 3); seals.setTextSize(15); seals.setChecked(sealed); seals.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sealed){ print("I added My Airjump :)") showAirjumpBtn(); sealss = true; sealed = true; }else{ GUIA.dismiss(); sealss = false; sealed = false; } seals.setChecked(sealed); } })); menuLayout.addView(seals); var xps = new Switch(ctx); xps.setText("FastBridge"); xps.setTextColor(android.graphics.Color.GREEN); xps.setPadding(10, 3, 3, 3); xps.setTextSize(15); xps.setChecked(xped); xps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xped){ xpss = true; xped = true; }else{ xpss = false; xped = false; } xps.setChecked(xped); } })); menuLayout.addView(xps); GUIEG2 = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIEG2.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIEG2.setAnimationStyle(android.R.style.Animation_Toast); GUIEG2.showAtLocation(ctx.getWindow().getDecorView(), Gravity.TOP | Gravity.RIGHT, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showEasy3Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('EASY SETTINGS'); button.setTextSize(20); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("EASY SETTINGS is a quick access for the most wanted modules!") } })); menuLayout.addView(button); var glides = new Switch(ctx); glides.setText("BYPASS"); glides.setTextColor(android.graphics.Color.YELLOW); glides.setPadding(10, 3, 3, 3); glides.setTextSize(15); glides.setChecked(glideed); glides.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!glideed){ print("this will make it harder for anticheat to detect you") print("also may mess up some hacks") glidess = true; glideed = true; }else{ glidess = false; glideed = false; } glides.setChecked(glideed); } })); menuLayout.addView(glides); var placetps = new Switch(ctx); placetps.setText("Anti-Lag"); placetps.setTextColor(android.graphics.Color.YELLOW); placetps.setPadding(10, 3, 3, 3); placetps.setTextSize(15); placetps.setChecked(placetped); placetps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!placetped){ print("Anti-Lag is now running!") placetpss = true; placetped = true; }else{ placetpss = false; placetped = false; } placetps.setChecked(placetped); } })); menuLayout.addView(placetps); var cheats = new Switch(ctx); cheats.setText("VANILLA"); cheats.setTextColor(android.graphics.Color.YELLOW); cheats.setPadding(10, 3, 3, 3); cheats.setTextSize(15); cheats.setChecked(cheated); cheats.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cheated){ print("This is a Secondary bypass") cheatss = true; cheated = true; }else{ cheatss = false; cheated = false; } cheats.setChecked(cheated); } })); menuLayout.addView(cheats); var cord = new Switch(ctx); cord.setText("Anti-Falling-Block"); cord.setTextColor(android.graphics.Color.YELLOW); cord.setPadding(10, 3, 3, 3); cord.setTextSize(15); cord.setChecked(corded); cord.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!corded){ print("No Falling Block Can Suffocate you") cords = true; corded = true; }else{ cords = false; corded = false; } cord.setChecked(corded); } })); menuLayout.addView(cord); var gwed = new Switch(ctx); gwed.setText("Anti-GWEN"); gwed.setTextColor(android.graphics.Color.YELLOW); gwed.setPadding(10, 3, 3, 3); gwed.setTextSize(15); gwed.setChecked(gweed); gwed.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gweed){ print("it will help with the mineplex anti-cheat") gweds = true; gweed = true; }else{ gweds = false; gweed = false; } gwed.setChecked(gweed); } })); menuLayout.addView(gwed); var xsd = new Switch(ctx); xsd.setText("SmoothMovement"); xsd.setTextColor(android.graphics.Color.YELLOW); xsd.setPadding(10, 3, 3, 3); xsd.setTextSize(15); xsd.setChecked(xsed); xsd.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xsed){ print("it will smooth the game, not antilag") xsds = true; xsed = true; }else{ xsds = false; xsed = false; } xsd.setChecked(xsed); } })); menuLayout.addView(xsd); var cgp = new Switch(ctx); cgp.setText("Anti-Glitch"); cgp.setTextColor(android.graphics.Color.YELLOW); cgp.setPadding(10, 3, 3, 3); cgp.setTextSize(15); cgp.setChecked(cgped); cgp.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cgped){ print("Anti-Glitch Helps Prevent aimbot from glitching you underground") cgps = true; cgped = true; }else{ cgps = false; cgped = false; } cgp.setChecked(cgped); } })); menuLayout.addView(cgp); var ay = new Switch(ctx); ay.setText("AntiCheat(BETA)"); ay.setTextColor(android.graphics.Color.YELLOW); ay.setPadding(10, 3, 3, 3); ay.setTextSize(15); ay.setChecked(ayed); ay.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ayed){ ays = true; ayed = true; print("You want more of a challenge?") print("its not the most accurate anti-cheat so there can be false detections") }else{ ays = false; ayed = false; } ay.setChecked(ayed); } })); menuLayout.addView(ay); GUIEG3 = new PopupWindow(menuLayout1, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIEG3.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIEG3.setAnimationStyle(android.R.style.Animation_Toast); GUIEG3.showAtLocation(ctx.getWindow().getDecorView(), Gravity.TOP | Gravity.RIGHT, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showInvisibleBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var jump1speeds = new Switch(ctx); jump1speeds.setText(""); jump1speeds.setTextColor(android.graphics.Color.RED); jump1speeds.setPadding(10, 3, 3, 3); jump1speeds.setTextSize(15); jump1speeds.setChecked(jump1speeded); jump1speeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jump1speeded){ jump1speedss = true; jump1speeded = true; }else{ jump1speedss = false; jump1speeded = false; } jump1speeds.setChecked(jump1speeded); } })); layout.addView(jump1speeds); var jump2speeds = new Switch(ctx); jump2speeds.setText(""); jump2speeds.setTextColor(android.graphics.Color.RED); jump2speeds.setPadding(10, 3, 3, 3); jump2speeds.setTextSize(15); jump2speeds.setChecked(jump2speeded); jump2speeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jump2speeded){ jump2speedss = true; jump2speeded = true; }else{ jump2speedss = false; jump2speeded = false; } jump2speeds.setChecked(jump2speeded); } })); layout.addView(jump2speeds); var jump3speeds = new Switch(ctx); jump3speeds.setText(""); jump3speeds.setTextColor(android.graphics.Color.RED); jump3speeds.setPadding(10, 3, 3, 3); jump3speeds.setTextSize(15); jump3speeds.setChecked(jump3speeded); jump3speeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jump3speeded){ jump3speedss = true; jump3speeded = true; }else{ jump3speedss = false; jump3speeded = false; } jumpspeeds.setChecked(jump3speeded); } })); layout.addView(jump3speeds); var jump4speeds = new Switch(ctx); jump4speeds.setText(""); jump4speeds.setTextColor(android.graphics.Color.RED); jump4speeds.setPadding(10, 3, 3, 3); jump4speeds.setTextSize(15); jump4speeds.setChecked(jump4speeded); jump4speeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jump4speeded){ jump4speedss = true; jump4speeded = true; }else{ jump4speedss = false; jump4speeded = false; } jump4speeds.setChecked(jump4speeded); } })); layout.addView(jump4speeds); var jump5speeds = new Switch(ctx); jump5speeds.setText(""); jump5speeds.setTextColor(android.graphics.Color.RED); jump5speeds.setPadding(10, 3, 3, 3); jump5speeds.setTextSize(15); jump5speeds.setChecked(jump5speeded); jump5speeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jump5speeded){ jump5speedss = true; jump5speeded = true; }else{ jump5speedss = false; jump5speeded = false; } jump5speeds.setChecked(jump5speeded); } })); layout.addView(jump5speeds); var qramps = new Switch(ctx); qramps.setText(""); qramps.setTextColor(android.graphics.Color.GREEN); qramps.setPadding(10, 3, 3, 3); qramps.setTextSize(15); dramps.setChecked(qramped); qramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!qramped){ qrampss = true; qramped = true; }else{ qrampss = false; qramped = false; } qramps.setChecked(qramped); } })); layout.addView(qramps); GUIHV = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIHV.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); GUIHV.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.RIGHT, 0, 0); //you can change the position of the GUI }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } //Menu function mainMenu(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var name = new TextView(ctx); name.setTextSize(50); name.setText(NAME+" "+VERSION); name.setTextColor(android.graphics.Color.GREEN); name.setGravity(Gravity.CENTER); menuLayout.addView(name); //Pop up selection //Invisible buttons to symbolise gaps var button = new android.widget.Button(ctx); button.setText('Scroll-Error(FIX)'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is Used Only If You Cant Scroll This PopUp!") check showErrorzBtn(); menu.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('No Menu'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("You chose No Menu, Dont Worry You Can Use Commands!") menu.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText(''); button.setTextColor(android.graphics.Color.TRANSPARENT); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText(''); button.setTextColor(android.graphics.Color.TRANSPARENT); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText(''); button.setTextColor(android.graphics.Color.TRANSPARENT); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Tablet/Big Device'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ check menu.dismiss(); showTitle(); showMenuBtn1(); showMenuBtn4(); showMenuBtn5(); showMenuBtn6(); tabgui1(); print("Normal GUI choosen") } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('GhostMode/Other/Device'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("you chose ghost mode, just tap the top left corner") check showGhosttBtn(); menu.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Tablet/V2'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is A Better Version Of The Original And Supports More Tablets") check showApoc1Btn(); showDesignBtn(); menu.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Birthday/Special'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Mode Is Created Because My Birthday Is Coming Up!") check showApoc3Btn(); showDesign3Btn(); menu.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('CHOOSE YOUR DEVICE'); button.setTextColor(android.graphics.Color.RED); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Phone/V2'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is A Better Version Of The Original And Supports More Phones") check showApoc2Btn(); showDesignnBtn(); menu.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Other/Device'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("This Is For Even smaller Devices") check showPentBtn(); menu.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('PC/Mode'); //feel free to change! button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("PC/Mode is a new type of gui created by me") check showMoveBtn(); menu.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Server/Mode'); button.setTextColor(android.graphics.Color.WHITE); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("Server/Mode Will Decrease Lag On Servers") check showServerBtn(); showErrorzBtn(); menu.dismiss(); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Phone/Small Devices'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ check menu.dismiss(); showMenutBtn(); showMenuBtn7(); showMenuBtn8(); showMenuBtn9(); showMenuBtn10(); hideBtn2(); print("Smaller GUI choosen") } })); menuLayout.addView(button); menu = new PopupWindow(menuLayout1, ctx.getWindowManager().getDefaultDisplay().getWidth()/1, ctx.getWindowManager().getDefaultDisplay().getHeight()/1); menu.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK)); menu.setAnimationStyle(android.R.style.Animation_Toast); menu.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.CENTER, 0, 0); }catch(error){ Toast.makeText(ctx, "Error: " + error, 1).show(); } }})); } mainMenu(); //EXIT BUTTON function exit(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var xLayout = new LinearLayout(ctx); var xButton = new Button(ctx); xButton.setText('X'); xButton.setTextColor(Color.RED); xButton.setTextSize(15); xButton.setBackground(xbg); xButton.getBackground().setAlpha(150); xButton.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ exitUI.dismiss(); menu.dismiss(); showMenuBtn(); } })); xLayout.addView(xButton); exitUI = new PopupWindow(xLayout, dip2px(40), dip2px(40)); exitUI.setBackgroundDrawable(new ColorDrawable(Color.BLACK)); exitUI.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.BOTTOM, 0, 0); }catch(exception){ Toast.makeText(ctx, exception, 1).show(); } }})); } //Phone Tab GUI function dip2px(dips){ return Math.ceil(dips * ctx.getResources().getDisplayMetrics().density); } //Button function showMenutBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menutBtn = new Button(ctx); menutBtn.setText(NAME); menutBtn.setTextSize(8); menutBtn.setTextColor(android.graphics.Color.WHITE); menutBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menutBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ } })); layout.addView(menutBtn); GUI = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI.setAnimationStyle(android.R.style.Animation_Toast); GUI.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showExtraBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menutBtn = new Button(ctx); menutBtn.setText(NAME); menutBtn.setTextSize(15); menutBtn.setTextColor(android.graphics.Color.WHITE); menutBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menutBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ } })); layout.addView(menutBtn); GUIZZ = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIZZ.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIZZ.setAnimationStyle(android.R.style.Animation_Toast); GUIZZ.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showExtra1Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menutBtn = new Button(ctx); menutBtn.setText(NAME); menutBtn.setTextSize(15); menutBtn.setTextColor(android.graphics.Color.TRANSPARENT); menutBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menutBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ } })); layout.addView(menutBtn); GUIDD = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIDD.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIDD.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showGhosttBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var nutBtn = new Button(ctx); nutBtn.setText(NAME); nutBtn.setTextSize(15); nutBtn.setTextColor(android.graphics.Color.TRANSPARENT); nutBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); nutBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ showSupporttBtn(); showExtra1Btn(); GUIPP.dismiss(); } })); layout.addView(nutBtn); GUIPP = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIPP.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIPP.setAnimationStyle(android.R.style.Animation_Toast); GUIPP.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showPentBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var pentBtn = new Button(ctx); pentBtn.setText(NAME); pentBtn.setTextSize(15); pentBtn.setTextColor(android.graphics.Color.WHITE); pentBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); pentBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!jump1speeded){ showSupportBtn(); showExtraBtn(); GUII.dismiss(); jump1speedss = true; jump1speedss = true; }else{ jump1speedss = false; jump1speedss = false; } } })); layout.addView(pentBtn); GUII = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUII.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUII.setAnimationStyle(android.R.style.Animation_Toast); GUII.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function screenChangeHook(screen) { if(screen.toString().indexOf("progress_screen") > -1){ Utils.Render.init(); } } var entry = entry = getPlayerEnt() function showMenuBtn7() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn7 = new Button(ctx); menuBtn7.setText(" Combat "); menuBtn7.setTextSize(5) menuBtn7.setTextColor(android.graphics.Color.WHITE); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); menuBtn7.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui7){ mainMenu7(); menuBtn7.setBackground(selected); menuBtn7.getBackground().setAlpha(150); Gui7 = true; }else{ menu7.dismiss(); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); Gui7 = false; } } })); layout.addView(menuBtn7); GUI7 = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI7.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI7.setAnimationStyle(android.R.style.Animation_Toast); GUI7.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 45); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showApoc1Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn7 = new Button(ctx); menuBtn7.setText(" Combat <<"); menuBtn7.setTextSize(15) menuBtn7.setTextColor(android.graphics.Color.WHITE); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); menuBtn7.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui7){ menuBtn7.setText(" Combat >>"); mainMenu7(); menuBtn7.setBackground(selected); menuBtn7.getBackground().setAlpha(150); Gui7 = true; }else{ menuBtn7.setText(" Combat <<"); menu7.dismiss(); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); Gui7 = false; } } })); layout.addView(menuBtn7); var menuBtn8 = new Button(ctx); menuBtn8.setText(" Player <<"); menuBtn8.setTextSize(15) menuBtn8.setTextColor(android.graphics.Color.WHITE); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); menuBtn8.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui8){ menuBtn8.setText(" Player >>"); mainMenu8(); menuBtn8.setBackground(selected); menuBtn8.getBackground().setAlpha(150); Gui8 = true; }else{ menuBtn8.setText(" Player <<"); menu8.dismiss(); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); Gui8 = false; } } })); layout.addView(menuBtn8); var menuBtn9 = new Button(ctx); menuBtn9.setText(" Motion <<"); menuBtn9.setTextSize(15) menuBtn9.setTextColor(android.graphics.Color.WHITE); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); menuBtn9.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui9){ menuBtn9.setText(" Motion >>"); mainMenu9(); menuBtn9.setBackground(selected); menuBtn9.getBackground().setAlpha(150); Gui9 = true; }else{ menuBtn9.setText(" Motion <<"); menu9.dismiss(); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); Gui9 = false; } } })); layout.addView(menuBtn9); var menuBtn10 = new Button(ctx); menuBtn10.setText(" Settings <<"); menuBtn10.setTextSize(15) menuBtn10.setTextColor(android.graphics.Color.WHITE); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); menuBtn10.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui10){ menuBtn10.setText(" Settings >>"); mainMenu10(); menuBtn10.setBackground(selected); menuBtn10.getBackground().setAlpha(150); Gui10 = true; }else{ menuBtn10.setText(" Settings <<"); menu10.dismiss(); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); Gui10 = false; } } })); layout.addView(menuBtn10); GUIFA = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIFA.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIFA.setAnimationStyle(android.R.style.Animation_Toast); GUIFA.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 45); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showApoc2Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn7 = new Button(ctx); menuBtn7.setText(" Combat <<"); menuBtn7.setTextSize(5) menuBtn7.setTextColor(android.graphics.Color.WHITE); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); menuBtn7.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui7){ menuBtn7.setText(" Combat >>"); mainMenu7(); menuBtn7.setBackground(selected); menuBtn7.getBackground().setAlpha(150); Gui7 = true; }else{ menuBtn7.setText(" Combat <<"); menu7.dismiss(); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); Gui7 = false; } } })); layout.addView(menuBtn7); var menuBtn8 = new Button(ctx); menuBtn8.setText(" Player <<"); menuBtn8.setTextSize(5) menuBtn8.setTextColor(android.graphics.Color.WHITE); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); menuBtn8.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui8){ menuBtn8.setText(" Player >>"); mainMenu8(); menuBtn8.setBackground(selected); menuBtn8.getBackground().setAlpha(150); Gui8 = true; }else{ menuBtn8.setText(" Player <<"); menu8.dismiss(); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); Gui8 = false; } } })); layout.addView(menuBtn8); var menuBtn9 = new Button(ctx); menuBtn9.setText(" Motion <<"); menuBtn9.setTextSize(5) menuBtn9.setTextColor(android.graphics.Color.WHITE); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); menuBtn9.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui9){ menuBtn9.setText(" Motion >>"); mainMenu9(); menuBtn9.setBackground(selected); menuBtn9.getBackground().setAlpha(150); Gui9 = true; }else{ menuBtn9.setText(" Motion <<"); menu9.dismiss(); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); Gui9 = false; } } })); layout.addView(menuBtn9); var menuBtn10 = new Button(ctx); menuBtn10.setText(" Settings <<"); menuBtn10.setTextSize(5) menuBtn10.setTextColor(android.graphics.Color.WHITE); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); menuBtn10.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui10){ menuBtn10.setText(" Settings >>"); mainMenu10(); menuBtn10.setBackground(selected); menuBtn10.getBackground().setAlpha(150); Gui10 = true; }else{ menuBtn10.setText(" Settings <<"); menu10.dismiss(); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); Gui10 = false; } } })); layout.addView(menuBtn10); GUIFs = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIFs.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIFs.setAnimationStyle(android.R.style.Animation_Toast); GUIFs.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 45); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showApoc3Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn7 = new Button(ctx); menuBtn7.setText(" Combat <<"); menuBtn7.setTextSize(15) menuBtn7.setTextColor(android.graphics.Color.WHITE); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); menuBtn7.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui7){ menuBtn7.setText(" Combat >>"); showEasyBtn(); mainMenu7(); menuBtn7.setBackground(selectedR); menuBtn7.getBackground().setAlpha(150); Gui7 = true; }else{ menuBtn7.setText(" Combat <<"); GUIEG.dismiss(); menu7.dismiss(); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); Gui7 = false; } } })); layout.addView(menuBtn7); var menuBtn8 = new Button(ctx); menuBtn8.setText(" Player <<"); menuBtn8.setTextSize(15) menuBtn8.setTextColor(android.graphics.Color.WHITE); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); menuBtn8.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui8){ menuBtn8.setText(" Player >>"); showEasy1Btn(); mainMenu8(); menuBtn8.setBackground(selectedB); menuBtn8.getBackground().setAlpha(150); Gui8 = true; }else{ menuBtn8.setText(" Player <<"); GUIEG1.dismiss(); menu8.dismiss(); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); Gui8 = false; } } })); layout.addView(menuBtn8); var menuBtn9 = new Button(ctx); menuBtn9.setText(" Motion <<"); menuBtn9.setTextSize(15) menuBtn9.setTextColor(android.graphics.Color.WHITE); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); menuBtn9.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui9){ menuBtn9.setText(" Motion >>"); showEasy2Btn(); mainMenu9(); menuBtn9.setBackground(selected); menuBtn9.getBackground().setAlpha(150); Gui9 = true; }else{ menuBtn9.setText(" Motion <<"); GUIEG2.dismiss(); menu9.dismiss(); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); Gui9 = false; } } })); layout.addView(menuBtn9); var menuBtn10 = new Button(ctx); menuBtn10.setText(" Settings <<"); menuBtn10.setTextSize(15) menuBtn10.setTextColor(android.graphics.Color.WHITE); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); menuBtn10.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui10){ menuBtn10.setText(" Settings >>"); showEasy3Btn(); mainMenu10(); menuBtn10.setBackground(selectedY); menuBtn10.getBackground().setAlpha(150); Gui10 = true; }else{ menuBtn10.setText(" Settings <<"); GUIEG3.dismiss(); menu10.dismiss(); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); Gui10 = false; } } })); layout.addView(menuBtn10); GUIFK = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIFK.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIFK.setAnimationStyle(android.R.style.Animation_Toast); GUIFK.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 45); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showApoc4Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn7 = new Button(ctx); menuBtn7.setText(" Combat <<"); menuBtn7.setTextSize(15) menuBtn7.setTextColor(android.graphics.Color.WHITE); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); menuBtn7.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui7){ menuBtn7.setText(" Combat >>"); mainMenu7(); menuBtn7.setBackground(selectedR); menuBtn7.getBackground().setAlpha(150); Gui7 = true; }else{ menuBtn7.setText(" Combat <<"); menu7.dismiss(); menuBtn7.setBackground(cbg); menuBtn7.getBackground().setAlpha(150); Gui7 = false; } } })); layout.addView(menuBtn7); var menuBtn8 = new Button(ctx); menuBtn8.setText(" Player <<"); menuBtn8.setTextSize(15) menuBtn8.setTextColor(android.graphics.Color.WHITE); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); menuBtn8.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui8){ menuBtn8.setText(" Player >>"); mainMenu8(); menuBtn8.setBackground(selectedB); menuBtn8.getBackground().setAlpha(150); Gui8 = true; }else{ menuBtn8.setText(" Player <<"); menu8.dismiss(); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); Gui8 = false; } } })); layout.addView(menuBtn8); var menuBtn9 = new Button(ctx); menuBtn9.setText(" Motion <<"); menuBtn9.setTextSize(15) menuBtn9.setTextColor(android.graphics.Color.WHITE); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); menuBtn9.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui9){ menuBtn9.setText(" Motion >>"); mainMenu9(); menuBtn9.setBackground(selected); menuBtn9.getBackground().setAlpha(150); Gui9 = true; }else{ menuBtn9.setText(" Motion <<"); menu9.dismiss(); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); Gui9 = false; } } })); layout.addView(menuBtn9); var menuBtn10 = new Button(ctx); menuBtn10.setText(" Settings <<"); menuBtn10.setTextSize(15) menuBtn10.setTextColor(android.graphics.Color.WHITE); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); menuBtn10.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui10){ menuBtn10.setText(" Settings >>"); mainMenu10(); menuBtn10.setBackground(selectedY); menuBtn10.getBackground().setAlpha(150); Gui10 = true; }else{ menuBtn10.setText(" Settings <<"); menu10.dismiss(); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); Gui10 = false; } } })); layout.addView(menuBtn10); GUIFKK = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIFKK.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIFKK.setAnimationStyle(android.R.style.Animation_Toast); GUIFKK.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 45); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function mainMenu7(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout7 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout.setBackground(cbg); menuLayout.getBackground().setAlpha(150); menuLayout7.setOrientation(1); menuScroll.addView(menuLayout); menuLayout7.addView(menuScroll); var aim = new android.widget.Switch(ctx); aim.setText("AimBot"); aim.setTextColor(android.graphics.Color.RED); aim.setPadding(10, 1, 1, 1); aim.setTextSize(15); aim.setChecked(aimed); aim.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!aimed){ aimbot = true; aimed = true; }else{ aimbot = false; aimed = false; } aim.setChecked(aimed); } })); menuLayout.addView(aim); var nearwarnings = new Switch(ctx); nearwarnings.setText("FightAura"); nearwarnings.setTextColor(android.graphics.Color.RED); nearwarnings.setPadding(10, 3, 3, 3); nearwarnings.setTextSize(15); nearwarnings.setChecked(nearwarninged); nearwarnings.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!nearwarninged){ nearwarningss = true; nearwarninged = true; }else{ nearwarningss = false; nearwarninged = false; } nearwarnings.setChecked(nearwarninged); } })); menuLayout.addView(nearwarnings); var spam = new Switch(ctx); spam.setText("AutoSword"); spam.setTextColor(android.graphics.Color.RED); spam.setPadding(10, 3, 3, 3); spam.setTextSize(15); spam.setChecked(spamed); spam.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!spamed){ spams = true; spamed = true; }else{ spams = false; spamed = false; } spam.setChecked(spamed); } })); menuLayout.addView(spam); var sword = new Switch(ctx); sword.setText("AutoBow"); sword.setTextColor(android.graphics.Color.RED); sword.setPadding(10, 3, 3, 3); sword.setTextSize(15); sword.setChecked(sworded); sword.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sworded){ swords = true; sworded = true; }else{ swords = false; sworded = false; } sword.setChecked(sworded); } })); menuLayout.addView(sword); var speeds = new Switch(ctx); speeds.setText("AutoGap"); speeds.setTextColor(android.graphics.Color.RED); speeds.setPadding(10, 3, 3, 3); speeds.setTextSize(15); speeds.setChecked(speeded); speeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!speeded){ print("only works on players same as the AutoBow and AutoSword") speedss = true; speeded = true; }else{ speedss = false; speeded = false; } speeds.setChecked(speeded); } })); menuLayout.addView(speeds); var legitauras = new Switch(ctx); legitauras.setText("JumpAimBot"); legitauras.setTextColor(android.graphics.Color.RED); legitauras.setPadding(10, 3, 3, 3); legitauras.setTextSize(15); legitauras.setChecked(legitauraed); legitauras.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!legitauraed){ print("Jump aimbot is unique in its way") legitaurass = true; legitauraed = true; }else{ legitaurass = false; legitauraed = false; } legitauras.setChecked(legitauraed); } })); menuLayout.addView(legitauras); var ride = new android.widget.Switch(ctx); ride.setText("HitBox Expander"); ride.setTextColor(android.graphics.Color.RED); ride.setPadding(10, 1, 1, 1); ride.setTextSize(15); ride.setChecked(rided); ride.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!rided){ rides = true; rided = true; }else{ rides = false; rided = false; } ride.setChecked(rided); } })); menuLayout.addView(ride); var pam = new Switch(ctx); pam.setText("DerpHit"); pam.setTextColor(android.graphics.Color.RED); pam.setPadding(10, 3, 3, 3); pam.setTextSize(15); pam.setChecked(pamed); pam.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!pamed){ pams = true; pamed = true; }else{ pams = false; pamed = false; } pam.setChecked(pamed); } })); menuLayout.addView(pam); var ghosts = new Switch(ctx); ghosts.setText("CrouchAttack"); ghosts.setTextColor(android.graphics.Color.RED); ghosts.setPadding(10, 3, 3, 3); ghosts.setTextSize(15); ghosts.setChecked(ghosted); ghosts.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ghosted){ print("Crouch When Using") ghostss = true; ghosted = true; }else{ ghostss = false; ghosted = false; } ghosts.setChecked(ghosted); } })); menuLayout.addView(ghosts); var taptps = new Switch(ctx); taptps.setText("AeralAura"); taptps.setTextColor(android.graphics.Color.RED); taptps.setPadding(10, 3, 3, 3); taptps.setTextSize(15); taptps.setChecked(taptped); taptps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!taptped){ taptpss = true; taptped = true; }else{ taptpss = false; taptped = false; } taptps.setChecked(taptped); } })); menuLayout.addView(taptps); var bowaimbots = new Switch(ctx); bowaimbots.setText("SwordAimBot(Updated)"); bowaimbots.setTextColor(android.graphics.Color.RED); bowaimbots.setPadding(10, 3, 3, 3); bowaimbots.setTextSize(15); bowaimbots.setChecked(bowaimboted); bowaimbots.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!bowaimboted){ print("works with swords and axes") bowaimboted = true; bowaimbotss = true; }else{ bowaimboted = false; bowaimbotss = false; } bowaimbots.setChecked(bowaimboted); } })); menuLayout.addView(bowaimbots); var twerks = new Switch(ctx); twerks.setText("Criticals"); twerks.setTextColor(android.graphics.Color.RED); twerks.setPadding(10, 3, 3, 3); twerks.setTextSize(15); twerks.setChecked(twerked); twerks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!twerked){ twerkss = true; twerked = true; }else{ twerkss = false; twerked = false; } twerks.setChecked(twerked); } })); menuLayout.addView(twerks); var bounces = new Switch(ctx); bounces.setText("AimAssist"); bounces.setTextColor(android.graphics.Color.RED); bounces.setPadding(10, 3, 3, 3); bounces.setTextSize(15); bounces.setChecked(bounced); bounces.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!bounced){ bouncess = true; bounced = true; }else{ bouncess = false; bounced = false; } bounces.setChecked(bounced); } })); menuLayout.addView(bounces); var view = new Switch(ctx); view.setText("AntiEgg"); view.setTextColor(android.graphics.Color.RED); view.setPadding(10, 3, 3, 3); view.setTextSize(15); view.setChecked(viewed); view.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!viewed){ print("AntiEgg Activated!") views = true; viewed = true; }else{ views = false; viewed = false; } view.setChecked(viewed); } })); menuLayout.addView(view); var far = new Switch(ctx); far.setText("AntiTnT"); far.setTextColor(android.graphics.Color.RED); far.setPadding(10, 1, 1, 1); far.setTextSize(15); far.setChecked(fared); far.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!fared){ farbot = true; fared = true; }else{ farbot = false; fared = false; } far.setChecked(fared); } })); menuLayout.addView(far); var dodges = new Switch(ctx); dodges.setText("AntiFireBall"); dodges.setTextColor(android.graphics.Color.RED); dodges.setPadding(10, 3, 3, 3); dodges.setTextSize(15); dodges.setChecked(dodged); dodges.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dodged){ print("Ghast fireballs will no longer hit you") dodgess = true; dodged = true; }else{ dodgess = false; dodged = false; } dodges.setChecked(dodged); } })); menuLayout.addView(dodges); var stealths = new Switch(ctx); stealths.setText("SpeedBow"); stealths.setTextColor(android.graphics.Color.RED); stealths.setPadding(10, 3, 3, 3); stealths.setTextSize(15); stealths.setChecked(stealthed); stealths.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!stealthed){ print("when a bow is aquipted you are very fast") stealthss = true; stealthed = true; }else{ stealthss = false; stealthed = false; } stealths.setChecked(stealthed); } })); menuLayout.addView(stealths); var cspeeds = new Switch(ctx); cspeeds.setText("BowAimBot"); cspeeds.setTextColor(android.graphics.Color.RED); cspeeds.setPadding(10, 3, 3, 3); cspeeds.setTextSize(15); cspeeds.setChecked(cspeeded); cspeeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cspeeded){ cspeedss = true; cspeeded = true; }else{ cspeedss = false; cspeeded = false; } cspeeds.setChecked(cspeeded); } })); menuLayout.addView(cspeeds); var snipers = new Switch(ctx); snipers.setText("ReachAura"); snipers.setTextColor(android.graphics.Color.RED); snipers.setPadding(10, 3, 3, 3); snipers.setTextSize(15); snipers.setChecked(snipered); snipers.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!snipered){ print("Closest Thing I Have To Reach") sniperss = true; snipered = true; }else{ ModPE.resetFov(); sniperss = false; snipered = false; } snipers.setChecked(snipered); } })); menuLayout.addView(snipers); var reachs = new Switch(ctx); reachs.setText("HitAssist"); reachs.setTextColor(android.graphics.Color.RED); reachs.setPadding(10, 3, 3, 3); reachs.setTextSize(15); reachs.setChecked(reached); reachs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!reached){ print("this one is for melee") reachss = true; reached = true; }else{ reachss = false; reached = false; } reachs.setChecked(reached); } })); menuLayout.addView(reachs); var jumpspeeds = new Switch(ctx); jumpspeeds.setText("HoverAura"); jumpspeeds.setTextColor(android.graphics.Color.RED); jumpspeeds.setPadding(10, 3, 3, 3); jumpspeeds.setTextSize(15); jumpspeeds.setChecked(jumpspeeded); jumpspeeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jumpspeeded){ jumpspeedss = true; jumpspeeded = true; }else{ jumpspeedss = false; jumpspeeded = false; } jumpspeeds.setChecked(jumpspeeded); } })); menuLayout.addView(jumpspeeds); var velocs = new Switch(ctx); velocs.setText("PacketHit"); velocs.setTextColor(android.graphics.Color.RED); velocs.setPadding(10, 3, 3, 3); velocs.setTextSize(15); velocs.setChecked(veloced); velocs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!veloced){ print("You Do More damage to players and every hit to a mob is almost a critical") print("High chance to get detected by anticheat") velocss = true; veloced = true; }else{ velocss = false; veloced = false; } velocs.setChecked(veloced); } })); menuLayout.addView(velocs); var csteps = new Switch(ctx); csteps.setText("BounceStrafe"); csteps.setTextColor(android.graphics.Color.RED); csteps.setPadding(10, 3, 3, 3); csteps.setTextSize(15); csteps.setChecked(csteped); csteps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!csteped){ print("This Strafe Can counter some hackers") cstepss = true; csteped = true; }else{ cstepss = false; csteped = false; } csteps.setChecked(csteped); } })); menuLayout.addView(csteps); var xphits = new Switch(ctx); xphits.setText("Xp-Hit"); xphits.setTextColor(android.graphics.Color.RED); xphits.setPadding(10, 3, 3, 3); xphits.setTextSize(15); xphits.setChecked(xphited); xphits.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xphited){ print("you get XP by fighting") xphitss = true; xphited = true; }else{ xphitss = false; xphited = false; } xphits.setChecked(xphited); } })); menuLayout.addView(xphits); var forcedestroys = new Switch(ctx); forcedestroys.setText("CrossHair"); forcedestroys.setTextColor(android.graphics.Color.RED); forcedestroys.setPadding(10, 3, 3, 3); forcedestroys.setTextSize(15); forcedestroys.setChecked(forcedestroyed); forcedestroys.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!forcedestroyed){ showCrossBtn(); forcedestroyss = true; forcedestroyed = true; }else{ GUIv.dismiss(); forcedestroyss = false; forcedestroyed = false; } forcedestroys.setChecked(forcedestroyed); } })); menuLayout.addView(forcedestroys); var dolphins = new Switch(ctx); dolphins.setText("HopAura"); dolphins.setTextColor(android.graphics.Color.RED); dolphins.setPadding(10, 3, 3, 3); dolphins.setTextSize(15); dolphins.setChecked(dolphined); dolphins.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dolphined){ dolphinss = true; dolphined = true; }else{ dolphinss = false; dolphined = false; } dolphins.setChecked(dolphined); } })); menuLayout.addView(dolphins); var ndglides = new Switch(ctx); ndglides.setText("[KeyBind] Reach"); ndglides.setTextColor(android.graphics.Color.RED); ndglides.setPadding(10, 3, 3, 3); ndglides.setTextSize(15); ndglides.setChecked(ndglideed); ndglides.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ndglideed){ showAimBtn(); ndglidess = true; ndglideed = true; }else{ GUIo.dismiss(); ndglidess = false; ndglideed = false; } ndglides.setChecked(ndglideed); } })); menuLayout.addView(ndglides); var sglides = new Switch(ctx); sglides.setText("WallAimBot"); sglides.setTextColor(android.graphics.Color.RED); sglides.setPadding(10, 3, 3, 3); sglides.setTextSize(15); sglides.setChecked(sglideed); sglides.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sglideed){ print("Stay Against a wall for aimbot") sglidess = true; sglideed = true; }else{ sglidess = false; sglideed = false; } sglides.setChecked(sglideed); } })); menuLayout.addView(sglides); var dmgglides = new Switch(ctx); dmgglides.setText("SideAura"); dmgglides.setTextColor(android.graphics.Color.RED); dmgglides.setPadding(10, 3, 3, 3); dmgglides.setTextSize(15); dmgglides.setChecked(dmgglideed); dmgglides.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dmgglideed){ print("you will target peoples side in combat") dmgglidess = true; dmgglideed = true; }else{ dmgglidess = false; dmgglideed = false; } dmgglides.setChecked(dmgglideed); } })); menuLayout.addView(dmgglides); var elevators = new Switch(ctx); elevators.setText("DodgeAura(Remake)"); elevators.setTextColor(android.graphics.Color.RED); elevators.setPadding(10, 3, 3, 3); elevators.setTextSize(15); elevators.setChecked(elevatored); elevators.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!elevatored){ print("its OP if you have fightaura and reach on with it") elevatored = true; }else{ elevatored = false; } elevators.setChecked(elevatored); } })); menuLayout.addView(elevators); var fastbreaks = new Switch(ctx); fastbreaks.setText("JetAura"); fastbreaks.setTextColor(android.graphics.Color.RED); fastbreaks.setPadding(10, 3, 3, 3); fastbreaks.setTextSize(15); fastbreaks.setChecked(fastbreaked); fastbreaks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!fastbreaked){ print("Works on LBSG, can destroy groups of enemys") fastbreakss = true; fastbreaked = true; }else{ fastbreakss = false; fastbreaked = false; } fastbreaks.setChecked(fastbreaked); } })); menuLayout.addView(fastbreaks); var airjumps = new Switch(ctx); airjumps.setText("StalkStrafe"); airjumps.setTextColor(android.graphics.Color.RED); airjumps.setPadding(10, 3, 3, 3); airjumps.setTextSize(15); airjumps.setChecked(airjumped); airjumps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!airjumped){ print("This is a new strafe,it slowly circles and follows a entity then stops right behind the target") airjumped = true; }else{ airjumped = false; } airjumps.setChecked(airjumped); } })); menuLayout.addView(airjumps); var tapreachs = new Switch(ctx); tapreachs.setText("ForceTp"); tapreachs.setTextColor(android.graphics.Color.RED); tapreachs.setPadding(10, 3, 3, 3); tapreachs.setTextSize(15); tapreachs.setChecked(tapreached); tapreachs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!tapreached){ print("by tapping the ground you tp to a player within 60 block range") print("game will glitch out if no player in range when used") tapreachss = true; tapreached = true; }else{ tapreachss = false; tapreached = false; } tapreachs.setChecked(tapreached); } })); menuLayout.addView(tapreachs); var vets = new Switch(ctx); vets.setText("StanceAura"); vets.setTextColor(android.graphics.Color.RED); vets.setPadding(10, 3, 3, 3); vets.setTextSize(15); vets.setChecked(veted); vets.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!veted){ print("turn aimbot and reach on, and this hack will keep you at distance") print("while players struggle to get to you") vetss = true; veted = true; }else{ vetss = false; veted = false; } vets.setChecked(veted); } })); menuLayout.addView(vets); var javas = new Switch(ctx); javas.setText("FlyAura"); javas.setTextColor(android.graphics.Color.RED); javas.setPadding(10, 3, 3, 3); javas.setTextSize(15); javas.setChecked(javaed); javas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!javaed){ print("if someone is in the air,this is the hack for you") javass = true; javaed = true; }else{ javass = false; javaed = false; } javas.setChecked(javaed); } })); menuLayout.addView(javas); var mcps = new Switch(ctx); mcps.setText("Pc-TpAura"); mcps.setTextColor(android.graphics.Color.RED); mcps.setPadding(10, 3, 3, 3); mcps.setTextSize(15); mcps.setChecked(mcped); mcps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!mcped){ print("this hack simulates pc tpaura, bypasses crazed") mcpss = true; mcped = true; }else{ mcpss = false; mcped = false; } mcps.setChecked(mcped); } })); menuLayout.addView(mcps); var sexs = new Switch(ctx); sexs.setText("RapeAura"); sexs.setTextColor(android.graphics.Color.RED); sexs.setPadding(10, 3, 3, 3); sexs.setTextSize(15); sexs.setChecked(sexed); sexs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sexed){ sexss = true; sexed = true; }else{ sexss = false; sexed = false; } sexs.setChecked(sexed); } })); menuLayout.addView(sexs); var fots = new Switch(ctx); fots.setText("[AI]PvP-Bot"); fots.setTextColor(android.graphics.Color.RED); fots.setPadding(10, 3, 3, 3); fots.setTextSize(15); fots.setChecked(foted); fots.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!foted){ print("it doesnt pvp players and doesent bypass lbsg, the thing has its own way to deal with pvpers") print("it will mess with pvpers by making it hard for them to kill it") fotss = true; foted = true; }else{ fotss = false; foted = false; } fots.setChecked(foted); } })); menuLayout.addView(fots); var eqs = new Switch(ctx); eqs.setText("JetAura+"); eqs.setTextColor(android.graphics.Color.RED); eqs.setPadding(10, 3, 3, 3); eqs.setTextSize(15); eqs.setChecked(eqed); eqs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!eqed){ print("it is JetAura but enhanced and better, bypasses lbsg") eqss = true; eqed = true; }else{ eqss = false; eqed = false; } eqs.setChecked(eqed); } })); menuLayout.addView(eqs); var mobaimbots = new Switch(ctx); mobaimbots.setText("MobAimBot"); mobaimbots.setTextColor(android.graphics.Color.RED); mobaimbots.setPadding(10, 3, 3, 3); mobaimbots.setTextSize(15); mobaimbots.setChecked(mobaimboted); mobaimbots.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!mobaimboted){ mobaimboted = true; mobaimbotss = true; } else { mobaimboted = false; mobaimbotss = false; } mobaimbots.setChecked(mobaimboted); } })); menuLayout.addView(mobaimbots); var teles = new Switch(ctx); teles.setText("CombatHop"); teles.setTextColor(android.graphics.Color.RED); teles.setPadding(10, 3, 3, 3); teles.setTextSize(15); teles.setChecked(teled); teles.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!teled){ print("This hack bypasses lbsg and is overpowered in combat") teless = true; teled = true; }else{ teless = false; teled = false; } teles.setChecked(teled); } })); menuLayout.addView(teles); var hitjumps = new Switch(ctx); hitjumps.setText("AirAura"); hitjumps.setTextColor(android.graphics.Color.RED); hitjumps.setPadding(10, 3, 3, 3); hitjumps.setTextSize(15); hitjumps.setChecked(hitjumped); hitjumps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!hitjumped){ hitjumpss = true; hitjumped = true; }else{ hitjumpss = false; hitjumped = false; } hitjumps.setChecked(hitjumped); } })); menuLayout.addView(hitjumps); var auto = new Switch(ctx); auto.setText("CombatStrafe"); auto.setTextColor(android.graphics.Color.RED); auto.setPadding(10, 3, 3, 3); auto.setTextSize(15); auto.setChecked(autoed); auto.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!autoed){ autos = true; autoed = true; }else{ autos = false; autoed = false; } auto.setChecked(autoed); } })); menuLayout.addView(auto); var fps = new Switch(ctx); fps.setText("SlashAura"); fps.setTextColor(android.graphics.Color.RED); fps.setPadding(10, 3, 3, 3); fps.setTextSize(15); fps.setChecked(fped); fps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!fped){ fpss = true; fped = true; }else{ fpss = false; fped = false; } fps.setChecked(fped); } })); menuLayout.addView(fps); var ncs = new Switch(ctx); ncs.setText("LiquidFight"); ncs.setTextColor(android.graphics.Color.RED); ncs.setPadding(10, 3, 3, 3); ncs.setTextSize(15); ncs.setChecked(nced); ncs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!nced){ print("Another Water Combat hack, this is mostly untested") ncss = true; nced = true; }else{ ncss = false; nced = false; } ncs.setChecked(nced); } })); menuLayout.addView(ncs); var pzs = new Switch(ctx); pzs.setText("Accuracy+"); pzs.setTextColor(android.graphics.Color.RED); pzs.setPadding(10, 3, 3, 3); pzs.setTextSize(15); pzs.setChecked(pzed); pzs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!pzed){ print("this is just like AimAssist exept better, i suggest using both") print("The hack makes your chance of hitting a player with a bow Higher") pzss = true; pzed = true; }else{ pzss = false; pzed = false; } pzs.setChecked(pzed); } })); menuLayout.addView(pzs); var gas = new Switch(ctx); gas.setText("JumpAura"); gas.setTextColor(android.graphics.Color.RED); gas.setPadding(10, 3, 3, 3); gas.setTextSize(15); gas.setChecked(gaed); gas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gaed){ print("during combat it Jumps Above a player and lands randomly around them") gass = true; gaed = true; }else{ gass = false; gaed = false; } gas.setChecked(gaed); } })); menuLayout.addView(gas); var dhs = new Switch(ctx); dhs.setText("CircleAura"); dhs.setTextColor(android.graphics.Color.RED); dhs.setPadding(10, 3, 3, 3); dhs.setTextSize(15); dhs.setChecked(dhed); dhs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dhed){ dhss = true; dhed = true; }else{ dhss = false; dhed = false; } dhs.setChecked(dhed); } })); menuLayout.addView(dhs); var ips = new Switch(ctx); ips.setText("AimBox"); ips.setTextColor(android.graphics.Color.RED); ips.setPadding(10, 3, 3, 3); ips.setTextSize(15); ips.setChecked(iped); ips.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!iped){ print("its a aimbot that moves left and right so fast you can hit players without tapping them") print("its kinda like hitbox expander but without the hitbox expand") ipss = true; iped = true; }else{ ipss = false; iped = false; } ips.setChecked(iped); } })); menuLayout.addView(ips); var jks = new Switch(ctx); jks.setText("KillAura"); jks.setTextColor(android.graphics.Color.RED); jks.setPadding(10, 3, 3, 3); jks.setTextSize(15); jks.setChecked(jked); jks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jked){ print("Do You Remember Krampus KillAura?") jkss = true; jked = true; }else{ jkss = false; jked = false; } jks.setChecked(jked); } })); menuLayout.addView(jks); var kramps = new Switch(ctx); kramps.setText("SuperDodge"); kramps.setTextColor(android.graphics.Color.RED); kramps.setPadding(10, 3, 3, 3); kramps.setTextSize(15); kramps.setChecked(kramped); kramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!kramped){ print("this is a diffrent version of DodgeAura, does not bypass lbsg") krampss = true; kramped = true; }else{ krampss = false; kramped = false; } kramps.setChecked(kramped); } })); menuLayout.addView(kramps); var effecs = new Switch(ctx); effecs.setText("ZigZagAura"); effecs.setTextColor(android.graphics.Color.RED); effecs.setPadding(10, 3, 3, 3); effecs.setTextSize(15); effecs.setChecked(effeced); effecs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!effeced){ print("it zigzags left and right front and back and makes it hard for a player to fight you") effecss = true; effeced = true; }else{ effecss = false; effeced = false; } effecs.setChecked(effeced); } })); menuLayout.addView(effecs); var daxs = new Switch(ctx); daxs.setText("GlideAura"); daxs.setTextColor(android.graphics.Color.RED); daxs.setPadding(10, 3, 3, 3); daxs.setTextSize(15); daxs.setChecked(daxed); daxs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!daxed){ print("while attacking its gliding around the victim") daxss = true; daxed = true; }else{ daxss = false; daxed = false; } daxs.setChecked(daxed); } })); menuLayout.addView(daxs); var aos = new Switch(ctx); aos.setText("BeeAura"); aos.setTextColor(android.graphics.Color.RED); aos.setPadding(10, 3, 3, 3); aos.setTextSize(15); aos.setChecked(aoed); aos.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!aoed){ print("simulates your movements to a hostile bee, couldnt decide on a better name :/") aoss = true; aoed = true; }else{ aoss = false; aoed = false; } aos.setChecked(aoed); } })); menuLayout.addView(aos); var bats = new Switch(ctx); bats.setText("ElevatorAura"); bats.setTextColor(android.graphics.Color.RED); bats.setPadding(10, 3, 3, 3); bats.setTextSize(15); bats.setChecked(bated); bats.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!bated){ batss = true; bated = true; }else{ batss = false; bated = false; } bats.setChecked(bated); } })); menuLayout.addView(bats); var tpdods = new Switch(ctx); tpdods.setText("TpDodge"); tpdods.setTextColor(android.graphics.Color.RED); tpdods.setPadding(10, 3, 3, 3); tpdods.setTextSize(15); tpdods.setChecked(tpdoded); tpdods.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!tpdoded){ print("its a new arrowdodge, when a arrow is near you tp to nearest entity") tpdodss = true; tpdoded = true; }else{ tpdodss = false; tpdoded = false; } tpdods.setChecked(tpdoded); } })); menuLayout.addView(tpdods); var snow = new Switch(ctx); snow.setText("ConfuseAura"); snow.setTextColor(android.graphics.Color.RED); snow.setPadding(10, 3, 3, 3); snow.setTextSize(15); snow.setChecked(snowed); snow.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!snowed){ print("its so confusing that people cant predict what it does") print("i cant figure out a good name :(") snows = true; snowed = true; }else{ snows = false; snowed = false; } snow.setChecked(snowed); } })); menuLayout.addView(snow); var day = new Switch(ctx); day.setText("WaterAura"); day.setTextColor(android.graphics.Color.RED); day.setPadding(10, 3, 3, 3); day.setTextSize(15); day.setChecked(dayed); day.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dayed){ print("this hack is good for water fights") days = true; dayed = true; }else{ days = false; dayed = false; } day.setChecked(dayed); } })); menuLayout.addView(day); var pas = new Switch(ctx); pas.setText("Pot-Help"); pas.setTextColor(android.graphics.Color.RED); pas.setPadding(10, 3, 3, 3); pas.setTextSize(15); pas.setChecked(paed); pas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!paed){ print("When you low on health your head snaps to the ground") pass = true; paed = true; }else{ pass = false; paed = false; } pas.setChecked(paed); } })); menuLayout.addView(pas); var pests = new Switch(ctx); pests.setText("[Keybind]Aimbot"); pests.setTextColor(android.graphics.Color.RED); pests.setPadding(10, 3, 3, 3); pests.setTextSize(15); pests.setChecked(pested); pests.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!pested){ showLookBtn(); pestss = true; pested = true; }else{ GUIF.dismiss(); pestss = false; pested = false; } pests.setChecked(pested); } })); menuLayout.addView(pests); var now = new Switch(ctx); now.setText("PC-Tpaura(Revamped)"); now.setTextColor(android.graphics.Color.RED); now.setPadding(10, 3, 3, 3); now.setTextSize(15); now.setChecked(nowed); now.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!nowed){ print("idk what it does i tried testing but aimbot lags me") nows = true; nowed = true; }else{ nows = false; nowed = false; } now.setChecked(nowed); } })); menuLayout.addView(now); var crests = new Switch(ctx); crests.setText("[Keybind] AntiKB"); crests.setTextColor(android.graphics.Color.RED); crests.setPadding(10, 3, 3, 3); crests.setTextSize(15); crests.setChecked(crested); crests.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!crested){ showKbBtn(); crestss = true; crested = true; }else{ GUIT.dismiss(); crestss = false; crested = false; } crests.setChecked(crested); } })); menuLayout.addView(crests); var agp = new Switch(ctx); agp.setText("[Keybind] Hitbox"); agp.setTextColor(android.graphics.Color.RED); agp.setPadding(10, 3, 3, 3); agp.setTextSize(15); agp.setChecked(agped); agp.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!agped){ showBoxBtn(); agps = true; agped = true; }else{ GUIJ.dismiss(); agps = false; agped = false; } agp.setChecked(agped); } })); menuLayout.addView(agp); var sake = new Switch(ctx); sake.setText("Emergency Aimbot"); sake.setTextColor(android.graphics.Color.RED); sake.setPadding(10, 3, 3, 3); sake.setTextSize(15); sake.setChecked(saked); sake.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!saked){ print("This Is A Aimbot That Activates when your low on health!") sakes = true; saked = true; }else{ sakes = false; saked = false; } sake.setChecked(saked); } })); menuLayout.addView(sake); var rads = new Switch(ctx); rads.setText("AntiKB"); rads.setTextColor(android.graphics.Color.RED); rads.setPadding(10, 3, 3, 3); rads.setTextSize(15); rads.setChecked(radsed); rads.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!radsed){ radss = true; radsed = true; }else{ radss = false; radsed = false; } rads.setChecked(radsed); } })); menuLayout.addView(rads); var xramps = new Switch(ctx); xramps.setText("LagAura"); xramps.setTextColor(android.graphics.Color.RED); xramps.setPadding(10, 3, 3, 3); xramps.setTextSize(15); xramps.setChecked(xramped); xramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xramped){ print("This Hack Creates A Fake Lag On You!") noCreeper1 = true; noCreeper2(); ModPE.setGameSpeed(50) xrampss = true; xramped = true; }else{ noCreeper1 = false; noCreeper3(); ModPE.setGameSpeed(20) xrampss = false; xramped = false; } xramps.setChecked(xramped); } })); menuLayout.addView(xramps); var eramps = new Switch(ctx); eramps.setText("TP-X-Z"); eramps.setTextColor(android.graphics.Color.RED); eramps.setPadding(10, 3, 3, 3); eramps.setTextSize(15); eramps.setChecked(eramped); eramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!eramped){ erampss = true; eramped = true; }else{ erampss = false; eramped = false; } eramps.setChecked(eramped); } })); menuLayout.addView(eramps); var ztramps = new Switch(ctx); ztramps.setText("Op-Tp"); ztramps.setTextColor(android.graphics.Color.RED); ztramps.setPadding(10, 3, 3, 3); ztramps.setTextSize(15); ztramps.setChecked(ztramped); ztramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ztramped){ print("This Is A New Tpaura!") ztrampss = true; ztramped = true; }else{ ztrampss = false; ztramped = false; } ztramps.setChecked(ztramped); } })); menuLayout.addView(ztramps); var button = new android.widget.Button(ctx); button.setText('Reach'); button.setTextColor(android.graphics.Color.RED); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Level.setGameMode(1) Player.setCanFly(0) } })); menuLayout.addView(button); menu7 = new android.widget.PopupWindow(menuLayout7, ctx.getWindowManager().getDefaultDisplay().getWidth()/5, ctx.getWindowManager().getDefaultDisplay().getHeight()/1); menu7.setAnimationStyle(android.R.style.Animation_Translucent); menu7.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 148, 50); }catch(error){ Toast.makeText(ctx, "Template Error: " + error, 1).show(); } }})); } function showMenuBtn8() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn8 = new Button(ctx); menuBtn8.setText(" Player "); menuBtn8.setTextSize(5) menuBtn8.setTextColor(android.graphics.Color.WHITE); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); menuBtn8.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui8){ mainMenu8(); menuBtn8.setBackground(selected); menuBtn8.getBackground().setAlpha(150); Gui8 = true; }else{ menu8.dismiss(); menuBtn8.setBackground(pbg); menuBtn8.getBackground().setAlpha(150); Gui8 = false; } } })); layout.addView(menuBtn8); GUI8 = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI8.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI8.setAnimationStyle(android.R.style.Animation_Toast); GUI8.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 110); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function mainMenu8(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout8 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout.setBackground(pbg); menuLayout.getBackground().setAlpha(150); menuLayout8.setOrientation(1); menuScroll.addView(menuLayout); menuLayout8.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('Survival'); button.setTextColor(android.graphics.Color.BLUE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Level.setGameMode(0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Creative'); button.setTextColor(android.graphics.Color.BLUE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Level.setGameMode(1) } })); menuLayout.addView(button); var nofalls = new Switch(ctx); nofalls.setText("Bypass-Grief"); nofalls.setTextColor(android.graphics.Color.BLUE); nofalls.setPadding(10, 3, 3, 3); nofalls.setTextSize(15); nofalls.setChecked(nofalled); nofalls.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!nofalled){ print("no this isnt your typical forcedestroy, this one is made by me") nofallss = true; nofalled = true; }else{ nofallss = false; nofalled = false; } nofalls.setChecked(nofalled); } })); menuLayout.addView(nofalls); var criticaltrailss = new Switch(ctx); criticaltrailss.setText("Bypass-Nuke"); criticaltrailss.setTextColor(android.graphics.Color.BLUE); criticaltrailss.setPadding(10, 3, 3, 3); criticaltrailss.setTextSize(15); criticaltrailss.setChecked(criticaltrailsed); criticaltrailss.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!criticaltrailsed){ criticaltrailsss = true; criticaltrailsed = true; }else{ criticaltrailsss = false; criticaltrailsed = false; } criticaltrailss.setChecked(criticaltrailsed); } })); menuLayout.addView(criticaltrailss); var afks = new Switch(ctx); afks.setText("AntiAfk"); afks.setTextColor(android.graphics.Color.BLUE); afks.setPadding(10, 3, 3, 3); afks.setTextSize(15); afks.setChecked(afked); afks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!afked){ print("this is not derp, just turn this on when your afk to avoid being kicked from a server for afk") afkss = true; afked = true; }else{ afkss = false; afked = false; } afks.setChecked(afked); } })); menuLayout.addView(afks); var ddos = new Switch(ctx); ddos.setText("Kill/Death Counter"); ddos.setTextColor(android.graphics.Color.BLUE); ddos.setPadding(10, 3, 3, 3); ddos.setTextSize(15); ddos.setChecked(ddoed); ddos.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ddoed){ print("Most likely it wouldnt work on a server") ddoss = true; ddoed = true; }else{ ddoss = false; ddoed = false; } ddos.setChecked(ddoed); } })); menuLayout.addView(ddos); var autoclimbs = new Switch(ctx); autoclimbs.setText("SmoothCam"); autoclimbs.setTextColor(android.graphics.Color.BLUE); autoclimbs.setPadding(10, 3, 3, 3); autoclimbs.setTextSize(15); autoclimbs.setChecked(autoclimbed); autoclimbs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!autoclimbed){ print("this fixes that camera glitch when you move your head") autoclimbss = true; autoclimbed = true; }else{ autoclimbss = false; autoclimbed = false; } autoclimbs.setChecked(autoclimbed); } })); menuLayout.addView(autoclimbs); var fullbrights = new Switch(ctx); fullbrights.setText("Fullbright"); fullbrights.setTextColor(android.graphics.Color.BLUE); fullbrights.setPadding(10, 3, 3, 3); fullbrights.setTextSize(15); fullbrights.setChecked(fullbrighted); fullbrights.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!fullbrighted){ Entity.addEffect(Player.getEntity(), MobEffect.nightVision, 999999, 100, false, false); effect=true; fullbrightss = true; fullbrighted = true; }else{ Block.setLightLevel(0, 0); fullbrightss = false; fullbrighted = false; } fullbrights.setChecked(fullbrighted); } })); menuLayout.addView(fullbrights); var heart = new Switch(ctx); heart.setText("FriendAdder"); heart.setTextColor(android.graphics.Color.BLUE); heart.setPadding(10, 3, 3, 3); heart.setTextSize(15); heart.setChecked(hearted); heart.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!hearted){ print("Hit somebody to friend them and use hitbox expander to unfriend") hearts = true; hearted = true; }else{ hearts = false; hearted = false; } heart.setChecked(hearted); } })); menuLayout.addView(heart); var cafe = new Switch(ctx); cafe.setText("OverStep"); cafe.setTextColor(android.graphics.Color.BLUE); cafe.setPadding(10, 3, 3, 3); cafe.setTextSize(15); cafe.setChecked(cafed); cafe.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cafed){ print("You Cant Turn It Off Unless You Die") cafes = true; cafed = true; }else{ cafes = false; cafed = false; } cafe.setChecked(cafed); } })); menuLayout.addView(cafe); var hosts = new Switch(ctx); hosts.setText("YourHealth"); hosts.setTextColor(android.graphics.Color.BLUE); hosts.setPadding(10, 3, 3, 3); hosts.setTextSize(15); hosts.setChecked(hosted); hosts.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!hosted){ hostss = true; hosted = true; }else{ hostss = false; hosted = false; } hosts.setChecked(hosted); } })); menuLayout.addView(hosts); var fas = new Switch(ctx); fas.setText("Always-Day"); fas.setTextColor(android.graphics.Color.BLUE); fas.setPadding(10, 3, 3, 3); fas.setTextSize(15); fas.setChecked(faed); fas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!faed){ fass = true; faed = true; }else{ fass = false; faed = false; } fas.setChecked(faed); } })); menuLayout.addView(fas); var xsteps = new Switch(ctx); xsteps.setText("Godmode"); xsteps.setTextColor(android.graphics.Color.BLUE); xsteps.setPadding(10, 3, 3, 3); xsteps.setTextSize(15); xsteps.setChecked(xsteped); xsteps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xsteped){ print("Godmode only works offline") xstepss = true; xsteped = true; }else{ xstepss = false; xsteped = false; } xsteps.setChecked(xsteped); } })); menuLayout.addView(xsteps); var aramps = new Switch(ctx); aramps.setText("Health Indicator"); aramps.setTextColor(android.graphics.Color.BLUE); aramps.setPadding(10, 3, 3, 3); aramps.setTextSize(15); aramps.setChecked(aramped); aramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!aramped){ print("Shows The Health Of the Nearest Entity!") arampss = true; aramped = true; }else{ arampss = false; aramped = false; } aramps.setChecked(aramped); } })); menuLayout.addView(aramps); var vramps = new Switch(ctx); vramps.setText("Velocity Indicator"); vramps.setTextColor(android.graphics.Color.BLUE); vramps.setPadding(10, 3, 3, 3); vramps.setTextSize(15); vramps.setChecked(vramped); vramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!vramped){ print("Shows The Velocity Of A Enemy") vrampss = true; vramped = true; }else{ vrampss = false; vramped = false; } vramps.setChecked(vramped); } })); menuLayout.addView(vramps); var zramps = new Switch(ctx); zramps.setText("Anti-Hunger"); zramps.setTextColor(android.graphics.Color.BLUE); zramps.setPadding(10, 3, 3, 3); zramps.setTextSize(15); zramps.setChecked(zramped); zramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!zramped){ print("Single Player Only") zrampss = true; zramped = true; }else{ zrampss = false; zramped = false; } zramps.setChecked(zramped); } })); menuLayout.addView(zramps); var iramps = new Switch(ctx); iramps.setText("FastEat"); iramps.setTextColor(android.graphics.Color.BLUE); iramps.setPadding(10, 3, 3, 3); iramps.setTextSize(15); iramps.setChecked(iramped); iramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!iramped){ print("You Eat Food Faster") Fasteat1 = true; Fasteat2(id); irampss = true; iramped = true; }else{ Fasteat1 = false; Fasteat3(id); irampss = false; iramped = false; } iramps.setChecked(iramped); } })); menuLayout.addView(iramps); var zxramps = new Switch(ctx); zxramps.setText("Spammer"); zxramps.setTextColor(android.graphics.Color.BLUE); zxramps.setPadding(10, 3, 3, 3); zxramps.setTextSize(15); zxramps.setChecked(zxramped); zxramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!zxramped){ print("Spams Your coordinates in chat") zxrampss = true; zxramped = true; }else{ zxrampss = false; zxramped = false; } zxramps.setChecked(zxramped); } })); menuLayout.addView(zxramps); menu8 = new android.widget.PopupWindow(menuLayout8, ctx.getWindowManager().getDefaultDisplay().getWidth()/5, ctx.getWindowManager().getDefaultDisplay().getHeight()/1); menu8.setAnimationStyle(android.R.style.Animation_Translucent); menu8.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 148, 98); }catch(error){ Toast.makeText(ctx, "Template Error: " + error, 1).show(); } }})); } function showMenuBtn9() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn9 = new Button(ctx); menuBtn9.setText(" Motion "); menuBtn9.setTextSize(5) menuBtn9.setTextColor(android.graphics.Color.WHITE); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); menuBtn9.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui9){ mainMenu9(); menuBtn9.setBackground(selected); menuBtn9.getBackground().setAlpha(150); Gui9 = true; }else{ menu9.dismiss(); menuBtn9.setBackground(mbg); menuBtn9.getBackground().setAlpha(150); Gui9 = false; } } })); layout.addView(menuBtn9); GUI9 = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI9.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI9.setAnimationStyle(android.R.style.Animation_Toast); GUI9.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 196); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function mainMenu9(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout9 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout.setBackground(mbg); menuLayout.getBackground().setAlpha(150); menuLayout9.setOrientation(1); menuScroll.addView(menuLayout); menuLayout9.addView(menuScroll); var gp = new Switch(ctx); gp.setText("SprintAid"); gp.setTextColor(android.graphics.Color.GREEN); gp.setPadding(10, 3, 3, 3); gp.setTextSize(15); gp.setChecked(gped); gp.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gped){ gps = true; gped = true; }else{ gps = false; gped = false; } gp.setChecked(gped); } })); menuLayout.addView(gp); var menuBtn = new Button(ctx); menuBtn.setTextColor(android.graphics.Color.GREEN); menuBtn.getBackground().setAlpha(150); menuBtn.setText('Esp'); menuBtn.setTextSize(15); menuBtn.setPadding(10, 10, 10, 10); menuBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menuBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!esp){ esp = true; }else{ esp = false; } } })); menuLayout.addView(menuBtn); var water = new Switch(ctx); water.setText("Jesus-Bypass"); water.setTextColor(android.graphics.Color.GREEN); water.setPadding(10, 3, 3, 3); water.setTextSize(15); water.setChecked(watered); water.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!watered){ print("this jesus is more like a fast swim") waters = true; watered = true; }else{ waters = false; watered = false; } water.setChecked(watered); } })); menuLayout.addView(water); var setpacks = new Switch(ctx); setpacks.setText("Jesus(NEW)"); setpacks.setTextColor(android.graphics.Color.GREEN); setpacks.setPadding(10, 3, 3, 3); setpacks.setTextSize(15); setpacks.setChecked(setpacked); setpacks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!setpacked){ print("This is Better Jesus :)") setpackss = true; setpacked = true; }else{ setpackss = false; setpacked = false; } setpacks.setChecked(setpacked); } })); menuLayout.addView(setpacks); var lad = new Switch(ctx); lad.setText("BypassGlide"); lad.setTextColor(android.graphics.Color.GREEN); lad.setPadding(10, 3, 3, 3); lad.setTextSize(15); lad.setChecked(laded); lad.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!laded){ lads = true; laded = true; }else{ lads = false; laded = false; } lad.setChecked(laded); } })); menuLayout.addView(lad); var godaimbots = new Switch(ctx); godaimbots.setText("Bypass Glide(NEW)"); godaimbots.setTextColor(android.graphics.Color.GREEN); godaimbots.setPadding(10, 3, 3, 3); godaimbots.setTextSize(15); godaimbots.setChecked(godaimboted); godaimbots.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!godaimboted){ print("This Glide Is Made By Me") godaimboted = true; godaimbotss = true; } else { godaimboted = false; godaimbotss = false; } godaimbots.setChecked(godaimboted); } })); menuLayout.addView(godaimbots); var safe = new Switch(ctx); safe.setText("TwistAura"); safe.setTextColor(android.graphics.Color.GREEN); safe.setPadding(10, 3, 3, 3); safe.setTextSize(15); safe.setChecked(safed); safe.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!safed){ apoc("Just Jump To activate") safes = true; safed = true; }else{ safes = false; safed = false; } safe.setChecked(safed); } })); menuLayout.addView(safe); var tests = new Switch(ctx); tests.setText("WaterDancer"); tests.setTextColor(android.graphics.Color.GREEN); tests.setPadding(10, 3, 3, 3); tests.setTextSize(15); tests.setChecked(tested); tests.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!tested){ testss = true; tested = true; }else{ testss = false; tested = false; } tests.setChecked(tested); } })); menuLayout.addView(tests); var potion = new Switch(ctx); potion.setText("AntiFallDamage"); potion.setTextColor(android.graphics.Color.GREEN); potion.setPadding(10, 3, 3, 3); potion.setTextSize(15); potion.setChecked(potioned); potion.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!potioned){ print("it will decrease some fall damage on servers") potions = true; potioned = true; }else{ potions = false; potioned = false; } potion.setChecked(potioned); } })); menuLayout.addView(potion); var grapples = new Switch(ctx); grapples.setText("UnWaterWalk"); grapples.setTextColor(android.graphics.Color.GREEN); grapples.setPadding(10, 3, 3, 3); grapples.setTextSize(15); grapples.setChecked(grappleed); grapples.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!grappleed){ print("lets you walk on the waters floor") grappless = true; grappleed = true; }else{ grappless = false; grappleed = false; } grapples.setChecked(grappleed); } })); menuLayout.addView(grapples); var follows = new Switch(ctx); follows.setText("[AI]BETA!"); follows.setTextColor(android.graphics.Color.GREEN); follows.setPadding(10, 3, 3, 3); follows.setTextSize(15); follows.setChecked(followed); follows.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ apoc("Alright here's the list of what the AI does-autowalks-auto turns-autoswims-trys to team when 2 blocks near player-Rage quits after dieing-runs when entity enters 30 blocks of AI-autojumps over blocks"); apoc("Alright here's the list of what the AI does-autowalks-auto turns-autoswims-trys to team when 2 blocks near player-Rage quits after dieing-runs when entity enters 30 blocks of AI-autojumps over blocks"); if(!followed){ followss = true; followed = true; }else{ followss = false; followed = false; } follows.setChecked(followed); } })); menuLayout.addView(follows); var xps = new Switch(ctx); xps.setText("FastBridge"); xps.setTextColor(android.graphics.Color.GREEN); xps.setPadding(10, 3, 3, 3); xps.setTextSize(15); xps.setChecked(xped); xps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xped){ xpss = true; xped = true; }else{ xpss = false; xped = false; } xps.setChecked(xped); } })); menuLayout.addView(xps); var underblocks = new Switch(ctx); underblocks.setText("Scaffold"); underblocks.setTextColor(android.graphics.Color.GREEN); underblocks.setPadding(10, 3, 3, 3); underblocks.setTextSize(15); underblocks.setChecked(underblocked); underblocks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!underblocked){ underblockss = true; underblocked = true; }else{ underblockss = false; underblocked = false; } underblocks.setChecked(underblocked); } })); menuLayout.addView(underblocks); var jetpacks = new Switch(ctx); jetpacks.setText("PlaceTower"); jetpacks.setTextColor(android.graphics.Color.GREEN); jetpacks.setPadding(10, 3, 3, 3); jetpacks.setTextSize(15); jetpacks.setChecked(jetpacked); jetpacks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jetpacked){ jetpackss = true; jetpacked = true; }else{ jetpackss = false; jetpacked = false; } jetpacks.setChecked(jetpacked); } })); menuLayout.addView(jetpacks); var backfaces = new Switch(ctx); backfaces.setText("[KeyBind] Flight"); backfaces.setTextColor(android.graphics.Color.GREEN); backfaces.setPadding(10, 3, 3, 3); backfaces.setTextSize(15); backfaces.setChecked(backfaceed); backfaces.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!backfaceed){ showNOGLIDEBtn(); backfacess = true; backfaceed = true; }else{ GUIe.dismiss(); backfacess = false; backfaceed = false; } backfaces.setChecked(backfaceed); } })); menuLayout.addView(backfaces); var leetspeaks = new Switch(ctx); leetspeaks.setText("BypassStep"); leetspeaks.setTextColor(android.graphics.Color.GREEN); leetspeaks.setPadding(10, 3, 3, 3); leetspeaks.setTextSize(15); leetspeaks.setChecked(leetspeaked); leetspeaks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!leetspeaked){ print("this is the one from my piracy client, have fun") leetspeakss = true; leetspeaked = true; }else{ leetspeakss = false; leetspeaked = false; } leetspeaks.setChecked(leetspeaked); } })); menuLayout.addView(leetspeaks); Hack7 = new Button(ctx); Hack7.setText("BounceSpeed"); Hack7.setTextColor(android.graphics.Color.GREEN); Hack7.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); Hack7.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(bouncefly == false){ bouncefly = true; }else{ bouncefly = false; } }}));menuLayout.addView(Hack7); var betterlads = new Switch(ctx); betterlads.setText("FastLadder"); betterlads.setTextColor(android.graphics.Color.GREEN); betterlads.setPadding(10, 3, 3, 3); betterlads.setTextSize(15); betterlads.setChecked(betterladed); betterlads.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!betterladed){ betterladss = true; betterladed = true; }else{ betterladss = false; betterladed = false; } betterlads.setChecked(betterladed); } })); menuLayout.addView(betterlads); var palls = new Switch(ctx); palls.setText("[Keybind] LBFlight"); palls.setTextColor(android.graphics.Color.GREEN); palls.setPadding(10, 3, 3, 3); palls.setTextSize(15); palls.setChecked(palled); palls.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!palled){ print("Useful if u know how to use it") showPieBtn(); pallss = true; palled = true; }else{ GUIg.dismiss(); pallss = false; palled = false; } palls.setChecked(palled); } })); menuLayout.addView(palls); var sfwalks = new Switch(ctx); sfwalks.setText("SafeWalk"); sfwalks.setTextColor(android.graphics.Color.GREEN); sfwalks.setPadding(10, 3, 3, 3); sfwalks.setTextSize(15); sfwalks.setChecked(sfwalked); sfwalks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sfwalked){ sfwalkss = true; sfwalked = true; }else{ sfwalkss = false; sfwalked = false; } sfwalks.setChecked(sfwalked); } })); menuLayout.addView(sfwalks); var radius = new Switch(ctx); radius.setText("Player-Detector"); radius.setTextColor(android.graphics.Color.GREEN); radius.setPadding(10, 3, 3, 3); radius.setTextSize(15); radius.setChecked(radiused); radius.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!radiused){ print("Shows the name of the nearest player within 100 blocks") radiuss = true; radiused = true; }else{ radiuss = false; radiused = false; } radius.setChecked(radiused); } })); menuLayout.addView(radius); var enchants = new Switch(ctx); enchants.setText("BounceJet"); enchants.setTextColor(android.graphics.Color.GREEN); enchants.setPadding(10, 3, 3, 3); enchants.setTextSize(15); enchants.setChecked(enchanted); enchants.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!enchanted){ enchantss = true; enchanted = true; }else{ enchantss = false; enchanted = false; } enchants.setChecked(enchanted); } })); menuLayout.addView(enchants); var invs = new Switch(ctx); invs.setText("ParkourAssist"); invs.setTextColor(android.graphics.Color.GREEN); invs.setPadding(10, 3, 3, 3); invs.setTextSize(15); invs.setChecked(inved); invs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!inved){ invss = true; inved = true; }else{ invss = false; inved = false; } invs.setChecked(inved); } })); menuLayout.addView(invs); var scafs = new Switch(ctx); scafs.setText("Pc-Scaffold"); scafs.setTextColor(android.graphics.Color.GREEN); scafs.setPadding(10, 3, 3, 3); scafs.setTextSize(15); scafs.setChecked(scafed); scafs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!scafed){ scafss = true; scafed = true; }else{ scafss = false; scafed = false; } scafs.setChecked(scafed); } })); menuLayout.addView(scafs); var gjs = new Switch(ctx); gjs.setText("QuickTower"); gjs.setTextColor(android.graphics.Color.GREEN); gjs.setPadding(10, 3, 3, 3); gjs.setTextSize(15); gjs.setChecked(gjed); gjs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gjed){ print("this is like BuildTower in a way, exept this makes you build towers fast") gjss = true; gjed = true; }else{ gjss = false; gjed = false; } gjs.setChecked(gjed); } })); menuLayout.addView(gjs); var blinks = new Switch(ctx); blinks.setText("Blink"); blinks.setTextColor(android.graphics.Color.GREEN); blinks.setPadding(10, 3, 3, 3); blinks.setTextSize(15); blinks.setChecked(blinked); blinks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!blinked){ blinkss = true; blinked = true; }else{ blinkss = false; blinked = false; } blinks.setChecked(blinked); } })); menuLayout.addView(blinks); var walks = new Switch(ctx); walks.setText("Lb-Speed"); walks.setTextColor(android.graphics.Color.GREEN); walks.setPadding(10, 3, 3, 3); walks.setTextSize(15); walks.setChecked(walked); walks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!walked){ print("Lb-Speed Is A Bypass For ModPE.setGameSpeed!") walkss = true; walked = true; }else{ walkss = false; walked = false; } walks.setChecked(walked); } })); menuLayout.addView(walks); var steals = new Switch(ctx); steals.setText("PC-Bhop"); steals.setTextColor(android.graphics.Color.GREEN); steals.setPadding(10, 3, 3, 3); steals.setTextSize(15); steals.setChecked(stealed); steals.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!stealed){ stealss = true; stealed = true; }else{ stealss = false; stealed = false; } steals.setChecked(stealed); } })); menuLayout.addView(steals); var seals = new Switch(ctx); seals.setText("Airjump"); seals.setTextColor(android.graphics.Color.GREEN); seals.setPadding(10, 3, 3, 3); seals.setTextSize(15); seals.setChecked(sealed); seals.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sealed){ print("I added My Airjump :)") showAirjumpBtn(); sealss = true; sealed = true; }else{ GUIA.dismiss(); sealss = false; sealed = false; } seals.setChecked(sealed); } })); menuLayout.addView(seals); var alks = new Switch(ctx); alks.setText("CrouchTp"); alks.setTextColor(android.graphics.Color.GREEN); alks.setPadding(10, 3, 3, 3); alks.setTextSize(15); alks.setChecked(alked); alks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!alked){ print("Added My Crouch Tp, its not really teleportation But i tried my best") alkss = true; alked = true; }else{ alkss = false; alked = false; } alks.setChecked(alked); } })); menuLayout.addView(alks); var talks = new Switch(ctx); talks.setText("[Keybind] ESP"); talks.setTextColor(android.graphics.Color.GREEN); talks.setPadding(10, 3, 3, 3); talks.setTextSize(15); talks.setChecked(talked); talks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!talked){ print("Now you can access esp alot easier") showEspBtn(); talkss = true; talked = true; }else{ GUIC.dismiss(); talkss = false; talked = false; } talks.setChecked(talked); } })); menuLayout.addView(talks); var eles = new Switch(ctx); eles.setText("Glide-Hop"); eles.setTextColor(android.graphics.Color.GREEN); eles.setPadding(10, 3, 3, 3); eles.setTextSize(15); eles.setChecked(eled); eles.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!eled){ print("Glide-Hop Is A New BunnyHop i Created it Will Bypass If You Know How To Use It Right") eless = true; eled = true; }else{ eless = false; eled = false; } eles.setChecked(eled); } })); menuLayout.addView(eles); var craptps = new Switch(ctx); craptps.setText("FastFall"); craptps.setTextColor(android.graphics.Color.GREEN); craptps.setPadding(10, 3, 3, 3); craptps.setTextSize(15); craptps.setChecked(craptped); craptps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!craptped){ print("You Fall faster") craptpss = true; craptped = true; }else{ craptpss = false; craptped = false; } craptps.setChecked(craptped); } })); menuLayout.addView(craptps); var eart = new Switch(ctx); eart.setText("Bypass LongHop"); eart.setTextColor(android.graphics.Color.GREEN); eart.setPadding(10, 3, 3, 3); eart.setTextSize(15); eart.setChecked(earted); eart.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!earted){ print("Mainly Untested But its a new long hop!") earts = true; earted = true; }else{ earts = false; earted = false; } eart.setChecked(earted); } })); menuLayout.addView(eart); var tramps = new Switch(ctx); tramps.setText("bypass Speed"); tramps.setTextColor(android.graphics.Color.GREEN); tramps.setPadding(10, 3, 3, 3); tramps.setTextSize(15); tramps.setChecked(tramped); tramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!tramped){ print("a speed hack that bypasses lbsg") trampss = true; tramped = true; }else{ trampss = false; tramped = false; } tramps.setChecked(tramped); } })); menuLayout.addView(tramps); var aas = new Switch(ctx); aas.setText("[Keybind] BounceSpeed"); aas.setTextColor(android.graphics.Color.GREEN); aas.setPadding(10, 3, 3, 3); aas.setTextSize(15); aas.setChecked(aaed); aas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!aaed){ print("Now its more controllable") showBounceBtn(); aass = true; aaed = true; }else{ GUIH.dismiss(); aass = false; aaed = false; } aas.setChecked(aaed); } })); menuLayout.addView(aas); var button = new android.widget.Button(ctx); button.setText('GameSpeed'); button.setTextColor(android.graphics.Color.GREEN); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var sbpProgress = 0; var sbp = new android.widget.SeekBar(ctx); sbp.getBackground().setAlpha(150); sbp.setMax(19); sbp.setProgress(sbpProgress); sbp.setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener() { onStopTrackingTouch: function(view) { sbpProgress=sbp.getProgress(); if(sbpProgress==0) { ModPE.setGameSpeed(20) } if(sbpProgress==1) { ModPE.setGameSpeed(30) } if(sbpProgress==2) { ModPE.setGameSpeed(40) } if(sbpProgress==3) { ModPE.setGameSpeed(50) } if(sbpProgress==4) { ModPE.setGameSpeed(60) } if(sbpProgress==5) { ModPE.setGameSpeed(70) } if(sbpProgress==6) { ModPE.setGameSpeed(80) } if(sbpProgress==7) { ModPE.setGameSpeed(90) } if(sbpProgress==8) { ModPE.setGameSpeed(100) } if(sbpProgress==9) { ModPE.setGameSpeed(110) } if(sbpProgress==10) { ModPE.setGameSpeed(120) } if(sbpProgress==11) { ModPE.setGameSpeed(130) } if(sbpProgress==12) { ModPE.setGameSpeed(140) } if(sbpProgress==13) { ModPE.setGameSpeed(150) } if(sbpProgress==14) { ModPE.setGameSpeed(160) } if(sbpProgress==15) { ModPE.setGameSpeed(170) } if(sbpProgress==16) { ModPE.setGameSpeed(180) } if(sbpProgress==17) { ModPE.setGameSpeed(190) } if(sbpProgress==18) { ModPE.setGameSpeed(200) } } }); menuLayout.addView(sbp); var wramps = new Switch(ctx); wramps.setText("Speed-Hop"); wramps.setTextColor(android.graphics.Color.GREEN); wramps.setPadding(10, 3, 3, 3); wramps.setTextSize(15); wramps.setChecked(wramped); wramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!wramped){ print("This bhop is untested on servers") wrampss = true; wramped = true; }else{ wrampss = false; wramped = false; } wramps.setChecked(wramped); } })); menuLayout.addView(wramps); var uramps = new Switch(ctx); uramps.setText("Gravity-Flight"); uramps.setTextColor(android.graphics.Color.GREEN); uramps.setPadding(10, 3, 3, 3); uramps.setTextSize(15); uramps.setChecked(uramped); uramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!uramped){ print("Gravity-Flight is a new fly hack i made") urampss = true; uramped = true; }else{ urampss = false; uramped = false; } uramps.setChecked(uramped); } })); menuLayout.addView(uramps); var oramps = new Switch(ctx); oramps.setText("TapSpeeds"); oramps.setTextColor(android.graphics.Color.GREEN); oramps.setPadding(10, 3, 3, 3); oramps.setTextSize(15); oramps.setChecked(oramped); oramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!oramped){ print("TapSpeeds bypasses aslong as you dont spam it") orampss = true; oramped = true; }else{ orampss = false; oramped = false; } oramps.setChecked(oramped); } })); menuLayout.addView(oramps); var dramps = new Switch(ctx); dramps.setText("Boost"); dramps.setTextColor(android.graphics.Color.GREEN); dramps.setPadding(10, 3, 3, 3); dramps.setTextSize(15); dramps.setChecked(dramped); dramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dramped){ print("I Saw Some Clients With This Module So i added My Own") showBoostBtn(); drampss = true; dramped = true; }else{ GUIBOO.dismiss(); drampss = false; dramped = false; } dramps.setChecked(dramped); } })); menuLayout.addView(dramps); menu9 = new android.widget.PopupWindow(menuLayout9, ctx.getWindowManager().getDefaultDisplay().getWidth()/5, ctx.getWindowManager().getDefaultDisplay().getHeight()/1); menu9.setAnimationStyle(android.R.style.Animation_Translucent); menu9.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 148, 146); }catch(error){ Toast.makeText(ctx, "Template Error: " + error, 1).show(); } }})); } function showMenuBtn10() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn10 = new Button(ctx); menuBtn10.setText(" Settings "); menuBtn10.setTextSize(5) menuBtn10.setTextColor(android.graphics.Color.WHITE); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); menuBtn10.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui10){ mainMenu10(); menuBtn10.setBackground(selected); menuBtn10.getBackground().setAlpha(150); Gui10 = true; }else{ menu10.dismiss(); menuBtn10.setBackground(sbg); menuBtn10.getBackground().setAlpha(150); Gui10 = false; } } })); layout.addView(menuBtn10); GUI10 = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI10.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI10.setAnimationStyle(android.R.style.Animation_Toast); GUI10.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 260); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function mainMenu10(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout10 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout.setBackground(sbg); menuLayout.getBackground().setAlpha(150); menuLayout10.setOrientation(1); menuScroll.addView(menuLayout); menuLayout10.addView(menuScroll); var glides = new Switch(ctx); glides.setText("BYPASS"); glides.setTextColor(android.graphics.Color.YELLOW); glides.setPadding(10, 3, 3, 3); glides.setTextSize(15); glides.setChecked(glideed); glides.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!glideed){ print("this will make it harder for anticheat to detect you") print("also may mess up some hacks") glidess = true; glideed = true; }else{ glidess = false; glideed = false; } glides.setChecked(glideed); } })); menuLayout.addView(glides); var placetps = new Switch(ctx); placetps.setText("Anti-Lag"); placetps.setTextColor(android.graphics.Color.YELLOW); placetps.setPadding(10, 3, 3, 3); placetps.setTextSize(15); placetps.setChecked(placetped); placetps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!placetped){ print("Anti-Lag is now running!") placetpss = true; placetped = true; }else{ placetpss = false; placetped = false; } placetps.setChecked(placetped); } })); menuLayout.addView(placetps); var cheats = new Switch(ctx); cheats.setText("VANILLA"); cheats.setTextColor(android.graphics.Color.YELLOW); cheats.setPadding(10, 3, 3, 3); cheats.setTextSize(15); cheats.setChecked(cheated); cheats.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cheated){ print("This is a Secondary bypass") cheatss = true; cheated = true; }else{ cheatss = false; cheated = false; } cheats.setChecked(cheated); } })); menuLayout.addView(cheats); var cord = new Switch(ctx); cord.setText("Anti-Falling-Block"); cord.setTextColor(android.graphics.Color.YELLOW); cord.setPadding(10, 3, 3, 3); cord.setTextSize(15); cord.setChecked(corded); cord.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!corded){ print("No Falling Block Can Suffocate you") cords = true; corded = true; }else{ cords = false; corded = false; } cord.setChecked(corded); } })); menuLayout.addView(cord); var gwed = new Switch(ctx); gwed.setText("Anti-GWEN"); gwed.setTextColor(android.graphics.Color.YELLOW); gwed.setPadding(10, 3, 3, 3); gwed.setTextSize(15); gwed.setChecked(gweed); gwed.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gweed){ print("it will help with the mineplex anti-cheat") gweds = true; gweed = true; }else{ gweds = false; gweed = false; } gwed.setChecked(gweed); } })); menuLayout.addView(gwed); var lramps = new Switch(ctx); lramps.setText("BYPASS FLIGHT"); lramps.setTextColor(android.graphics.Color.YELLOW); lramps.setPadding(10, 3, 3, 3); lramps.setTextSize(15); lramps.setChecked(lramped); lramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!lramped){ print("This Will Attempt To Trick Servers Into Thinking Your On Ground") print("recommend using Anti-Gwen To Give You More Mobility") lrampss = true; lramped = true; }else{ lrampss = false; lramped = false; } lramps.setChecked(lramped); } })); menuLayout.addView(lramps); var xsd = new Switch(ctx); xsd.setText("SmoothMovement"); xsd.setTextColor(android.graphics.Color.YELLOW); xsd.setPadding(10, 3, 3, 3); xsd.setTextSize(15); xsd.setChecked(xsed); xsd.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xsed){ print("it will smooth the game, not antilag") xsds = true; xsed = true; }else{ xsds = false; xsed = false; } xsd.setChecked(xsed); } })); menuLayout.addView(xsd); var statd = new Switch(ctx); statd.setText("StatUI"); statd.setTextColor(android.graphics.Color.YELLOW); statd.setPadding(10, 3, 3, 3); statd.setTextSize(15); statd.setChecked(stated); statd.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!stated){ statds = true; stated = true; }else{ statds = false; stated = false; } statd.setChecked(stated); } })); menuLayout.addView(statd); var cgp = new Switch(ctx); cgp.setText("Anti-Glitch"); cgp.setTextColor(android.graphics.Color.YELLOW); cgp.setPadding(10, 3, 3, 3); cgp.setTextSize(15); cgp.setChecked(cgped); cgp.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cgped){ print("Anti-Glitch Helps Prevent aimbot from glitching you underground") cgps = true; cgped = true; }else{ cgps = false; cgped = false; } cgp.setChecked(cgped); } })); menuLayout.addView(cgp); var ay = new Switch(ctx); ay.setText("AntiCheat(BETA)"); ay.setTextColor(android.graphics.Color.YELLOW); ay.setPadding(10, 3, 3, 3); ay.setTextSize(15); ay.setChecked(ayed); ay.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ayed){ ays = true; ayed = true; print("You want more of a challenge?") print("its not the most accurate anti-cheat so there can be false detections") }else{ ays = false; ayed = false; } ay.setChecked(ayed); } })); menuLayout.addView(ay); var gaos = new Switch(ctx); gaos.setText("1Hr Reminder"); gaos.setTextColor(android.graphics.Color.YELLOW); gaos.setPadding(10, 3, 3, 3); gaos.setTextSize(15); gaos.setChecked(gaoed); gaos.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gaoed){ print("It Tells You When You Been Playing For A Hour!") gaoss = true; gaoed = true; }else{ gaoss = false; gaoed = false; } gaos.setChecked(gaoed); } })); menuLayout.addView(gaos); var zcramps = new Switch(ctx); zcramps.setText("MiniMap"); zcramps.setTextColor(android.graphics.Color.YELLOW); zcramps.setPadding(10, 3, 3, 3); zcramps.setTextSize(15); zcramps.setChecked(zcramped); zcramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!zcramped){ print("Im Not The Creator Of The MiniMap! All Rights Reserved To MxGoldo") print("make sure to close the minimap before turning off the module!") zcrampss = true; zcramped = true; }else{ try { mapWindow.hide(); if (map_state) { changeMapState(); } pool.shutdownNow(); startMapControl = true; X = undefined; entities = []; chests = []; } catch (e) { print("leaveGame, " + e + " (" + e.fileName + " #" + e.lineNumber + ")"); } zcrampss = false; zcramped = false; } zcramps.setChecked(zcramped); } })); menuLayout.addView(zcramps); var zeramps = new Switch(ctx); zeramps.setText("Tree Capitator"); zeramps.setTextColor(android.graphics.Color.YELLOW); zeramps.setPadding(10, 3, 3, 3); zeramps.setTextSize(15); zeramps.setChecked(zeramped); zeramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!zeramped){ print("You Can Now Break Down Trees With Axes!") zerampss = true; zeramped = true; }else{ zerampss = false; zeramped = false; } zeramps.setChecked(zeramped); } })); menuLayout.addView(zeramps); var button = new android.widget.Button(ctx); button.setText('Graphics'); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var sbpProgress = 0; var sbp = new android.widget.SeekBar(ctx); sbp.getBackground().setAlpha(150); sbp.setMax(19); sbp.setProgress(sbpProgress); sbp.setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener() { onStopTrackingTouch: function(view) { sbpProgress=sbp.getProgress(); if(sbpProgress==0) { Block.setLightOpacity(1,0); } if(sbpProgress==1) { Block.setLightOpacity(1,1); } if(sbpProgress==2) { Block.setLightOpacity(1,2); } if(sbpProgress==3) { Block.setLightOpacity(1,3); } if(sbpProgress==4) { Block.setLightOpacity(1,4); } if(sbpProgress==5) { Block.setLightOpacity(1,5); } if(sbpProgress==6) { Block.setLightOpacity(1,6); } if(sbpProgress==7) { Block.setLightOpacity(1,7); } if(sbpProgress==8) { Block.setLightOpacity(1,8); } if(sbpProgress==9) { Block.setLightOpacity(1,9); } if(sbpProgress==10) { Block.setLightOpacity(1,10); } if(sbpProgress==11) { Block.setLightOpacity(1,11); } if(sbpProgress==12) { Block.setLightOpacity(1,12); } if(sbpProgress==13) { Block.setLightOpacity(1,13); } if(sbpProgress==14) { Block.setLightOpacity(1,14); } if(sbpProgress==15) { Block.setLightOpacity(1,15); } if(sbpProgress==16) { Block.setLightOpacity(1,16); } if(sbpProgress==17) { Block.setLightOpacity(1,17); } if(sbpProgress==18) { Block.setLightOpacity(1,18); } } }); menuLayout.addView(sbp); var button = new android.widget.Button(ctx); button.setText('Brightness'); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var sbpProgress = 0; var sbp = new android.widget.SeekBar(ctx); sbp.getBackground().setAlpha(150); sbp.setMax(8); sbp.setProgress(sbpProgress); sbp.setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener() { onStopTrackingTouch: function(view) { sbpProgress=sbp.getProgress(); if(sbpProgress==0) { Block.setLightLevel(50, 5); Block.setLightLevel(1, 5); } if(sbpProgress==1) { Block.setLightLevel(50, 10); Block.setLightLevel(1, 10); } if(sbpProgress==2) { Block.setLightLevel(50, 15); Block.setLightLevel(1, 15); } if(sbpProgress==3) { Block.setLightLevel(50, 20); Block.setLightLevel(1, 20); } if(sbpProgress==4) { Block.setLightLevel(50, 25); Block.setLightLevel(1, 25); } if(sbpProgress==5) { Block.setLightLevel(50, 30); Block.setLightLevel(1, 30); } if(sbpProgress==6) { Block.setLightLevel(50, 35); Block.setLightLevel(1, 35); } if(sbpProgress==7) { Block.setLightLevel(50, 40); Block.setLightLevel(1, 40); } } }); menuLayout.addView(sbp); var button = new android.widget.Button(ctx); button.setText('Render'); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var sbpProgress = 0; var sbp = new android.widget.SeekBar(ctx); sbp.getBackground().setAlpha(150); sbp.setMax(6); sbp.setProgress(sbpProgress); sbp.setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener() { onStopTrackingTouch: function(view) { sbpProgress=sbp.getProgress(); if(sbpProgress==0) { Block.setRenderType(2, 1); } if(sbpProgress==1) { Block.setRenderType(2, 2); } if(sbpProgress==2) { Block.setRenderType(2, 3); } if(sbpProgress==3) { Block.setRenderType(2, 4); } if(sbpProgress==4) { Block.setRenderType(2, 5); } } }); menuLayout.addView(sbp); var button = new android.widget.Button(ctx); button.setText('Server Ip Tracer'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ apoc("Tracking. 1%"); apoc("Tracking.. 6%"); apoc("Tracking... 13%"); apoc("Tracking. 24%"); apoc("Tracking.. 37%"); apoc("Tracking... 49%"); apoc("Tracking. 61%"); apoc("Tracking.. 83%"); apoc("Tracking... 99%"); apoc("Tracking Complete!"); apoc("IP: " + Server.getAddress()); apoc("IP: " + Server.getAddress()); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Shaders'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Block.setLightOpacity(1,2); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Water-Xray'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("place down water or break a block to activate") Block.setRenderType(9, 1); Block.setRenderType(8, 1); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('DEVELOPERS'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("HACKER laastad") print("CoolCrazyPanda") print("WolfHaxYT") print("GreenXpqser") print("JayDotZip") print("PokeyDaHacker") print("LushFireBurst") print("KingDoctorX") } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('BETA TESTERS'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("ItzPurpleDreEMure") print("XPsychoYT") print("SoloTroll") print("SathShah") print("XxMcpeHackerYTxX") print("Ken") print("XinderHackerYT") } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Offical Hack Source'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ var intentURL = new Intent(ctx); intentURL.setAction(Intent.ACTION_VIEW); intentURL.setData(Uri.parse("https://sites.google.com/view/trollhax/home_1")); ctx.startActivity(intentURL); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Join Discord'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ var intentURL = new Intent(ctx); intentURL.setAction(Intent.ACTION_VIEW); intentURL.setData(Uri.parse("https://discord.gg/AQzUG3k")); ctx.startActivity(intentURL); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Advertise IP Grabber'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Server.sendChat("yo guys! visit my website pls http://blasze.tk/9R64WS") print("this makes you advertise a ip grabber link in mcpe, DONT VISIT!") } })); menuLayout.addView(button); menu10 = new android.widget.PopupWindow(menuLayout10, ctx.getWindowManager().getDefaultDisplay().getWidth()/5, ctx.getWindowManager().getDefaultDisplay().getHeight()/1); menu10.setAnimationStyle(android.R.style.Animation_Translucent); menu10.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 148, 194); }catch(error){ Toast.makeText(ctx, "Template Error: " + error, 1).show(); } }})); } //Tablet Tab Gui function dip2px(dips){ return Math.ceil(dips * ctx.getResources().getDisplayMetrics().density); } //Button function showTitle() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menupbBtn = new Button(ctx); menupbBtn.setText(NAME); menupbBtn.setTextSize(25); menupbBtn.setTextColor(android.graphics.Color.WHITE); menupbBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menupbBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ } })); layout.addView(menupbBtn); GUI = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI.setAnimationStyle(android.R.style.Animation_Toast); GUI.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showDesignBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menupbBtn = new Button(ctx); menupbBtn.setText(NAME); menupbBtn.setTextSize(20); menupbBtn.setTextColor(android.graphics.Color.WHITE); menupbBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menupbBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ print("Gui hidden") GUIFA.dismiss(); GUIin.dismiss(); showDesignBtn1(); } })); layout.addView(menupbBtn); GUIin = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIin.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIin.setAnimationStyle(android.R.style.Animation_Toast); GUIin.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showDesign4Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menupbBtn = new Button(ctx); menupbBtn.setText(NAME); menupbBtn.setTextSize(20); menupbBtn.setTextColor(android.graphics.Color.WHITE); menupbBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menupbBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ print("Gui hidden") GUIFKK.dismiss(); GUIGo.dismiss(); showSwitchxxBtn(); showDesign5Btn(); } })); layout.addView(menupbBtn); GUIGo = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIGo.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIGo.setAnimationStyle(android.R.style.Animation_Toast); GUIGo.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showDesign3Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menupbBtn = new Button(ctx); menupbBtn.setText(NAME); menupbBtn.setTextSize(20); menupbBtn.setTextColor(android.graphics.Color.WHITE); menupbBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menupbBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ print("Gui hidden") GUIFK.dismiss(); GUIie.dismiss(); showSwitchxBtn(); showDesignzBtn(); } })); layout.addView(menupbBtn); GUIie = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIie.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIie.setAnimationStyle(android.R.style.Animation_Toast); GUIie.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showDesign5Btn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menupbBtn = new Button(ctx); menupbBtn.setText(NAME); menupbBtn.setTextSize(20); menupbBtn.setTextColor(android.graphics.Color.WHITE); menupbBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menupbBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ print("Gui Shown") GUIiooo.dismiss(); GUIiet.dismiss(); showApoc4Btn(); showDesign4Btn(); } })); layout.addView(menupbBtn); GUIiet = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIiet.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIiet.setAnimationStyle(android.R.style.Animation_Toast); GUIiet.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showDesignzBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menupbBtn = new Button(ctx); menupbBtn.setText(NAME); menupbBtn.setTextSize(20); menupbBtn.setTextColor(android.graphics.Color.WHITE); menupbBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menupbBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ print("Gui Shown") showApoc3Btn(); GUIio.dismiss(); GUIioo.dismiss(); showDesign3Btn(); } })); layout.addView(menupbBtn); GUIio = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIio.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIio.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showDesignnBtn() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menupbBtn = new Button(ctx); menupbBtn.setText(NAME); menupbBtn.setTextSize(10); menupbBtn.setTextColor(android.graphics.Color.WHITE); menupbBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menupbBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ print("Gui hidden") GUIFs.dismiss(); GUItn.dismiss(); showDesignBtn2(); } })); layout.addView(menupbBtn); GUItn = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUItn.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUItn.setAnimationStyle(android.R.style.Animation_Toast); GUItn.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showDesignBtn1() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menupbBtn = new Button(ctx); menupbBtn.setText(NAME); menupbBtn.setTextSize(20); menupbBtn.setTextColor(android.graphics.Color.WHITE); menupbBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menupbBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ print("Gui Showing") showApoc1Btn(); showDesignBtn(); GUIim.dismiss(); } })); layout.addView(menupbBtn); GUIim = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIim.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIim.setAnimationStyle(android.R.style.Animation_Toast); GUIim.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showDesignBtn2() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menupbBtn = new Button(ctx); menupbBtn.setText(NAME); menupbBtn.setTextSize(10); menupbBtn.setTextColor(android.graphics.Color.WHITE); menupbBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menupbBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ print("Gui Showing") showApoc2Btn(); showDesignnBtn(); GUIic.dismiss(); } })); layout.addView(menupbBtn); GUIic = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUIic.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUIic.setAnimationStyle(android.R.style.Animation_Toast); GUIic.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 0); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function showMenuBtn1() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn1 = new Button(ctx); menuBtn1.setText(" Combat "); menuBtn1.setTextColor(android.graphics.Color.WHITE); menuBtn1.setBackground(cbg); menuBtn1.getBackground().setAlpha(150); menuBtn1.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui){ mainMenu1(); menuBtn1.setBackground(selected); menuBtn1.getBackground().setAlpha(150); Gui = true; }else{ menu1.dismiss(); menuBtn1.setBackground(cbg); menuBtn1.getBackground().setAlpha(150); Gui = false; } } })); layout.addView(menuBtn1); GUI1 = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI1.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI1.setAnimationStyle(android.R.style.Animation_Toast); GUI1.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 50); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function mainMenu1(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout1 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout.setBackground(cbg); menuLayout.getBackground().setAlpha(150); menuLayout1.setOrientation(1); menuScroll.addView(menuLayout); menuLayout1.addView(menuScroll); var aim = new android.widget.Switch(ctx); aim.setText("AimBot"); aim.setTextColor(android.graphics.Color.RED); aim.setPadding(10, 1, 1, 1); aim.setTextSize(15); aim.setChecked(aimed); aim.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!aimed){ aimbot = true; aimed = true; }else{ aimbot = false; aimed = false; } aim.setChecked(aimed); } })); menuLayout.addView(aim); var nearwarnings = new Switch(ctx); nearwarnings.setText("FightAura"); nearwarnings.setTextColor(android.graphics.Color.RED); nearwarnings.setPadding(10, 3, 3, 3); nearwarnings.setTextSize(15); nearwarnings.setChecked(nearwarninged); nearwarnings.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!nearwarninged){ nearwarningss = true; nearwarninged = true; }else{ nearwarningss = false; nearwarninged = false; } nearwarnings.setChecked(nearwarninged); } })); menuLayout.addView(nearwarnings); var spam = new Switch(ctx); spam.setText("AutoSword"); spam.setTextColor(android.graphics.Color.RED); spam.setPadding(10, 3, 3, 3); spam.setTextSize(15); spam.setChecked(spamed); spam.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!spamed){ spams = true; spamed = true; }else{ spams = false; spamed = false; } spam.setChecked(spamed); } })); menuLayout.addView(spam); var sword = new Switch(ctx); sword.setText("AutoBow"); sword.setTextColor(android.graphics.Color.RED); sword.setPadding(10, 3, 3, 3); sword.setTextSize(15); sword.setChecked(sworded); sword.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sworded){ swords = true; sworded = true; }else{ swords = false; sworded = false; } sword.setChecked(sworded); } })); menuLayout.addView(sword); var speeds = new Switch(ctx); speeds.setText("AutoGap"); speeds.setTextColor(android.graphics.Color.RED); speeds.setPadding(10, 3, 3, 3); speeds.setTextSize(15); speeds.setChecked(speeded); speeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!speeded){ print("only works on players same as the AutoBow and AutoSword") speedss = true; speeded = true; }else{ speedss = false; speeded = false; } speeds.setChecked(speeded); } })); menuLayout.addView(speeds); var legitauras = new Switch(ctx); legitauras.setText("JumpAimBot"); legitauras.setTextColor(android.graphics.Color.RED); legitauras.setPadding(10, 3, 3, 3); legitauras.setTextSize(15); legitauras.setChecked(legitauraed); legitauras.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!legitauraed){ print("Jump aimbot is unique in its way") legitaurass = true; legitauraed = true; }else{ legitaurass = false; legitauraed = false; } legitauras.setChecked(legitauraed); } })); menuLayout.addView(legitauras); var ride = new android.widget.Switch(ctx); ride.setText("HitBox Expander"); ride.setTextColor(android.graphics.Color.RED); ride.setPadding(10, 1, 1, 1); ride.setTextSize(15); ride.setChecked(rided); ride.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!rided){ rides = true; rided = true; }else{ rides = false; rided = false; } ride.setChecked(rided); } })); menuLayout.addView(ride); var pam = new Switch(ctx); pam.setText("DerpHit"); pam.setTextColor(android.graphics.Color.RED); pam.setPadding(10, 3, 3, 3); pam.setTextSize(15); pam.setChecked(pamed); pam.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!pamed){ pams = true; pamed = true; }else{ pams = false; pamed = false; } pam.setChecked(pamed); } })); menuLayout.addView(pam); var ghosts = new Switch(ctx); ghosts.setText("CrouchAttack"); ghosts.setTextColor(android.graphics.Color.RED); ghosts.setPadding(10, 3, 3, 3); ghosts.setTextSize(15); ghosts.setChecked(ghosted); ghosts.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ghosted){ print("Crouch When Using") ghostss = true; ghosted = true; }else{ ghostss = false; ghosted = false; } ghosts.setChecked(ghosted); } })); menuLayout.addView(ghosts); var taptps = new Switch(ctx); taptps.setText("AeralAura"); taptps.setTextColor(android.graphics.Color.RED); taptps.setPadding(10, 3, 3, 3); taptps.setTextSize(15); taptps.setChecked(taptped); taptps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!taptped){ taptpss = true; taptped = true; }else{ taptpss = false; taptped = false; } taptps.setChecked(taptped); } })); menuLayout.addView(taptps); var bowaimbots = new Switch(ctx); bowaimbots.setText("SwordAimBot(Updated)"); bowaimbots.setTextColor(android.graphics.Color.RED); bowaimbots.setPadding(10, 3, 3, 3); bowaimbots.setTextSize(15); bowaimbots.setChecked(bowaimboted); bowaimbots.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!bowaimboted){ print("Works when you hold a sword or axe") bowaimboted = true; bowaimbotss = true; }else{ bowaimboted = false; bowaimbotss = false; } bowaimbots.setChecked(bowaimboted); } })); menuLayout.addView(bowaimbots); var twerks = new Switch(ctx); twerks.setText("Criticals"); twerks.setTextColor(android.graphics.Color.RED); twerks.setPadding(10, 3, 3, 3); twerks.setTextSize(15); twerks.setChecked(twerked); twerks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!twerked){ twerkss = true; twerked = true; }else{ twerkss = false; twerked = false; } twerks.setChecked(twerked); } })); menuLayout.addView(twerks); var bounces = new Switch(ctx); bounces.setText("AimAssist"); bounces.setTextColor(android.graphics.Color.RED); bounces.setPadding(10, 3, 3, 3); bounces.setTextSize(15); bounces.setChecked(bounced); bounces.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!bounced){ bouncess = true; bounced = true; }else{ bouncess = false; bounced = false; } bounces.setChecked(bounced); } })); menuLayout.addView(bounces); var view = new Switch(ctx); view.setText("AntiEgg"); view.setTextColor(android.graphics.Color.RED); view.setPadding(10, 3, 3, 3); view.setTextSize(15); view.setChecked(viewed); view.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!viewed){ print("AntiEgg Activated!") views = true; viewed = true; }else{ views = false; viewed = false; } view.setChecked(viewed); } })); menuLayout.addView(view); var far = new Switch(ctx); far.setText("AntiTnT"); far.setTextColor(android.graphics.Color.RED); far.setPadding(10, 1, 1, 1); far.setTextSize(15); far.setChecked(fared); far.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!fared){ farbot = true; fared = true; }else{ farbot = false; fared = false; } far.setChecked(fared); } })); menuLayout.addView(far); var dodges = new Switch(ctx); dodges.setText("AntiFireBall"); dodges.setTextColor(android.graphics.Color.RED); dodges.setPadding(10, 3, 3, 3); dodges.setTextSize(15); dodges.setChecked(dodged); dodges.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dodged){ print("Ghast fireballs will no longer hit you") dodgess = true; dodged = true; }else{ dodgess = false; dodged = false; } dodges.setChecked(dodged); } })); menuLayout.addView(dodges); var stealths = new Switch(ctx); stealths.setText("SpeedBow"); stealths.setTextColor(android.graphics.Color.RED); stealths.setPadding(10, 3, 3, 3); stealths.setTextSize(15); stealths.setChecked(stealthed); stealths.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!stealthed){ print("when a bow is aquipted you are very fast") stealthss = true; stealthed = true; }else{ stealthss = false; stealthed = false; } stealths.setChecked(stealthed); } })); menuLayout.addView(stealths); var cspeeds = new Switch(ctx); cspeeds.setText("BowAimBot"); cspeeds.setTextColor(android.graphics.Color.RED); cspeeds.setPadding(10, 3, 3, 3); cspeeds.setTextSize(15); cspeeds.setChecked(cspeeded); cspeeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cspeeded){ cspeedss = true; cspeeded = true; }else{ cspeedss = false; cspeeded = false; } cspeeds.setChecked(cspeeded); } })); menuLayout.addView(cspeeds); var snipers = new Switch(ctx); snipers.setText("ReachAura"); snipers.setTextColor(android.graphics.Color.RED); snipers.setPadding(10, 3, 3, 3); snipers.setTextSize(15); snipers.setChecked(snipered); snipers.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!snipered){ print("please turn reach on with it for better results") sniperss = true; snipered = true; }else{ ModPE.resetFov(); sniperss = false; snipered = false; } snipers.setChecked(snipered); } })); menuLayout.addView(snipers); var reachs = new Switch(ctx); reachs.setText("HitAssist"); reachs.setTextColor(android.graphics.Color.RED); reachs.setPadding(10, 3, 3, 3); reachs.setTextSize(15); reachs.setChecked(reached); reachs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!reached){ print("this one is for melee") reachss = true; reached = true; }else{ reachss = false; reached = false; } reachs.setChecked(reached); } })); menuLayout.addView(reachs); var jumpspeeds = new Switch(ctx); jumpspeeds.setText("HoverAura"); jumpspeeds.setTextColor(android.graphics.Color.RED); jumpspeeds.setPadding(10, 3, 3, 3); jumpspeeds.setTextSize(15); jumpspeeds.setChecked(jumpspeeded); jumpspeeds.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jumpspeeded){ jumpspeedss = true; jumpspeeded = true; }else{ jumpspeedss = false; jumpspeeded = false; } jumpspeeds.setChecked(jumpspeeded); } })); menuLayout.addView(jumpspeeds); var velocs = new Switch(ctx); velocs.setText("PacketHit"); velocs.setTextColor(android.graphics.Color.RED); velocs.setPadding(10, 3, 3, 3); velocs.setTextSize(15); velocs.setChecked(veloced); velocs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!veloced){ print("You Do More damage to players and every hit to a mob is almost a critical") print("High chance to get detected by anticheat") velocss = true; veloced = true; }else{ velocss = false; veloced = false; } velocs.setChecked(veloced); } })); menuLayout.addView(velocs); var csteps = new Switch(ctx); csteps.setText("BounceStrafe"); csteps.setTextColor(android.graphics.Color.RED); csteps.setPadding(10, 3, 3, 3); csteps.setTextSize(15); csteps.setChecked(csteped); csteps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!csteped){ print("This Strafe Can counter some hackers") cstepss = true; csteped = true; }else{ cstepss = false; csteped = false; } csteps.setChecked(csteped); } })); menuLayout.addView(csteps); var xphits = new Switch(ctx); xphits.setText("Xp-Hit"); xphits.setTextColor(android.graphics.Color.RED); xphits.setPadding(10, 3, 3, 3); xphits.setTextSize(15); xphits.setChecked(xphited); xphits.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xphited){ print("you get XP by fighting") xphitss = true; xphited = true; }else{ xphitss = false; xphited = false; } xphits.setChecked(xphited); } })); menuLayout.addView(xphits); var forcedestroys = new Switch(ctx); forcedestroys.setText("CrossHair"); forcedestroys.setTextColor(android.graphics.Color.RED); forcedestroys.setPadding(10, 3, 3, 3); forcedestroys.setTextSize(15); forcedestroys.setChecked(forcedestroyed); forcedestroys.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!forcedestroyed){ showCrossBtn(); forcedestroyss = true; forcedestroyed = true; }else{ GUIv.dismiss(); forcedestroyss = false; forcedestroyed = false; } forcedestroys.setChecked(forcedestroyed); } })); menuLayout.addView(forcedestroys); var dolphins = new Switch(ctx); dolphins.setText("HopAura"); dolphins.setTextColor(android.graphics.Color.RED); dolphins.setPadding(10, 3, 3, 3); dolphins.setTextSize(15); dolphins.setChecked(dolphined); dolphins.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dolphined){ dolphinss = true; dolphined = true; }else{ dolphinss = false; dolphined = false; } dolphins.setChecked(dolphined); } })); menuLayout.addView(dolphins); var ndglides = new Switch(ctx); ndglides.setText("[KeyBind] Reach"); ndglides.setTextColor(android.graphics.Color.RED); ndglides.setPadding(10, 3, 3, 3); ndglides.setTextSize(15); ndglides.setChecked(ndglideed); ndglides.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ndglideed){ showAimBtn(); ndglidess = true; ndglideed = true; }else{ GUIo.dismiss(); ndglidess = false; ndglideed = false; } ndglides.setChecked(ndglideed); } })); menuLayout.addView(ndglides); var sglides = new Switch(ctx); sglides.setText("WallAimBot"); sglides.setTextColor(android.graphics.Color.RED); sglides.setPadding(10, 3, 3, 3); sglides.setTextSize(15); sglides.setChecked(sglideed); sglides.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sglideed){ print("Stay Against a wall for aimbot") sglidess = true; sglideed = true; }else{ sglidess = false; sglideed = false; } sglides.setChecked(sglideed); } })); menuLayout.addView(sglides); var dmgglides = new Switch(ctx); dmgglides.setText("SideAura"); dmgglides.setTextColor(android.graphics.Color.RED); dmgglides.setPadding(10, 3, 3, 3); dmgglides.setTextSize(15); dmgglides.setChecked(dmgglideed); dmgglides.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dmgglideed){ print("you will target peoples side in combat") dmgglidess = true; dmgglideed = true; }else{ dmgglidess = false; dmgglideed = false; } dmgglides.setChecked(dmgglideed); } })); menuLayout.addView(dmgglides); var elevators = new Switch(ctx); elevators.setText("DodgeAura(Remake)"); elevators.setTextColor(android.graphics.Color.RED); elevators.setPadding(10, 3, 3, 3); elevators.setTextSize(15); elevators.setChecked(elevatored); elevators.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!elevatored){ print("its OP if you have fightaura and reach on with it") elevatored = true; }else{ elevatored = false; } elevators.setChecked(elevatored); } })); menuLayout.addView(elevators); var fastbreaks = new Switch(ctx); fastbreaks.setText("JetAura"); fastbreaks.setTextColor(android.graphics.Color.RED); fastbreaks.setPadding(10, 3, 3, 3); fastbreaks.setTextSize(15); fastbreaks.setChecked(fastbreaked); fastbreaks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!fastbreaked){ print("Works on LBSG, can destroy groups of enemys") fastbreakss = true; fastbreaked = true; }else{ fastbreakss = false; fastbreaked = false; } fastbreaks.setChecked(fastbreaked); } })); menuLayout.addView(fastbreaks); var airjumps = new Switch(ctx); airjumps.setText("StalkStrafe"); airjumps.setTextColor(android.graphics.Color.RED); airjumps.setPadding(10, 3, 3, 3); airjumps.setTextSize(15); airjumps.setChecked(airjumped); airjumps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!airjumped){ print("This is a new strafe,it slowly circles and follows a entity then stops right behind the target") airjumped = true; }else{ airjumped = false; } airjumps.setChecked(airjumped); } })); menuLayout.addView(airjumps); var tapreachs = new Switch(ctx); tapreachs.setText("ForceTp"); tapreachs.setTextColor(android.graphics.Color.RED); tapreachs.setPadding(10, 3, 3, 3); tapreachs.setTextSize(15); tapreachs.setChecked(tapreached); tapreachs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!tapreached){ print("by tapping the ground you tp to a player within 60 block range") print("game will glitch out if no player in range when used") tapreachss = true; tapreached = true; }else{ tapreachss = false; tapreached = false; } tapreachs.setChecked(tapreached); } })); menuLayout.addView(tapreachs); var vets = new Switch(ctx); vets.setText("StanceAura"); vets.setTextColor(android.graphics.Color.RED); vets.setPadding(10, 3, 3, 3); vets.setTextSize(15); vets.setChecked(veted); vets.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!veted){ print("turn aimbot and reach on, and this hack will keep you at distance") print("while players struggle to get to you") vetss = true; veted = true; }else{ vetss = false; veted = false; } vets.setChecked(veted); } })); menuLayout.addView(vets); var javas = new Switch(ctx); javas.setText("FlyAura"); javas.setTextColor(android.graphics.Color.RED); javas.setPadding(10, 3, 3, 3); javas.setTextSize(15); javas.setChecked(javaed); javas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!javaed){ print("if someone is in the air,this is the hack for you") javass = true; javaed = true; }else{ javass = false; javaed = false; } javas.setChecked(javaed); } })); menuLayout.addView(javas); var mcps = new Switch(ctx); mcps.setText("Pc-TpAura"); mcps.setTextColor(android.graphics.Color.RED); mcps.setPadding(10, 3, 3, 3); mcps.setTextSize(15); mcps.setChecked(mcped); mcps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!mcped){ print("this hack simulates pc tpaura, bypasses crazed") mcpss = true; mcped = true; }else{ mcpss = false; mcped = false; } mcps.setChecked(mcped); } })); menuLayout.addView(mcps); var sexs = new Switch(ctx); sexs.setText("RapeAura"); sexs.setTextColor(android.graphics.Color.RED); sexs.setPadding(10, 3, 3, 3); sexs.setTextSize(15); sexs.setChecked(sexed); sexs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sexed){ sexss = true; sexed = true; }else{ sexss = false; sexed = false; } sexs.setChecked(sexed); } })); menuLayout.addView(sexs); var fots = new Switch(ctx); fots.setText("[AI]PvP-Bot"); fots.setTextColor(android.graphics.Color.RED); fots.setPadding(10, 3, 3, 3); fots.setTextSize(15); fots.setChecked(foted); fots.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!foted){ print("it doesnt pvp players and doesent bypass lbsg, the thing has its own way to deal with pvpers") print("it will mess with pvpers by making it hard for them to kill it") fotss = true; foted = true; }else{ fotss = false; foted = false; } fots.setChecked(foted); } })); menuLayout.addView(fots); var eqs = new Switch(ctx); eqs.setText("JetAura+"); eqs.setTextColor(android.graphics.Color.RED); eqs.setPadding(10, 3, 3, 3); eqs.setTextSize(15); eqs.setChecked(eqed); eqs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!eqed){ print("it is JetAura but enhanced and better, bypasses lbsg") eqss = true; eqed = true; }else{ eqss = false; eqed = false; } eqs.setChecked(eqed); } })); menuLayout.addView(eqs); var mobaimbots = new Switch(ctx); mobaimbots.setText("MobAimBot"); mobaimbots.setTextColor(android.graphics.Color.RED); mobaimbots.setPadding(10, 3, 3, 3); mobaimbots.setTextSize(15); mobaimbots.setChecked(mobaimboted); mobaimbots.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!mobaimboted){ mobaimboted = true; mobaimbotss = true; } else { mobaimboted = false; mobaimbotss = false; } mobaimbots.setChecked(mobaimboted); } })); menuLayout.addView(mobaimbots); var teles = new Switch(ctx); teles.setText("CombatHop"); teles.setTextColor(android.graphics.Color.RED); teles.setPadding(10, 3, 3, 3); teles.setTextSize(15); teles.setChecked(teled); teles.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!teled){ print("This hack bypasses lbsg and is overpowered in combat") teless = true; teled = true; }else{ teless = false; teled = false; } teles.setChecked(teled); } })); menuLayout.addView(teles); var hitjumps = new Switch(ctx); hitjumps.setText("AirAura"); hitjumps.setTextColor(android.graphics.Color.RED); hitjumps.setPadding(10, 3, 3, 3); hitjumps.setTextSize(15); hitjumps.setChecked(hitjumped); hitjumps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!hitjumped){ hitjumpss = true; hitjumped = true; }else{ hitjumpss = false; hitjumped = false; } hitjumps.setChecked(hitjumped); } })); menuLayout.addView(hitjumps); var auto = new Switch(ctx); auto.setText("CombatStrafe"); auto.setTextColor(android.graphics.Color.RED); auto.setPadding(10, 3, 3, 3); auto.setTextSize(15); auto.setChecked(autoed); auto.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!autoed){ autos = true; autoed = true; }else{ autos = false; autoed = false; } auto.setChecked(autoed); } })); menuLayout.addView(auto); var fps = new Switch(ctx); fps.setText("SlashAura"); fps.setTextColor(android.graphics.Color.RED); fps.setPadding(10, 3, 3, 3); fps.setTextSize(15); fps.setChecked(fped); fps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!fped){ fpss = true; fped = true; }else{ fpss = false; fped = false; } fps.setChecked(fped); } })); menuLayout.addView(fps); var ncs = new Switch(ctx); ncs.setText("LiquidFight"); ncs.setTextColor(android.graphics.Color.RED); ncs.setPadding(10, 3, 3, 3); ncs.setTextSize(15); ncs.setChecked(nced); ncs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!nced){ print("Another Water Combat hack, this is mostly untested") ncss = true; nced = true; }else{ ncss = false; nced = false; } ncs.setChecked(nced); } })); menuLayout.addView(ncs); var pzs = new Switch(ctx); pzs.setText("Accuracy+"); pzs.setTextColor(android.graphics.Color.RED); pzs.setPadding(10, 3, 3, 3); pzs.setTextSize(15); pzs.setChecked(pzed); pzs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!pzed){ print("this is just like AimAssist exept better, i suggest using both") print("The hack makes your chance of hitting a player with a bow Higher") pzss = true; pzed = true; }else{ pzss = false; pzed = false; } pzs.setChecked(pzed); } })); menuLayout.addView(pzs); var gas = new Switch(ctx); gas.setText("JumpAura"); gas.setTextColor(android.graphics.Color.RED); gas.setPadding(10, 3, 3, 3); gas.setTextSize(15); gas.setChecked(gaed); gas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gaed){ print("during combat it Jumps Above a player and lands randomly around them") gass = true; gaed = true; }else{ gass = false; gaed = false; } gas.setChecked(gaed); } })); menuLayout.addView(gas); var dhs = new Switch(ctx); dhs.setText("CircleAura"); dhs.setTextColor(android.graphics.Color.RED); dhs.setPadding(10, 3, 3, 3); dhs.setTextSize(15); dhs.setChecked(dhed); dhs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dhed){ dhss = true; dhed = true; }else{ dhss = false; dhed = false; } dhs.setChecked(dhed); } })); menuLayout.addView(dhs); var ips = new Switch(ctx); ips.setText("AimBox"); ips.setTextColor(android.graphics.Color.RED); ips.setPadding(10, 3, 3, 3); ips.setTextSize(15); ips.setChecked(iped); ips.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!iped){ print("its a aimbot that moves left and right so fast you can hit players without tapping them") print("its kinda like hitbox expander but without the hitbox expand") ipss = true; iped = true; }else{ ipss = false; iped = false; } ips.setChecked(iped); } })); menuLayout.addView(ips); var jks = new Switch(ctx); jks.setText("KillAura"); jks.setTextColor(android.graphics.Color.RED); jks.setPadding(10, 3, 3, 3); jks.setTextSize(15); jks.setChecked(jked); jks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jked){ print("Do You Remember Krampus KillAura?") jkss = true; jked = true; }else{ jkss = false; jked = false; } jks.setChecked(jked); } })); menuLayout.addView(jks); var kramps = new Switch(ctx); kramps.setText("SuperDodge"); kramps.setTextColor(android.graphics.Color.RED); kramps.setPadding(10, 3, 3, 3); kramps.setTextSize(15); kramps.setChecked(kramped); kramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!kramped){ print("this is a diffrent version of DodgeAura, does not bypass lbsg") krampss = true; kramped = true; }else{ krampss = false; kramped = false; } kramps.setChecked(kramped); } })); menuLayout.addView(kramps); var effecs = new Switch(ctx); effecs.setText("ZigZagAura"); effecs.setTextColor(android.graphics.Color.RED); effecs.setPadding(10, 3, 3, 3); effecs.setTextSize(15); effecs.setChecked(effeced); effecs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!effeced){ print("it zigzags left and right front and back and makes it hard for a player to fight you") effecss = true; effeced = true; }else{ effecss = false; effeced = false; } effecs.setChecked(effeced); } })); menuLayout.addView(effecs); var daxs = new Switch(ctx); daxs.setText("GlideAura"); daxs.setTextColor(android.graphics.Color.RED); daxs.setPadding(10, 3, 3, 3); daxs.setTextSize(15); daxs.setChecked(daxed); daxs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!daxed){ print("while attacking its gliding around the victim") daxss = true; daxed = true; }else{ daxss = false; daxed = false; } daxs.setChecked(daxed); } })); menuLayout.addView(daxs); var aos = new Switch(ctx); aos.setText("BeeAura"); aos.setTextColor(android.graphics.Color.RED); aos.setPadding(10, 3, 3, 3); aos.setTextSize(15); aos.setChecked(aoed); aos.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!aoed){ print("simulates your movements to a hostile bee, couldnt decide on a better name :/") aoss = true; aoed = true; }else{ aoss = false; aoed = false; } aos.setChecked(aoed); } })); menuLayout.addView(aos); var bats = new Switch(ctx); bats.setText("ElevatorAura"); bats.setTextColor(android.graphics.Color.RED); bats.setPadding(10, 3, 3, 3); bats.setTextSize(15); bats.setChecked(bated); bats.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!bated){ batss = true; bated = true; }else{ batss = false; bated = false; } bats.setChecked(bated); } })); menuLayout.addView(bats); var tpdods = new Switch(ctx); tpdods.setText("TpDodge"); tpdods.setTextColor(android.graphics.Color.RED); tpdods.setPadding(10, 3, 3, 3); tpdods.setTextSize(15); tpdods.setChecked(tpdoded); tpdods.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!tpdoded){ print("its a new arrowdodge, when a arrow is near you tp to nearest entity") tpdodss = true; tpdoded = true; }else{ tpdodss = false; tpdoded = false; } tpdods.setChecked(tpdoded); } })); menuLayout.addView(tpdods); var snow = new Switch(ctx); snow.setText("ConfuseAura"); snow.setTextColor(android.graphics.Color.RED); snow.setPadding(10, 3, 3, 3); snow.setTextSize(15); snow.setChecked(snowed); snow.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!snowed){ print("its so confusing that people cant predict what it does") print("i cant figure out a good name :(") snows = true; snowed = true; }else{ snows = false; snowed = false; } snow.setChecked(snowed); } })); menuLayout.addView(snow); var day = new Switch(ctx); day.setText("WaterAura"); day.setTextColor(android.graphics.Color.RED); day.setPadding(10, 3, 3, 3); day.setTextSize(15); day.setChecked(dayed); day.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dayed){ print("this hack is good for water fights") days = true; dayed = true; }else{ days = false; dayed = false; } day.setChecked(dayed); } })); menuLayout.addView(day); var pas = new Switch(ctx); pas.setText("Pot-Help"); pas.setTextColor(android.graphics.Color.RED); pas.setPadding(10, 3, 3, 3); pas.setTextSize(15); pas.setChecked(paed); pas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!paed){ print("When you low on health your head snaps to the ground") pass = true; paed = true; }else{ pass = false; paed = false; } pas.setChecked(paed); } })); menuLayout.addView(pas); var pests = new Switch(ctx); pests.setText("[Keybind]Aimbot"); pests.setTextColor(android.graphics.Color.RED); pests.setPadding(10, 3, 3, 3); pests.setTextSize(15); pests.setChecked(pested); pests.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!pested){ showLookBtn(); pestss = true; pested = true; }else{ GUIF.dismiss(); pestss = false; pested = false; } pests.setChecked(pested); } })); menuLayout.addView(pests); var now = new Switch(ctx); now.setText("PC-Tpaura(Revamped)"); now.setTextColor(android.graphics.Color.RED); now.setPadding(10, 3, 3, 3); now.setTextSize(15); now.setChecked(nowed); now.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!nowed){ print("idk what it does i tried testing but aimbot lags me") nows = true; nowed = true; }else{ nows = false; nowed = false; } now.setChecked(nowed); } })); menuLayout.addView(now); var crests = new Switch(ctx); crests.setText("[Keybind] AntiKB"); crests.setTextColor(android.graphics.Color.RED); crests.setPadding(10, 3, 3, 3); crests.setTextSize(15); crests.setChecked(crested); crests.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!crested){ showKbBtn(); crestss = true; crested = true; }else{ GUIT.dismiss(); crestss = false; crested = false; } crests.setChecked(crested); } })); menuLayout.addView(crests); var agp = new Switch(ctx); agp.setText("[Keybind] Hitbox"); agp.setTextColor(android.graphics.Color.RED); agp.setPadding(10, 3, 3, 3); agp.setTextSize(15); agp.setChecked(agped); agp.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!agped){ showBoxBtn(); agps = true; agped = true; }else{ GUIJ.dismiss(); agps = false; agped = false; } agp.setChecked(agped); } })); menuLayout.addView(agp); var sake = new Switch(ctx); sake.setText("Emergency Aimbot"); sake.setTextColor(android.graphics.Color.RED); sake.setPadding(10, 3, 3, 3); sake.setTextSize(15); sake.setChecked(saked); sake.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!saked){ print("This Is A Aimbot That Activates when your low on health!") sakes = true; saked = true; }else{ sakes = false; saked = false; } sake.setChecked(saked); } })); menuLayout.addView(sake); var rads = new Switch(ctx); rads.setText("AntiKB"); rads.setTextColor(android.graphics.Color.RED); rads.setPadding(10, 3, 3, 3); rads.setTextSize(15); rads.setChecked(radsed); rads.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!radsed){ radss = true; radsed = true; }else{ radss = false; radsed = false; } rads.setChecked(radsed); } })); menuLayout.addView(rads); var xramps = new Switch(ctx); xramps.setText("LagAura"); xramps.setTextColor(android.graphics.Color.RED); xramps.setPadding(10, 3, 3, 3); xramps.setTextSize(15); xramps.setChecked(xramped); xramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xramped){ print("This Hack Creates A Fake Lag On You!") noCreeper1 = true; noCreeper2(); ModPE.setGameSpeed(50) xrampss = true; xramped = true; }else{ noCreeper1 = false; noCreeper3(); ModPE.setGameSpeed(20) xrampss = false; xramped = false; } xramps.setChecked(xramped); } })); menuLayout.addView(xramps); var eramps = new Switch(ctx); eramps.setText("TP-X-Z"); eramps.setTextColor(android.graphics.Color.RED); eramps.setPadding(10, 3, 3, 3); eramps.setTextSize(15); eramps.setChecked(eramped); eramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!eramped){ erampss = true; eramped = true; }else{ erampss = false; eramped = false; } eramps.setChecked(eramped); } })); menuLayout.addView(eramps); var ztramps = new Switch(ctx); ztramps.setText("Op-Tp"); ztramps.setTextColor(android.graphics.Color.RED); ztramps.setPadding(10, 3, 3, 3); ztramps.setTextSize(15); ztramps.setChecked(ztramped); ztramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ztramped){ print("This Is A New Tpaura!") ztrampss = true; ztramped = true; }else{ ztrampss = false; ztramped = false; } ztramps.setChecked(ztramped); } })); menuLayout.addView(ztramps); var button = new android.widget.Button(ctx); button.setText('Reach'); button.setTextColor(android.graphics.Color.RED); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Level.setGameMode(1) Player.setCanFly(0) } })); menuLayout.addView(button); menu1 = new android.widget.PopupWindow(menuLayout1, ctx.getWindowManager().getDefaultDisplay().getWidth()/5, ctx.getWindowManager().getDefaultDisplay().getHeight()/1); menu1.setAnimationStyle(android.R.style.Animation_Translucent); menu1.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 148, 50); }catch(error){ Toast.makeText(ctx, "Template Error: " + error, 1).show(); } }})); } function showMenuBtn4() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn4 = new Button(ctx); menuBtn4.setText(" Player "); menuBtn4.setTextColor(android.graphics.Color.WHITE); menuBtn4.setBackground(pbg); menuBtn4.getBackground().setAlpha(150); menuBtn4.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui1){ mainMenu4(); menuBtn4.setBackground(selected); menuBtn4.getBackground().setAlpha(150); Gui1 = true; }else{ menu2.dismiss(); menuBtn4.setBackground(pbg); menuBtn4.getBackground().setAlpha(150); Gui1 = false; } } })); layout.addView(menuBtn4); GUI4 = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI4.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI4.setAnimationStyle(android.R.style.Animation_Toast); GUI4.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 98); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function mainMenu4(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout4 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout.setBackground(pbg); menuLayout.getBackground().setAlpha(150); menuLayout4.setOrientation(1); menuScroll.addView(menuLayout); menuLayout4.addView(menuScroll); var button = new android.widget.Button(ctx); button.setText('Survival'); button.setTextColor(android.graphics.Color.BLUE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Level.setGameMode(0) } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Creative'); button.setTextColor(android.graphics.Color.BLUE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Level.setGameMode(1) } })); menuLayout.addView(button); var nofalls = new Switch(ctx); nofalls.setText("Bypass-Grief"); nofalls.setTextColor(android.graphics.Color.BLUE); nofalls.setPadding(10, 3, 3, 3); nofalls.setTextSize(15); nofalls.setChecked(nofalled); nofalls.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!nofalled){ print("no this isnt your typical forcedestroy, this one is made by me") nofallss = true; nofalled = true; }else{ nofallss = false; nofalled = false; } nofalls.setChecked(nofalled); } })); menuLayout.addView(nofalls); var criticaltrailss = new Switch(ctx); criticaltrailss.setText("Bypass-Nuke"); criticaltrailss.setTextColor(android.graphics.Color.BLUE); criticaltrailss.setPadding(10, 3, 3, 3); criticaltrailss.setTextSize(15); criticaltrailss.setChecked(criticaltrailsed); criticaltrailss.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!criticaltrailsed){ criticaltrailsss = true; criticaltrailsed = true; }else{ criticaltrailsss = false; criticaltrailsed = false; } criticaltrailss.setChecked(criticaltrailsed); } })); menuLayout.addView(criticaltrailss); var afks = new Switch(ctx); afks.setText("AntiAfk"); afks.setTextColor(android.graphics.Color.BLUE); afks.setPadding(10, 3, 3, 3); afks.setTextSize(15); afks.setChecked(afked); afks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!afked){ print("this is not derp, just turn this on when your afk to avoid being kicked from a server for afk") afkss = true; afked = true; }else{ afkss = false; afked = false; } afks.setChecked(afked); } })); menuLayout.addView(afks); var ddos = new Switch(ctx); ddos.setText("Kill/Death Counter"); ddos.setTextColor(android.graphics.Color.BLUE); ddos.setPadding(10, 3, 3, 3); ddos.setTextSize(15); ddos.setChecked(ddoed); ddos.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ddoed){ print("Most likely it wouldnt work on a server") ddoss = true; ddoed = true; }else{ ddoss = false; ddoed = false; } ddos.setChecked(ddoed); } })); menuLayout.addView(ddos); var autoclimbs = new Switch(ctx); autoclimbs.setText("SmoothCam"); autoclimbs.setTextColor(android.graphics.Color.BLUE); autoclimbs.setPadding(10, 3, 3, 3); autoclimbs.setTextSize(15); autoclimbs.setChecked(autoclimbed); autoclimbs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!autoclimbed){ print("this fixes that camera glitch when you move your head") autoclimbss = true; autoclimbed = true; }else{ autoclimbss = false; autoclimbed = false; } autoclimbs.setChecked(autoclimbed); } })); menuLayout.addView(autoclimbs); var fullbrights = new Switch(ctx); fullbrights.setText("Fullbright"); fullbrights.setTextColor(android.graphics.Color.BLUE); fullbrights.setPadding(10, 3, 3, 3); fullbrights.setTextSize(15); fullbrights.setChecked(fullbrighted); fullbrights.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!fullbrighted){ Entity.addEffect(Player.getEntity(), MobEffect.nightVision, 999999, 100, false, false); effect=true; fullbrightss = true; fullbrighted = true; }else{ Block.setLightLevel(0, 0); fullbrightss = false; fullbrighted = false; } fullbrights.setChecked(fullbrighted); } })); menuLayout.addView(fullbrights); var heart = new Switch(ctx); heart.setText("FriendAdder"); heart.setTextColor(android.graphics.Color.BLUE); heart.setPadding(10, 3, 3, 3); heart.setTextSize(15); heart.setChecked(hearted); heart.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!hearted){ print("Hit somebody to friend them and use hitbox expander to unfriend") hearts = true; hearted = true; }else{ hearts = false; hearted = false; } heart.setChecked(hearted); } })); menuLayout.addView(heart); var cafe = new Switch(ctx); cafe.setText("OverStep"); cafe.setTextColor(android.graphics.Color.BLUE); cafe.setPadding(10, 3, 3, 3); cafe.setTextSize(15); cafe.setChecked(cafed); cafe.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cafed){ print("You Cant Turn It Off Unless You Die") cafes = true; cafed = true; }else{ cafes = false; cafed = false; } cafe.setChecked(cafed); } })); menuLayout.addView(cafe); var hosts = new Switch(ctx); hosts.setText("YourHealth"); hosts.setTextColor(android.graphics.Color.BLUE); hosts.setPadding(10, 3, 3, 3); hosts.setTextSize(15); hosts.setChecked(hosted); hosts.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!hosted){ hostss = true; hosted = true; }else{ hostss = false; hosted = false; } hosts.setChecked(hosted); } })); menuLayout.addView(hosts); var fas = new Switch(ctx); fas.setText("Always-Day"); fas.setTextColor(android.graphics.Color.BLUE); fas.setPadding(10, 3, 3, 3); fas.setTextSize(15); fas.setChecked(faed); fas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!faed){ fass = true; faed = true; }else{ fass = false; faed = false; } fas.setChecked(faed); } })); menuLayout.addView(fas); var xsteps = new Switch(ctx); xsteps.setText("Godmode"); xsteps.setTextColor(android.graphics.Color.BLUE); xsteps.setPadding(10, 3, 3, 3); xsteps.setTextSize(15); xsteps.setChecked(xsteped); xsteps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xsteped){ print("Godmode only works offline") xstepss = true; xsteped = true; }else{ xstepss = false; xsteped = false; } xsteps.setChecked(xsteped); } })); menuLayout.addView(xsteps); var aramps = new Switch(ctx); aramps.setText("Health Indicator"); aramps.setTextColor(android.graphics.Color.BLUE); aramps.setPadding(10, 3, 3, 3); aramps.setTextSize(15); aramps.setChecked(aramped); aramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!aramped){ print("Shows The Health Of the Nearest Entity!") arampss = true; aramped = true; }else{ arampss = false; aramped = false; } aramps.setChecked(aramped); } })); menuLayout.addView(aramps); var vramps = new Switch(ctx); vramps.setText("Velocity Indicator"); vramps.setTextColor(android.graphics.Color.BLUE); vramps.setPadding(10, 3, 3, 3); vramps.setTextSize(15); vramps.setChecked(vramped); vramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!vramped){ print("Shows The Velocity Of A Enemy") vrampss = true; vramped = true; }else{ vrampss = false; vramped = false; } vramps.setChecked(vramped); } })); menuLayout.addView(vramps); var zramps = new Switch(ctx); zramps.setText("Anti-Hunger"); zramps.setTextColor(android.graphics.Color.BLUE); zramps.setPadding(10, 3, 3, 3); zramps.setTextSize(15); zramps.setChecked(zramped); zramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!zramped){ print("Single Player Only") zrampss = true; zramped = true; }else{ zrampss = false; zramped = false; } zramps.setChecked(zramped); } })); menuLayout.addView(zramps); var iramps = new Switch(ctx); iramps.setText("FastEat"); iramps.setTextColor(android.graphics.Color.BLUE); iramps.setPadding(10, 3, 3, 3); iramps.setTextSize(15); iramps.setChecked(iramped); iramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!iramped){ print("You Eat Food Faster") Fasteat1 = true; Fasteat2(id); irampss = true; iramped = true; }else{ Fasteat1 = false; Fasteat3(id); irampss = false; iramped = false; } iramps.setChecked(iramped); } })); menuLayout.addView(iramps); var zxramps = new Switch(ctx); zxramps.setText("Spammer"); zxramps.setTextColor(android.graphics.Color.BLUE); zxramps.setPadding(10, 3, 3, 3); zxramps.setTextSize(15); zxramps.setChecked(zxramped); zxramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!zxramped){ print("Spams Your coordinates in chat") zxrampss = true; zxramped = true; }else{ zxrampss = false; zxramped = false; } zxramps.setChecked(zxramped); } })); menuLayout.addView(zxramps); menu2 = new android.widget.PopupWindow(menuLayout4, ctx.getWindowManager().getDefaultDisplay().getWidth()/5, ctx.getWindowManager().getDefaultDisplay().getHeight()/1); menu2.setAnimationStyle(android.R.style.Animation_Translucent); menu2.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 148, 98); }catch(error){ Toast.makeText(ctx, "Template Error: " + error, 1).show(); } }})); } function showMenuBtn5() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn5 = new Button(ctx); menuBtn5.setText(" Motion "); menuBtn5.setTextColor(android.graphics.Color.WHITE); menuBtn5.setBackground(mbg); menuBtn5.getBackground().setAlpha(150); menuBtn5.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui2){ mainMenu5(); menuBtn5.setBackground(selected); menuBtn5.getBackground().setAlpha(150); Gui2 = true; }else{ menu3.dismiss(); menuBtn5.setBackground(mbg); menuBtn5.getBackground().setAlpha(150); Gui2 = false; } } })); layout.addView(menuBtn5); GUI5 = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI5.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI5.setAnimationStyle(android.R.style.Animation_Toast); GUI5.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 146); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function mainMenu5(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout5 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout.setBackground(mbg); menuLayout.getBackground().setAlpha(150); menuLayout5.setOrientation(1); menuScroll.addView(menuLayout); menuLayout5.addView(menuScroll); var gp = new Switch(ctx); gp.setText("SprintAid"); gp.setTextColor(android.graphics.Color.GREEN); gp.setPadding(10, 3, 3, 3); gp.setTextSize(15); gp.setChecked(gped); gp.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gped){ gps = true; gped = true; }else{ gps = false; gped = false; } gp.setChecked(gped); } })); menuLayout.addView(gp); var menuBtn = new Button(ctx); menuBtn.setTextColor(android.graphics.Color.GREEN); menuBtn.getBackground().setAlpha(150); menuBtn.setText('Esp'); menuBtn.setTextSize(15); menuBtn.setPadding(10, 10, 10, 10); menuBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); menuBtn.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!esp){ esp = true; }else{ esp = false; } } })); menuLayout.addView(menuBtn); var water = new Switch(ctx); water.setText("Jesus-Bypass"); water.setTextColor(android.graphics.Color.GREEN); water.setPadding(10, 3, 3, 3); water.setTextSize(15); water.setChecked(watered); water.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!watered){ print("this jesus is more like a fast swim") waters = true; watered = true; }else{ waters = false; watered = false; } water.setChecked(watered); } })); menuLayout.addView(water); var setpacks = new Switch(ctx); setpacks.setText("Jesus(NEW)"); setpacks.setTextColor(android.graphics.Color.GREEN); setpacks.setPadding(10, 3, 3, 3); setpacks.setTextSize(15); setpacks.setChecked(setpacked); setpacks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!setpacked){ print("This is Better Jesus :)") setpackss = true; setpacked = true; }else{ setpackss = false; setpacked = false; } setpacks.setChecked(setpacked); } })); menuLayout.addView(setpacks); var lad = new Switch(ctx); lad.setText("BypassGlide"); lad.setTextColor(android.graphics.Color.GREEN); lad.setPadding(10, 3, 3, 3); lad.setTextSize(15); lad.setChecked(laded); lad.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!laded){ lads = true; laded = true; }else{ lads = false; laded = false; } lad.setChecked(laded); } })); menuLayout.addView(lad); var godaimbots = new Switch(ctx); godaimbots.setText("Bypass Glide(NEW)"); godaimbots.setTextColor(android.graphics.Color.GREEN); godaimbots.setPadding(10, 3, 3, 3); godaimbots.setTextSize(15); godaimbots.setChecked(godaimboted); godaimbots.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!godaimboted){ print("This Glide Is Made By Me") godaimboted = true; godaimbotss = true; } else { godaimboted = false; godaimbotss = false; } godaimbots.setChecked(godaimboted); } })); menuLayout.addView(godaimbots); var safe = new Switch(ctx); safe.setText("TwistAura"); safe.setTextColor(android.graphics.Color.GREEN); safe.setPadding(10, 3, 3, 3); safe.setTextSize(15); safe.setChecked(safed); safe.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!safed){ apoc("Just Jump To activate") safes = true; safed = true; }else{ safes = false; safed = false; } safe.setChecked(safed); } })); menuLayout.addView(safe); var tests = new Switch(ctx); tests.setText("WaterDancer"); tests.setTextColor(android.graphics.Color.GREEN); tests.setPadding(10, 3, 3, 3); tests.setTextSize(15); tests.setChecked(tested); tests.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!tested){ testss = true; tested = true; }else{ testss = false; tested = false; } tests.setChecked(tested); } })); menuLayout.addView(tests); var potion = new Switch(ctx); potion.setText("AntiFallDamage"); potion.setTextColor(android.graphics.Color.GREEN); potion.setPadding(10, 3, 3, 3); potion.setTextSize(15); potion.setChecked(potioned); potion.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!potioned){ print("it will decrease some fall damage on servers") potions = true; potioned = true; }else{ potions = false; potioned = false; } potion.setChecked(potioned); } })); menuLayout.addView(potion); var grapples = new Switch(ctx); grapples.setText("UnWaterWalk"); grapples.setTextColor(android.graphics.Color.GREEN); grapples.setPadding(10, 3, 3, 3); grapples.setTextSize(15); grapples.setChecked(grappleed); grapples.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!grappleed){ print("lets you walk on the waters floor") grappless = true; grappleed = true; }else{ grappless = false; grappleed = false; } grapples.setChecked(grappleed); } })); menuLayout.addView(grapples); var follows = new Switch(ctx); follows.setText("[AI]BETA!"); follows.setTextColor(android.graphics.Color.GREEN); follows.setPadding(10, 3, 3, 3); follows.setTextSize(15); follows.setChecked(followed); follows.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ apoc("Alright here's the list of what the AI does-autowalks-auto turns-autoswims-trys to team when 2 blocks near player-Rage quits after dieing-runs when entity enters 30 blocks of AI-autojumps over blocks"); apoc("Alright here's the list of what the AI does-autowalks-auto turns-autoswims-trys to team when 2 blocks near player-Rage quits after dieing-runs when entity enters 30 blocks of AI-autojumps over blocks"); if(!followed){ followss = true; followed = true; }else{ followss = false; followed = false; } follows.setChecked(followed); } })); menuLayout.addView(follows); var xps = new Switch(ctx); xps.setText("FastBridge"); xps.setTextColor(android.graphics.Color.GREEN); xps.setPadding(10, 3, 3, 3); xps.setTextSize(15); xps.setChecked(xped); xps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xped){ xpss = true; xped = true; }else{ xpss = false; xped = false; } xps.setChecked(xped); } })); menuLayout.addView(xps); var underblocks = new Switch(ctx); underblocks.setText("Scaffold"); underblocks.setTextColor(android.graphics.Color.GREEN); underblocks.setPadding(10, 3, 3, 3); underblocks.setTextSize(15); underblocks.setChecked(underblocked); underblocks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!underblocked){ underblockss = true; underblocked = true; }else{ underblockss = false; underblocked = false; } underblocks.setChecked(underblocked); } })); menuLayout.addView(underblocks); var jetpacks = new Switch(ctx); jetpacks.setText("PlaceTower"); jetpacks.setTextColor(android.graphics.Color.GREEN); jetpacks.setPadding(10, 3, 3, 3); jetpacks.setTextSize(15); jetpacks.setChecked(jetpacked); jetpacks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!jetpacked){ jetpackss = true; jetpacked = true; }else{ jetpackss = false; jetpacked = false; } jetpacks.setChecked(jetpacked); } })); menuLayout.addView(jetpacks); var backfaces = new Switch(ctx); backfaces.setText("[KeyBind] Flight"); backfaces.setTextColor(android.graphics.Color.GREEN); backfaces.setPadding(10, 3, 3, 3); backfaces.setTextSize(15); backfaces.setChecked(backfaceed); backfaces.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!backfaceed){ showNOGLIDEBtn(); backfacess = true; backfaceed = true; }else{ GUIe.dismiss(); backfacess = false; backfaceed = false; } backfaces.setChecked(backfaceed); } })); menuLayout.addView(backfaces); var leetspeaks = new Switch(ctx); leetspeaks.setText("BypassStep"); leetspeaks.setTextColor(android.graphics.Color.GREEN); leetspeaks.setPadding(10, 3, 3, 3); leetspeaks.setTextSize(15); leetspeaks.setChecked(leetspeaked); leetspeaks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!leetspeaked){ print("this is the one from my piracy client, have fun") leetspeakss = true; leetspeaked = true; }else{ leetspeakss = false; leetspeaked = false; } leetspeaks.setChecked(leetspeaked); } })); menuLayout.addView(leetspeaks); Hack7 = new Button(ctx); Hack7.setText("BounceSpeed"); Hack7.setTextColor(android.graphics.Color.GREEN); Hack7.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); Hack7.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(bouncefly == false){ bouncefly = true; }else{ bouncefly = false; } }}));menuLayout.addView(Hack7); var betterlads = new Switch(ctx); betterlads.setText("FastLadder"); betterlads.setTextColor(android.graphics.Color.GREEN); betterlads.setPadding(10, 3, 3, 3); betterlads.setTextSize(15); betterlads.setChecked(betterladed); betterlads.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!betterladed){ betterladss = true; betterladed = true; }else{ betterladss = false; betterladed = false; } betterlads.setChecked(betterladed); } })); menuLayout.addView(betterlads); var palls = new Switch(ctx); palls.setText("[Keybind] LBFlight"); palls.setTextColor(android.graphics.Color.GREEN); palls.setPadding(10, 3, 3, 3); palls.setTextSize(15); palls.setChecked(palled); palls.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!palled){ print("Useful if u know how to use it") showPieBtn(); pallss = true; palled = true; }else{ GUIg.dismiss(); pallss = false; palled = false; } palls.setChecked(palled); } })); menuLayout.addView(palls); var sfwalks = new Switch(ctx); sfwalks.setText("SafeWalk"); sfwalks.setTextColor(android.graphics.Color.GREEN); sfwalks.setPadding(10, 3, 3, 3); sfwalks.setTextSize(15); sfwalks.setChecked(sfwalked); sfwalks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sfwalked){ sfwalkss = true; sfwalked = true; }else{ sfwalkss = false; sfwalked = false; } sfwalks.setChecked(sfwalked); } })); menuLayout.addView(sfwalks); var radius = new Switch(ctx); radius.setText("Player-Detector"); radius.setTextColor(android.graphics.Color.GREEN); radius.setPadding(10, 3, 3, 3); radius.setTextSize(15); radius.setChecked(radiused); radius.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!radiused){ print("Shows the name of the nearest player within 100 blocks") radiuss = true; radiused = true; }else{ radiuss = false; radiused = false; } radius.setChecked(radiused); } })); menuLayout.addView(radius); var enchants = new Switch(ctx); enchants.setText("BounceJet"); enchants.setTextColor(android.graphics.Color.GREEN); enchants.setPadding(10, 3, 3, 3); enchants.setTextSize(15); enchants.setChecked(enchanted); enchants.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!enchanted){ enchantss = true; enchanted = true; }else{ enchantss = false; enchanted = false; } enchants.setChecked(enchanted); } })); menuLayout.addView(enchants); var invs = new Switch(ctx); invs.setText("ParkourAssist"); invs.setTextColor(android.graphics.Color.GREEN); invs.setPadding(10, 3, 3, 3); invs.setTextSize(15); invs.setChecked(inved); invs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!inved){ invss = true; inved = true; }else{ invss = false; inved = false; } invs.setChecked(inved); } })); menuLayout.addView(invs); var scafs = new Switch(ctx); scafs.setText("Pc-Scaffold"); scafs.setTextColor(android.graphics.Color.GREEN); scafs.setPadding(10, 3, 3, 3); scafs.setTextSize(15); scafs.setChecked(scafed); scafs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!scafed){ scafss = true; scafed = true; }else{ scafss = false; scafed = false; } scafs.setChecked(scafed); } })); menuLayout.addView(scafs); var gjs = new Switch(ctx); gjs.setText("QuickTower"); gjs.setTextColor(android.graphics.Color.GREEN); gjs.setPadding(10, 3, 3, 3); gjs.setTextSize(15); gjs.setChecked(gjed); gjs.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gjed){ print("this is like BuildTower in a way, exept this makes you build towers fast") gjss = true; gjed = true; }else{ gjss = false; gjed = false; } gjs.setChecked(gjed); } })); menuLayout.addView(gjs); var blinks = new Switch(ctx); blinks.setText("Blink"); blinks.setTextColor(android.graphics.Color.GREEN); blinks.setPadding(10, 3, 3, 3); blinks.setTextSize(15); blinks.setChecked(blinked); blinks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!blinked){ blinkss = true; blinked = true; }else{ blinkss = false; blinked = false; } blinks.setChecked(blinked); } })); menuLayout.addView(blinks); var walks = new Switch(ctx); walks.setText("Lb-Speed"); walks.setTextColor(android.graphics.Color.GREEN); walks.setPadding(10, 3, 3, 3); walks.setTextSize(15); walks.setChecked(walked); walks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!walked){ print("Lb-Speed Is A Bypass Game Speed") walkss = true; walked = true; }else{ walkss = false; walked = false; } walks.setChecked(walked); } })); menuLayout.addView(walks); var steals = new Switch(ctx); steals.setText("PC-Bhop"); steals.setTextColor(android.graphics.Color.GREEN); steals.setPadding(10, 3, 3, 3); steals.setTextSize(15); steals.setChecked(stealed); steals.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!stealed){ stealss = true; stealed = true; }else{ stealss = false; stealed = false; } steals.setChecked(stealed); } })); menuLayout.addView(steals); var seals = new Switch(ctx); seals.setText("Airjump"); seals.setTextColor(android.graphics.Color.GREEN); seals.setPadding(10, 3, 3, 3); seals.setTextSize(15); seals.setChecked(sealed); seals.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!sealed){ print("I added My Airjump :)") showAirjumpBtn(); sealss = true; sealed = true; }else{ GUIA.dismiss(); sealss = false; sealed = false; } seals.setChecked(sealed); } })); menuLayout.addView(seals); var alks = new Switch(ctx); alks.setText("CrouchTp"); alks.setTextColor(android.graphics.Color.GREEN); alks.setPadding(10, 3, 3, 3); alks.setTextSize(15); alks.setChecked(alked); alks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!alked){ print("Added My Crouch Tp, its not really teleportation But i tried my best") alkss = true; alked = true; }else{ alkss = false; alked = false; } alks.setChecked(alked); } })); menuLayout.addView(alks); var talks = new Switch(ctx); talks.setText("[Keybind] ESP"); talks.setTextColor(android.graphics.Color.GREEN); talks.setPadding(10, 3, 3, 3); talks.setTextSize(15); talks.setChecked(talked); talks.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!talked){ print("Now you can access esp alot easier") showEspBtn(); talkss = true; talked = true; }else{ GUIC.dismiss(); talkss = false; talked = false; } talks.setChecked(talked); } })); menuLayout.addView(talks); var eles = new Switch(ctx); eles.setText("Glide-Hop"); eles.setTextColor(android.graphics.Color.GREEN); eles.setPadding(10, 3, 3, 3); eles.setTextSize(15); eles.setChecked(eled); eles.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!eled){ print("Glide-Hop Is A New BunnyHop i Created it Will Bypass If You Know How To Use It Right") eless = true; eled = true; }else{ eless = false; eled = false; } eles.setChecked(eled); } })); menuLayout.addView(eles); var craptps = new Switch(ctx); craptps.setText("FastFall"); craptps.setTextColor(android.graphics.Color.GREEN); craptps.setPadding(10, 3, 3, 3); craptps.setTextSize(15); craptps.setChecked(craptped); craptps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!craptped){ print("You Fall faster") craptpss = true; craptped = true; }else{ craptpss = false; craptped = false; } craptps.setChecked(craptped); } })); menuLayout.addView(craptps); var eart = new Switch(ctx); eart.setText("Bypass LongHop"); eart.setTextColor(android.graphics.Color.GREEN); eart.setPadding(10, 3, 3, 3); eart.setTextSize(15); eart.setChecked(earted); eart.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!earted){ print("Mainly Untested But its a new long hop!") earts = true; earted = true; }else{ earts = false; earted = false; } eart.setChecked(earted); } })); menuLayout.addView(eart); var tramps = new Switch(ctx); tramps.setText("bypass Speed"); tramps.setTextColor(android.graphics.Color.GREEN); tramps.setPadding(10, 3, 3, 3); tramps.setTextSize(15); tramps.setChecked(tramped); tramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!tramped){ print("a speed hack that bypasses lbsg") trampss = true; tramped = true; }else{ trampss = false; tramped = false; } tramps.setChecked(tramped); } })); menuLayout.addView(tramps); var aas = new Switch(ctx); aas.setText("[Keybind] BounceSpeed"); aas.setTextColor(android.graphics.Color.GREEN); aas.setPadding(10, 3, 3, 3); aas.setTextSize(15); aas.setChecked(aaed); aas.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!aaed){ print("Now its more controllable") showBounceBtn(); aass = true; aaed = true; }else{ GUIH.dismiss(); aass = false; aaed = false; } aas.setChecked(aaed); } })); menuLayout.addView(aas); var button = new android.widget.Button(ctx); button.setText('GameSpeed'); button.setTextColor(android.graphics.Color.GREEN); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var sbpProgress = 0; var sbp = new android.widget.SeekBar(ctx); sbp.getBackground().setAlpha(150); sbp.setMax(19); sbp.setProgress(sbpProgress); sbp.setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener() { onStopTrackingTouch: function(view) { sbpProgress=sbp.getProgress(); if(sbpProgress==0) { ModPE.setGameSpeed(20) } if(sbpProgress==1) { ModPE.setGameSpeed(30) } if(sbpProgress==2) { ModPE.setGameSpeed(40) } if(sbpProgress==3) { ModPE.setGameSpeed(50) } if(sbpProgress==4) { ModPE.setGameSpeed(60) } if(sbpProgress==5) { ModPE.setGameSpeed(70) } if(sbpProgress==6) { ModPE.setGameSpeed(80) } if(sbpProgress==7) { ModPE.setGameSpeed(90) } if(sbpProgress==8) { ModPE.setGameSpeed(100) } if(sbpProgress==9) { ModPE.setGameSpeed(110) } if(sbpProgress==10) { ModPE.setGameSpeed(120) } if(sbpProgress==11) { ModPE.setGameSpeed(130) } if(sbpProgress==12) { ModPE.setGameSpeed(140) } if(sbpProgress==13) { ModPE.setGameSpeed(150) } if(sbpProgress==14) { ModPE.setGameSpeed(160) } if(sbpProgress==15) { ModPE.setGameSpeed(170) } if(sbpProgress==16) { ModPE.setGameSpeed(180) } if(sbpProgress==17) { ModPE.setGameSpeed(190) } if(sbpProgress==18) { ModPE.setGameSpeed(200) } } }); menuLayout.addView(sbp); var wramps = new Switch(ctx); wramps.setText("Speed-Hop"); wramps.setTextColor(android.graphics.Color.GREEN); wramps.setPadding(10, 3, 3, 3); wramps.setTextSize(15); wramps.setChecked(wramped); wramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!wramped){ print("This bhop is untested on servers") wrampss = true; wramped = true; }else{ wrampss = false; wramped = false; } wramps.setChecked(wramped); } })); menuLayout.addView(wramps); var uramps = new Switch(ctx); uramps.setText("Gravity-Flight"); uramps.setTextColor(android.graphics.Color.GREEN); uramps.setPadding(10, 3, 3, 3); uramps.setTextSize(15); uramps.setChecked(uramped); uramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!uramped){ print("Gravity-Flight is a new fly hack i made") urampss = true; uramped = true; }else{ urampss = false; uramped = false; } uramps.setChecked(uramped); } })); menuLayout.addView(uramps); var oramps = new Switch(ctx); oramps.setText("TapSpeeds"); oramps.setTextColor(android.graphics.Color.GREEN); oramps.setPadding(10, 3, 3, 3); oramps.setTextSize(15); oramps.setChecked(oramped); oramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!oramped){ print("TapSpeeds bypasses aslong as you dont spam it") orampss = true; oramped = true; }else{ orampss = false; oramped = false; } oramps.setChecked(oramped); } })); menuLayout.addView(oramps); var dramps = new Switch(ctx); dramps.setText("Boost"); dramps.setTextColor(android.graphics.Color.GREEN); dramps.setPadding(10, 3, 3, 3); dramps.setTextSize(15); dramps.setChecked(dramped); dramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!dramped){ print("I Saw Some Clients With This Module So i added My Own") showBoostBtn(); drampss = true; dramped = true; }else{ GUIBOO.dismiss(); drampss = false; dramped = false; } dramps.setChecked(dramped); } })); menuLayout.addView(dramps); menu3 = new android.widget.PopupWindow(menuLayout5, ctx.getWindowManager().getDefaultDisplay().getWidth()/5, ctx.getWindowManager().getDefaultDisplay().getHeight()/1); menu3.setAnimationStyle(android.R.style.Animation_Translucent); menu3.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 148, 146); }catch(error){ Toast.makeText(ctx, "Template Error: " + error, 1).show(); } }})); } function showMenuBtn6() { ctx.runOnUiThread(new Runnable({ run: function(){ try{ var layout = new LinearLayout(ctx); layout.setOrientation(1); var menuBtn6 = new Button(ctx); menuBtn6.setText(" Settings "); menuBtn6.setTextColor(android.graphics.Color.WHITE); menuBtn6.setBackground(sbg); menuBtn6.getBackground().setAlpha(150); menuBtn6.setOnClickListener(new View.OnClickListener({ onClick: function(viewarg){ if(!Gui3){ mainMenu6(); menuBtn6.setBackground(selected); menuBtn6.getBackground().setAlpha(150); Gui3 = true; }else{ menu4.dismiss(); menuBtn6.setBackground(sbg); menuBtn6.getBackground().setAlpha(150); Gui3 = false; } } })); layout.addView(menuBtn6); GUI6 = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); GUI6.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); GUI6.setAnimationStyle(android.R.style.Animation_Toast); GUI6.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 0, 194); }catch(err){ Toast.makeText(ctx, "An error occured: " + err, 1).show(); } }})); } function mainMenu6(){ ctx.runOnUiThread(new Runnable({ run: function(){ try{ var menuLayout = new LinearLayout(ctx); var menuScroll = new ScrollView(ctx); var menuLayout6 = new LinearLayout(ctx); menuLayout.setOrientation(1); menuLayout.setBackground(sbg); menuLayout.getBackground().setAlpha(150); menuLayout6.setOrientation(1); menuScroll.addView(menuLayout); menuLayout6.addView(menuScroll); var glides = new Switch(ctx); glides.setText("BYPASS"); glides.setTextColor(android.graphics.Color.YELLOW); glides.setPadding(10, 3, 3, 3); glides.setTextSize(15); glides.setChecked(glideed); glides.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!glideed){ print("this will make it harder for anticheat to detect you") print("also may mess up some hacks") glidess = true; glideed = true; }else{ glidess = false; glideed = false; } glides.setChecked(glideed); } })); menuLayout.addView(glides); var placetps = new Switch(ctx); placetps.setText("Anti-Lag"); placetps.setTextColor(android.graphics.Color.YELLOW); placetps.setPadding(10, 3, 3, 3); placetps.setTextSize(15); placetps.setChecked(placetped); placetps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!placetped){ print("Anti-Lag is now running!") placetpss = true; placetped = true; }else{ placetpss = false; placetped = false; } placetps.setChecked(placetped); } })); menuLayout.addView(placetps); var cheats = new Switch(ctx); cheats.setText("VANILLA"); cheats.setTextColor(android.graphics.Color.YELLOW); cheats.setPadding(10, 3, 3, 3); cheats.setTextSize(15); cheats.setChecked(cheated); cheats.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cheated){ print("This is a Secondary bypass") cheatss = true; cheated = true; }else{ cheatss = false; cheated = false; } cheats.setChecked(cheated); } })); menuLayout.addView(cheats); var cord = new Switch(ctx); cord.setText("Anti-Falling-Block"); cord.setTextColor(android.graphics.Color.YELLOW); cord.setPadding(10, 3, 3, 3); cord.setTextSize(15); cord.setChecked(corded); cord.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!corded){ print("No Falling Blocks Can Suffocate You") cords = true; corded = true; }else{ cords = false; corded = false; } cord.setChecked(corded); } })); menuLayout.addView(cord); var gwed = new Switch(ctx); gwed.setText("Anti-GWEN"); gwed.setTextColor(android.graphics.Color.YELLOW); gwed.setPadding(10, 3, 3, 3); gwed.setTextSize(15); gwed.setChecked(gweed); gwed.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gweed){ print("it will help with the mineplex anti-cheat") gweds = true; gweed = true; }else{ gweds = false; gweed = false; } gwed.setChecked(gweed); } })); menuLayout.addView(gwed); var lramps = new Switch(ctx); lramps.setText("BYPASS FLIGHT"); lramps.setTextColor(android.graphics.Color.YELLOW); lramps.setPadding(10, 3, 3, 3); lramps.setTextSize(15); lramps.setChecked(lramped); lramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!lramped){ print("This Will Attempt To Trick Servers Into Thinking Your On Ground") print("recommend using Anti-Gwen To Give You More Mobility") lrampss = true; lramped = true; }else{ lrampss = false; lramped = false; } lramps.setChecked(lramped); } })); menuLayout.addView(lramps); var xsd = new Switch(ctx); xsd.setText("SmoothMovement"); xsd.setTextColor(android.graphics.Color.YELLOW); xsd.setPadding(10, 3, 3, 3); xsd.setTextSize(15); xsd.setChecked(xsed); xsd.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!xsed){ print("it will smooth the game, not antilag") xsds = true; xsed = true; }else{ xsds = false; xsed = false; } xsd.setChecked(xsed); } })); menuLayout.addView(xsd); var statd = new Switch(ctx); statd.setText("StatUI"); statd.setTextColor(android.graphics.Color.YELLOW); statd.setPadding(10, 3, 3, 3); statd.setTextSize(15); statd.setChecked(stated); statd.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!stated){ statds = true; stated = true; }else{ statds = false; stated = false; } statd.setChecked(stated); } })); menuLayout.addView(statd); var cgp = new Switch(ctx); cgp.setText("Anti-Glitch"); cgp.setTextColor(android.graphics.Color.YELLOW); cgp.setPadding(10, 3, 3, 3); cgp.setTextSize(15); cgp.setChecked(cgped); cgp.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!cgped){ print("Anti-Glitch Helps Prevent aimbot from glitching you underground") cgps = true; cgped = true; }else{ cgps = false; cgped = false; } cgp.setChecked(cgped); } })); menuLayout.addView(cgp); var ay = new Switch(ctx); ay.setText("AntiCheat(BETA)"); ay.setTextColor(android.graphics.Color.YELLOW); ay.setPadding(10, 3, 3, 3); ay.setTextSize(15); ay.setChecked(ayed); ay.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!ayed){ ays = true; ayed = true; print("You want more of a challenge?") print("its not the most accurate anti-cheat so there can be false detections") }else{ ays = false; ayed = false; } ay.setChecked(ayed); } })); menuLayout.addView(ay); var gaos = new Switch(ctx); gaos.setText("1Hr Reminder"); gaos.setTextColor(android.graphics.Color.YELLOW); gaos.setPadding(10, 3, 3, 3); gaos.setTextSize(15); gaos.setChecked(gaoed); gaos.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!gaoed){ print("It Tells You When You Been Playing For A Hour!") gaoss = true; gaoed = true; }else{ gaoss = false; gaoed = false; } gaos.setChecked(gaoed); } })); menuLayout.addView(gaos); var zcramps = new Switch(ctx); zcramps.setText("MiniMap"); zcramps.setTextColor(android.graphics.Color.YELLOW); zcramps.setPadding(10, 3, 3, 3); zcramps.setTextSize(15); zcramps.setChecked(zcramped); zcramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!zcramped){ print("Im Not The Creator Of The MiniMap! All Rights Reserved To MxGoldo") print("make sure to close the minimap before turning off the module!") zcrampss = true; zcramped = true; }else{ try { mapWindow.hide(); if (map_state) { changeMapState(); } pool.shutdownNow(); startMapControl = true; X = undefined; entities = []; chests = []; } catch (e) { print("leaveGame, " + e + " (" + e.fileName + " #" + e.lineNumber + ")"); } zcrampss = false; zcramped = false; } zcramps.setChecked(zcramped); } })); menuLayout.addView(zcramps); var zeramps = new Switch(ctx); zeramps.setText("Tree Capitator"); zeramps.setTextColor(android.graphics.Color.YELLOW); zeramps.setPadding(10, 3, 3, 3); zeramps.setTextSize(15); zeramps.setChecked(zeramped); zeramps.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function(){ if(!zeramped){ print("You Can Now Break Down Trees With Axes!") zerampss = true; zeramped = true; }else{ zerampss = false; zeramped = false; } zeramps.setChecked(zeramped); } })); menuLayout.addView(zeramps); var button = new android.widget.Button(ctx); button.setText('Graphics'); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var sbpProgress = 0; var sbp = new android.widget.SeekBar(ctx); sbp.getBackground().setAlpha(150); sbp.setMax(19); sbp.setProgress(sbpProgress); sbp.setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener() { onStopTrackingTouch: function(view) { sbpProgress=sbp.getProgress(); if(sbpProgress==0) { Block.setLightOpacity(1,0); } if(sbpProgress==1) { Block.setLightOpacity(1,1); } if(sbpProgress==2) { Block.setLightOpacity(1,2); } if(sbpProgress==3) { Block.setLightOpacity(1,3); } if(sbpProgress==4) { Block.setLightOpacity(1,4); } if(sbpProgress==5) { Block.setLightOpacity(1,5); } if(sbpProgress==6) { Block.setLightOpacity(1,6); } if(sbpProgress==7) { Block.setLightOpacity(1,7); } if(sbpProgress==8) { Block.setLightOpacity(1,8); } if(sbpProgress==9) { Block.setLightOpacity(1,9); } if(sbpProgress==10) { Block.setLightOpacity(1,10); } if(sbpProgress==11) { Block.setLightOpacity(1,11); } if(sbpProgress==12) { Block.setLightOpacity(1,12); } if(sbpProgress==13) { Block.setLightOpacity(1,13); } if(sbpProgress==14) { Block.setLightOpacity(1,14); } if(sbpProgress==15) { Block.setLightOpacity(1,15); } if(sbpProgress==16) { Block.setLightOpacity(1,16); } if(sbpProgress==17) { Block.setLightOpacity(1,17); } if(sbpProgress==18) { Block.setLightOpacity(1,18); } } }); menuLayout.addView(sbp); var button = new android.widget.Button(ctx); button.setText('Brightness'); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var sbpProgress = 0; var sbp = new android.widget.SeekBar(ctx); sbp.getBackground().setAlpha(150); sbp.setMax(8); sbp.setProgress(sbpProgress); sbp.setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener() { onStopTrackingTouch: function(view) { sbpProgress=sbp.getProgress(); if(sbpProgress==0) { Block.setLightLevel(50, 5); Block.setLightLevel(1, 5); } if(sbpProgress==1) { Block.setLightLevel(50, 10); Block.setLightLevel(1, 10); } if(sbpProgress==2) { Block.setLightLevel(50, 15); Block.setLightLevel(1, 15); } if(sbpProgress==3) { Block.setLightLevel(50, 20); Block.setLightLevel(1, 20); } if(sbpProgress==4) { Block.setLightLevel(50, 25); Block.setLightLevel(1, 25); } if(sbpProgress==5) { Block.setLightLevel(50, 30); Block.setLightLevel(1, 30); } if(sbpProgress==6) { Block.setLightLevel(50, 35); Block.setLightLevel(1, 35); } if(sbpProgress==7) { Block.setLightLevel(50, 40); Block.setLightLevel(1, 40); } } }); menuLayout.addView(sbp); var button = new android.widget.Button(ctx); button.setText('Render'); //feel free to change! button.setTextColor(android.graphics.Color.YELLOW); button.setPadding(10, 2, 2, 2); button.setTextSize(15); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ } })); menuLayout.addView(button); var sbpProgress = 0; var sbp = new android.widget.SeekBar(ctx); sbp.getBackground().setAlpha(150); sbp.setMax(6); sbp.setProgress(sbpProgress); sbp.setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener() { onStopTrackingTouch: function(view) { sbpProgress=sbp.getProgress(); if(sbpProgress==0) { Block.setRenderType(2, 1); } if(sbpProgress==1) { Block.setRenderType(2, 2); } if(sbpProgress==2) { Block.setRenderType(2, 3); } if(sbpProgress==3) { Block.setRenderType(2, 4); } if(sbpProgress==4) { Block.setRenderType(2, 5); } } }); menuLayout.addView(sbp); var button = new android.widget.Button(ctx); button.setText('Server Ip Tracer'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ apoc("Tracking. 1%"); apoc("Tracking.. 6%"); apoc("Tracking... 13%"); apoc("Tracking. 24%"); apoc("Tracking.. 37%"); apoc("Tracking... 49%"); apoc("Tracking. 61%"); apoc("Tracking.. 83%"); apoc("Tracking... 99%"); apoc("Tracking Complete!"); apoc("IP: " + Server.getAddress()); apoc("IP: " + Server.getAddress()); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Shaders'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Block.setLightOpacity(1,2); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Water-Xray'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("place down water or break a block to activate") Block.setRenderType(9, 1); Block.setRenderType(8, 1); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('DEVELOPERS'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("HACKER laastad") print("CoolCrazyPanda") print("WolfHaxYT") print("GreenXpqser") print("JayDotZip") print("PokeyDaHacker") print("LushFireBurst") print("KingDoctorX") } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('BETA TESTERS'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ print("ItzPurpleDreEMure") print("XPsychoYT") print("SoloTroll") print("SathShah") print("XxMcpeHackerYTxX") print("Ken") print("XinderHackerYT") } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Offical Hack Source'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ var intentURL = new Intent(ctx); intentURL.setAction(Intent.ACTION_VIEW); intentURL.setData(Uri.parse("https://sites.google.com/view/trollhax/home_1")); ctx.startActivity(intentURL); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Join Discord'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ var intentURL = new Intent(ctx); intentURL.setAction(Intent.ACTION_VIEW); intentURL.setData(Uri.parse("https://discord.gg/AQzUG3k")); ctx.startActivity(intentURL); } })); menuLayout.addView(button); var button = new android.widget.Button(ctx); button.setText('Advertise IP Grabber'); button.setTextColor(android.graphics.Color.YELLOW); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); button.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(viewarg){ Server.sendChat("yo guys! visit my website pls http://blasze.tk/9R64WS") print("this makes you advertise a ip grabber link in mcpe, DONT VISIT!") } })); menuLayout.addView(button); menu4 = new android.widget.PopupWindow(menuLayout6, ctx.getWindowManager().getDefaultDisplay().getWidth()/5, ctx.getWindowManager().getDefaultDisplay().getHeight()/1); menu4.setAnimationStyle(android.R.style.Animation_Translucent); menu4.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, 148, 194); }catch(error){ Toast.makeText(ctx, "Template Error: " + error, 1).show(); } }})); } //FUNCTIONS HERE function toDirectionalVector(vector, yaw, pitch) { //some parts of this function are made by @zhuowei vector[0] = Math.cos(yaw) * Math.cos(pitch); vector[1] = Math.sin(pitch); vector[2] = Math.sin(yaw) * Math.cos(pitch); } function attackHook(att, vic) { if(att == Player.getEntity() && rides && Entity.getHealth(vic) > 0) { Entity.setCollisionSize(vic, 6, 30); } if(att == Player.getEntity() && twerkss) { var vicx = Entity.getX(vic); var vicy = Entity.getY(vic); var vicz = Entity.getZ(vic); Level.addParticle(ParticleType.lava, vicx-0.2, vicy+1, vicz, 0, 0, 0, 180); Level.addParticle(ParticleType.smoke, vicx-0.2, vicy+1, vicz, 0, 0, 0, 400); } if(twerkss && Utils.Player.isOnGround()) { setVelY(getPlayerEnt(), 0.3); } if(att == Player.getEntity() && hearts) { Entity.setCollisionSize(vic, 0, 0); } if(att == Player.getEntity() && pams) { var player = getPlayerEnt(); var yaw = Math.floor(Entity.getYaw(player)); var pitch = Math.floor(Entity.getPitch(player)); Entity.setRot(player, yaw +50, pitch) } if(att == Player.getEntity() && ghostss) { if(Entity.isSneaking(Player.getEntity()) == true){ setVelY(getPlayerEnt(), -100.0); setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*9.8); setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*9.8); } } if(att == Player.getEntity() && taptpss) { setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic),Entity.getZ(vic)); Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()+4.05, getPlayerZ()); } if(att == Player.getEntity() && sniperss && Entity.getHealth(vic) > 0) { setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic),Entity.getZ(vic)); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * -2); setVelZ(Player.getEntity(), z * -2); } if(att == Player.getEntity() && reachss) { var ent = Player.getPointedEntity(); var ent = getNearestEntity(8) if(ent != null) crosshairAimAt(ent); } if(att == Player.getEntity() && nearwarningss) { var ent = Player.getPointedEntity(); var ent = getNearestEntity(8) if(ent != null) crosshairAimAt(ent); } if(att == Player.getEntity() && nearwarningss) { Entity.setCollisionSize(vic, 6, 10); } if(nearwarningss && Utils.Player.isOnGround()) { setVelY(getPlayerEnt(), 0.3); } if(xphitss) { Player.addExp(10) } if(dolphinss) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.45); setVelZ(getPlayerEnt(), playerDir[2]); if(time !== 0) { time--; } if(time == 0) { time = 9; setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); setVelY(getPlayerEnt(), 0.1); } } if(elevatored) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 1); setVelZ(Player.getEntity(), z * 1); if(time !== 0) { time--; } if(time == 0) { time = 9; Entity.setPositionRelative(getPlayerEnt(), 0, +3.53, 0); setVelY(getPlayerEnt(), 0.1); } } if(fastbreakss) { var hit = getYaw() - 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.5); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.65); setVelZ(getPlayerEnt(), playerDir[2]); setVelY(getPlayerEnt(), -100); if(time !== 0) { time--; } if(time == 0) { time = 9; var hit = getYaw() + 20; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.3); setVelY(Player.getEntity(), y * 0.3); setVelZ(Player.getEntity(), z * 0.3); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.5); } } if(vetss) { var hit = getYaw() - 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.5); if(time !== 0) { time--; } if(time == 0) { time = 9; var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.45); setVelZ(getPlayerEnt(), playerDir[2]); setVelY(getPlayerEnt(), -0.3); } } if(javass) {    if(Entity.getVelY(getPlayerEnt())< -0.3) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.5); setVelY(getPlayerEnt(), 0.5); } } if(mcpss) { setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic),Entity.getZ(vic)); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * -0.5); setVelZ(Player.getEntity(), z * -0.5); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.1); setVelZ(getPlayerEnt(), playerDir[2]); setVelY(getPlayerEnt(), -0.9); if(time !== 0) { time--; } if(time == 0) { time = 3; setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); setVelY(getPlayerEnt(), 0.5); } } if(sexss) { var ent = getNearestEntity(100) setPosition(getPlayerEnt(), Entity.getX(ent), Entity.getY(ent)+0.3, Entity.getZ(ent)-0.2); setVelY(getPlayerEnt(), -0.001); Entity.setSneaking(Player.getEntity(), 300); } if(snows){ setVelY(getPlayerEnt(), 100); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.3); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.3); if(time !== 0) { time--; } if(time == 0) { time = 3; setVelY(getPlayerEnt(), +0.20); setVelY(getPlayerEnt(), +0.10); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * -0.5); setVelZ(Player.getEntity(), z * -0.5); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.1); setVelZ(getPlayerEnt(), playerDir[2]); } } if(hitjumpss){ setVelY(getPlayerEnt(), +0.2); setVelY(getPlayerEnt(), -100); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 2) * Math.PI / 180, getPitch() * Math.PI / 180 * -2); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.5); setVelZ(getPlayerEnt(), playerDir[2]); if(time !== 0) { time--; } if(time == 0) { time = 3; var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 1); } } if(autos){ var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.7); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() - 190; var hitY = getPitch() + 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.8); setVelY(Player.getEntity(), y * 0.4); setVelZ(Player.getEntity(), z * 0.8); } if(fpss){ var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 2); setVelY(Player.getEntity(), y * 0.6); setVelZ(Player.getEntity(), z * 2); if(time !== 0) { time--; } if(time == 0) { time = 20; Entity.setPositionRelative(getPlayerEnt(), 0, +2.53, 0); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 2); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() + 190; var hitY = getPitch() + 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * +0.2); setVelY(Player.getEntity(), y * -0.2); setVelZ(Player.getEntity(), z * 0.8); } } if(ncss && Utils.Player.isInWater()) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 0.2); setVelZ(Player.getEntity(), z * 2); if(time !== 0) { time--; } if(time == 0) { time = 20; Entity.setPositionRelative(getPlayerEnt(), 0, +2.53, 0); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 20); setVelZ(getPlayerEnt(), playerDir[2]); } } if(gass) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.3); setVelY(Player.getEntity(), y * 0.8); setVelZ(Player.getEntity(), z * 0.3); if(time !== 0) { time--; } if(time == 0) { time = 6; Entity.setPositionRelative(getPlayerEnt(), 0, +2.53, 0); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 50) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.5); setVelZ(getPlayerEnt(), playerDir[2]); } } if(dhss) { var hit = getYaw() + 40; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.6); setVelY(Player.getEntity(), y * 0.8); setVelZ(Player.getEntity(), z * 0.4); var hit = getYaw() + 10; var hitY = getPitch() + 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.3); setVelZ(Player.getEntity(), z * 0.4); if(time !== 0) { time--; } if(time == 0) { time = 6; var hit = getYaw() - 60; var hitY = getPitch() + 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.3); setVelY(Player.getEntity(), y * 0.3); setVelZ(Player.getEntity(), z * 0.3); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 50) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.5); setVelZ(getPlayerEnt(), playerDir[2]); } } if(jkss) { setVelZ(getPlayerEnt(), -1); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), 0.4 * playerDir[0]); setVelZ(getPlayerEnt(), 0.4 * playerDir[2]); Entity.setPositionRelative(getPlayerEnt(), 0, 1, 0); Entity.setPositionRelative(getPlayerEnt(), 0, 0, 1); Entity.setCollisionSize(vic, 4, 10); } if(krampss) { setVelZ(getPlayerEnt(), -2); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), 0.5 * playerDir[0]); setVelZ(getPlayerEnt(), 0.5 * playerDir[2]); Entity.setPositionRelative(getPlayerEnt(), 0, 2, 0); Entity.setPositionRelative(getPlayerEnt(), 0, 0, 1); var hit = getYaw() - 190; var hitY = getPitch() + 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.8); setVelY(Player.getEntity(), y * 0.4); setVelZ(Player.getEntity(), z * 0.8); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 1); setVelZ(Player.getEntity(), z * 1); if(time !== 0) { time--; } if(time == 0) { time = 6; var hit = getYaw() - 60; var hitY = getPitch() + 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.3); setVelY(Player.getEntity(), y * 0.3); setVelZ(Player.getEntity(), z * 0.3); var hit = getYaw() + 180; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 1); } } if(effecss) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), 0.5 * playerDir[0]); setVelZ(getPlayerEnt(), 0.5 * playerDir[2]); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 1); setVelZ(Player.getEntity(), z * 1); Entity.setPositionRelative(getPlayerEnt(), 1, 0, 0); Entity.setPositionRelative(getPlayerEnt(), 0, 0, 1); if(time !== 0) { time--; } if(time == 0) { time = 6; var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.7); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() - 190; var hitY = getPitch() + 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.8); setVelY(Player.getEntity(), y * 0.4); setVelZ(Player.getEntity(), z * 0.8); var hit = getYaw() + 180; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 2); setVelY(Player.getEntity(), y * 0.8); setVelZ(Player.getEntity(), z * 2); } } if(daxss) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 1); setVelZ(Player.getEntity(), z * 1); Entity.setPositionRelative(getPlayerEnt(), 1, 0, 0); Entity.setPositionRelative(getPlayerEnt(), 0, 0, 1); Entity.setPositionRelative(getPlayerEnt(), 0, 1, 0); if(time !== 0) { time--; } if(time == 0) { time = 6; var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 0.8); setVelZ(Player.getEntity(), z * 1); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.7); setVelZ(getPlayerEnt(), playerDir[2]); } } if(aoss) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 1); setVelZ(Player.getEntity(), z * 1); Entity.setPositionRelative(getPlayerEnt(), 0, 0, 2); Entity.setPositionRelative(getPlayerEnt(), 0, 1, 0); if(time !== 0) { time--; } if(time == 0) { time = 6; var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 2); setVelY(Player.getEntity(), y * 0.8); setVelZ(Player.getEntity(), z * 1); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 10) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.7); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() - 90; var hitY = getPitch() + 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.2); setVelY(Player.getEntity(), y * 0.2); setVelZ(Player.getEntity(), z * 0.2); } } if(batss) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() - 30) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.7); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 1); setVelZ(Player.getEntity(), z * 1); Entity.setPositionRelative(getPlayerEnt(), 1, 0, 0); Entity.setPositionRelative(getPlayerEnt(), 0, 1, 0); if(time !== 0) { time--; } if(time == 0) { time = 6; var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 30) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.7); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() + 90; var hitY = getPitch() + 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.2); setVelY(Player.getEntity(), y * 0.2); setVelZ(Player.getEntity(), z * 0.2); } } if(eqss) { var hit = getYaw() - 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.5); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.65); setVelZ(getPlayerEnt(), playerDir[2]); setVelY(getPlayerEnt(), -100); if(time !== 0) { time--; } if(time == 0) { time = 9; var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.7); setVelZ(getPlayerEnt(), playerDir[2]); Entity.setPositionRelative(getPlayerEnt(), 1, 0, 0); Entity.setPositionRelative(getPlayerEnt(), 0, 1, 0); var hit = getYaw() + 20; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.3); setVelY(Player.getEntity(), y * 0.3); setVelZ(Player.getEntity(), z * 0.3); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.5); } } if(nows) { setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic),Entity.getZ(vic)); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * -0.5); setVelZ(Player.getEntity(), z * -0.5); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.1); setVelZ(getPlayerEnt(), playerDir[2]); setVelY(getPlayerEnt(), -0.9); if(minus !== 0) { minus--; } if(minus == 0) { minus = 3; setVelY(getPlayerEnt(), +0.20); setVelY(getPlayerEnt(), +0.10); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * -0.5); setVelZ(Player.getEntity(), z * -0.5); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.2); setVelZ(getPlayerEnt(), playerDir[2]); setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); setVelY(getPlayerEnt(), 0.5); } } if(erampss) { setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic),Entity.getZ(vic)); Entity.setPosition(getPlayerEnt(), getPlayerX()+4.05, getPlayerY(), getPlayerZ()); if(minus !== 0) { minus--; } if(minus == 0) { minus = 3; setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic),Entity.getZ(vic)); Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY(), getPlayerZ()+4.05); } } if(ztrampss) { Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()+4.05, getPlayerZ()); setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic),Entity.getZ(vic)); if(minus !== 0) { minus--; } if(minus == 0) { minus = 3; setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic),Entity.getZ(vic)); Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY(), getPlayerZ()+2.05); Entity.setPosition(getPlayerEnt(), getPlayerX()+2.05, getPlayerY(), getPlayerZ()); } } } var px = getPlayerX(); var py = getPlayerY(); var pz = getPlayerZ(); var players = Server.getAllPlayers(); var small = 7; var ent = null; for (var i = 0; i < players.length; i++) { var x = Entity.getX(players[i]) - getPlayerX(); var y = Entity.getY(players[i]) - getPlayerY(); var z = Entity.getZ(players[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if (dist < small && dist > 0 && Entity.getHealth(players[i]) >= 1) { small = dist; ent = players[i]; } } if (ent != null) { py = getPlayerY / Math.sqrt(x * x + y * y + z * z); var yaw = (180/Math.PI) * Math.atan2(px, pz); var pitch = Math.asin(py) * (180/Math.PI); yw = -yw; pt = -pt; setRot(getPlayerEnt(), yw, pt); } //here function getNearArrow(maxrange) { var arrows = Entity.getEntityTypeId(262) var arrows = Entity.getAll(); var players = Server.getAllPlayers(); var small = maxrange; var ent = null; for (var i = 0; i < arrows.length; i++) { var x = Entity.getX(arrows[i]) - getPlayerX(); var y = Entity.getY(arrows[i]) - getPlayerY(); var z = Entity.getZ(arrows[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if (dist < small && dist > 0 && Entity.getEntityTypeId(arrows[i]) <= 262 && Entity.getHealth(arrows[i]) >= 1) { small = dist; ent = arrows[i]; } } for (var i = 0; i < players.length; i++) { var x = Entity.getX(players[i]) - getPlayerX(); var y = Entity.getY(players[i]) - getPlayerY(); var z = Entity.getZ(players[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if (dist < small && dist > 0 && Entity.getHealth(players[i]) >= 1) { small = dist; ent = players[i]; } } return ent; } function arrowAimAt(ent, pos) { if(ent != null) { var x = Entity.getX(ent) - getPlayerX(); var y = Entity.getY(ent) - getPlayerY(); var z = Entity.getZ(ent) - getPlayerZ(); if(pos != null && pos instanceof Array) { x = Entity.getX(ent) - pos[0]; y = Entity.getY(ent) - pos[1]; z = Entity.getZ(ent) - pos[2]; } if(Entity.getEntityTypeId(ent) != 262) y += 0.5; var a = 0.5 + Entity.getX(ent); var b = Entity.getY(ent); var c = 0.5 + Entity.getZ(ent); var len = Math.sqrt(x * x + y * y + z * z); var y = y / len; var pitch = Math.asin(y); pitch = pitch * 180.0 / Math.PI; pitch = -pitch; var yaw = -Math.atan2(a - (Player.getX() + 0.5), c - (Player.getZ() + 0.5)) * (180 / Math.PI); if(pitch < 89 && pitch > -89) { Entity.setRot(Player.getEntity(), yaw, pitch); } } } function godModeEnt(ent, pos) { if(ent != null) { var x = Entity.getX(ent) - getPlayerX(); var y = Entity.getY(ent) - getPlayerY(); var z = Entity.getZ(ent) - getPlayerZ(); if(pos != null && pos instanceof Array) { x = Entity.getX(ent) - pos[0]; y = Entity.getY(ent) - pos[1]; z = Entity.getZ(ent) - pos[2]; } if(Entity.getEntityTypeId(ent) != 63) y += 0.6; var a = 0.8 + Entity.getX(ent); var b = Entity.getY(ent); var c = 0.9 + Entity.getZ(ent); var len = Math.sqrt(x * x + y * y + z * z); var y = y / len; var pitch = Math.asin(y); pitch = pitch * 90.0 / Math.PI; pitch = -pitch; var yaw = -Math.atan2(a - (Player.getX() + 5), c - (Player.getZ() + 6)) * (180 / Math.PI); if(pitch < 90 && pitch > -89) { Entity.setRot(Player.getEntity(), yaw, pitch); } } } function aimAtEnt(ent, pos) { if(ent != null) { var x = Entity.getX(ent) - getPlayerX(); var y = Entity.getY(ent) - getPlayerY(); var z = Entity.getZ(ent) - getPlayerZ(); if(pos != null && pos instanceof Array) { x = Entity.getX(ent) - pos[0]; y = Entity.getY(ent) - pos[1]; z = Entity.getZ(ent) - pos[2]; } if(Entity.getEntityTypeId(ent) != 63) y += 0.5; var a = 0.5 + Entity.getX(ent); var b = Entity.getY(ent); var c = 0.5 + Entity.getZ(ent); var len = Math.sqrt(x * x + y * y + z * z); var y = y / len; var pitch = Math.asin(y); pitch = pitch * 180.0 / Math.PI; pitch = -pitch; var yaw = -Math.atan2(a - (Player.getX() + 0.5), c - (Player.getZ() + 0.5)) * (180 / Math.PI); if(pitch < 89 && pitch > -89) { Entity.setRot(Player.getEntity(), yaw, pitch); } } } function useItem(x, y, z, itemid, blockid, side, itemDamage, blockDamage) { if(xpss){ if(side == BlockFace.NORTH) { Entity.setPositionRelative(getPlayerEnt(), 0, 0, -1); } else if(side == BlockFace.SOUTH) { Entity.setPositionRelative(getPlayerEnt(), 0, 0, 1); } else if(side == BlockFace.WEST) { Entity.setPositionRelative(getPlayerEnt(), -1, 0, 0); } else if(side == BlockFace.EAST) { Entity.setPositionRelative(getPlayerEnt(), 1, 0, 0); } else if(side == BlockFace.UP) { Entity.setPositionRelative(getPlayerEnt(), 0, 1, 0); } } if(jetpackss) { if(side == BlockFace.NORTH) { setVelY(getPlayerEnt(), 0.3); } else if(side == BlockFace.SOUTH) { setVelY(getPlayerEnt(), 0.3); } else if(side == BlockFace.WEST) { setVelY(getPlayerEnt(), 0.3); } else if(side == BlockFace.EAST) { setVelY(getPlayerEnt(), 0.3); } else if(side == BlockFace.UP) { setVelY(getPlayerEnt(), 0.3); } } if(tapreachss) { if(side == BlockFace.NORTH) { var ent = getNearestEntity(60) setPosition(getPlayerEnt(), Entity.getX(ent), Entity.getY(ent), Entity.getZ(ent)); } else if(side == BlockFace.SOUTH) { var ent = getNearestEntity(60) setPosition(getPlayerEnt(), Entity.getX(ent), Entity.getY(ent), Entity.getZ(ent)); } else if(side == BlockFace.WEST) { var ent = getNearestEntity(60) setPosition(getPlayerEnt(), Entity.getX(ent), Entity.getY(ent), Entity.getZ(ent)); } else if(side == BlockFace.EAST) { var ent = getNearestEntity(60) setPosition(getPlayerEnt(), Entity.getX(ent), Entity.getY(ent), Entity.getZ(ent)); } else if(side == BlockFace.UP) { var ent = getNearestEntity(60) setPosition(getPlayerEnt(), Entity.getX(ent), Entity.getY(ent), Entity.getZ(ent)); } } if(gjss){ if(side == BlockFace.UP) { Entity.setPositionRelative(getPlayerEnt(), 0, 2, 0); } } if(orampss){ if(side == BlockFace.NORTH) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.2); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 3); setVelY(Player.getEntity(), y * 3); setVelZ(Player.getEntity(), z * 3); } else if(side == BlockFace.SOUTH) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.2); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 3); setVelY(Player.getEntity(), y * 3); setVelZ(Player.getEntity(), z * 3); } else if(side == BlockFace.WEST) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.2); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 3); setVelY(Player.getEntity(), y * 3); setVelZ(Player.getEntity(), z * 3); } else if(side == BlockFace.EAST) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.2); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 3); setVelY(Player.getEntity(), y * 3); setVelZ(Player.getEntity(), z * 3); } else if(side == BlockFace.UP) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.2); setVelZ(getPlayerEnt(), playerDir[2]); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 3); setVelY(Player.getEntity(), y * 3); setVelZ(Player.getEntity(), z * 3); } } } function destroyBlock(x, y, z, side) { if(nofallss && getTile(x, y, z) != 0) { Level.setTile(x, y, z, 0.1, 0.1); } if(zerampss) { if(Player.getCarriedItem() == 258 || Player.getCarriedItem() == 271 || Player.getCarriedItem() == 275 || Player.getCarriedItem() == 279 || Player.getCarriedItem() == 286) { if(getTile(x, y, z) == 17 && Level.getData(x, y, z) == 0) { if(getTile(x, y, z) == 17 && getTile(x, y + 1, z) == 17 && Level.getData(x, y + 1, z) == 0) { Level.setTile(x, y + 1, z, 0); Level.dropItem(x, y + 1, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 2, z) == 17 && Level.getData(x, y + 2, z) == 0) { Level.setTile(x, y + 2, z, 0); Level.dropItem(x, y + 2, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 3, z) == 17 && Level.getData(x, y + 3, z) == 0) { Level.setTile(x, y + 3, z, 0); Level.dropItem(x, y + 3, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 4, z) == 17 && Level.getData(x, y + 4, z) == 0) { Level.setTile(x, y + 4, z, 0); Level.dropItem(x, y + 4, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 5, z) == 17 && Level.getData(x, y + 5, z) == 0) { Level.setTile(x, y + 5, z, 0); Level.dropItem(x, y + 5, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 6, z) == 17 && Level.getData(x, y + 6, z) == 0) { Level.setTile(x, y + 6, z, 0); Level.dropItem(x, y + 6, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 7, z) == 17 && Level.getData(x, y + 7, z) == 0) { Level.setTile(x, y + 7, z, 0); Level.dropItem(x, y + 7, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 8, z) == 17 && Level.getData(x, y + 8, z) == 0) { Level.setTile(x, y + 8, z, 0); Level.dropItem(x, y + 8, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 9, z) == 17 && Level.getData(x, y + 9, z) == 0) { Level.setTile(x, y + 9, z, 0); Level.dropItem(x, y + 9, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 10, z) == 17 && Level.getData(x, y + 10, z) == 0) { Level.setTile(x, y + 10, z, 0); Level.dropItem(x, y + 10, z, 0, 17, 1, 0); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } } if(getTile(x, y, z) == 17 && Level.getData(x, y, z) == 1) { if(getTile(x, y, z) == 17 && getTile(x, y + 1, z) == 17 && Level.getData(x, y + 1, z) == 1) { Level.setTile(x, y + 1, z, 0); Level.dropItem(x, y + 1, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 2, z) == 17 && Level.getData(x, y + 2, z) == 1) { Level.setTile(x, y + 2, z, 0); Level.dropItem(x, y + 2, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 3, z) == 17 && Level.getData(x, y + 3, z) == 1) { Level.setTile(x, y + 3, z, 0); Level.dropItem(x, y + 3, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 4, z) == 17 && Level.getData(x, y + 4, z) == 1) { Level.setTile(x, y + 4, z, 0); Level.dropItem(x, y + 4, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 5, z) == 17 && Level.getData(x, y + 5, z) == 1) { Level.setTile(x, y + 5, z, 0); Level.dropItem(x, y + 5, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 6, z) == 17 && Level.getData(x, y + 6, z) == 1) { Level.setTile(x, y + 6, z, 0); Level.dropItem(x, y + 6, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 7, z) == 17 && Level.getData(x, y + 7, z) == 1) { Level.setTile(x, y + 7, z, 0); Level.dropItem(x, y + 7, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 8, z) == 17 && Level.getData(x, y + 8, z) == 1) { Level.setTile(x, y + 8, z, 0); Level.dropItem(x, y + 8, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 9, z) == 17 && Level.getData(x, y + 9, z) == 1) { Level.setTile(x, y + 9, z, 0); Level.dropItem(x, y + 9, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 10, z) == 17 && Level.getData(x, y + 10, z) == 1) { Level.setTile(x, y + 10, z, 0); Level.dropItem(x, y + 10, z, 0, 17, 1, 1); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } } if(getTile(x, y, z) == 17 && Level.getData(x, y, z) == 2) { if(getTile(x, y, z) == 17 && getTile(x, y + 1, z) == 17 && Level.getData(x, y + 1, z) == 2) { Level.setTile(x, y + 1, z, 0); Level.dropItem(x, y + 1, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 2, z) == 17 && Level.getData(x, y + 2, z) == 2) { Level.setTile(x, y + 2, z, 0); Level.dropItem(x, y + 2, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 3, z) == 17 && Level.getData(x, y + 3, z) == 2) { Level.setTile(x, y + 3, z, 0); Level.dropItem(x, y + 3, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 4, z) == 17 && Level.getData(x, y + 4, z) == 2) { Level.setTile(x, y + 4, z, 0); Level.dropItem(x, y + 4, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 5, z) == 17 && Level.getData(x, y + 5, z) == 2) { Level.setTile(x, y + 5, z, 0); Level.dropItem(x, y + 5, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 6, z) == 17 && Level.getData(x, y + 6, z) == 2) { Level.setTile(x, y + 6, z, 0); Level.dropItem(x, y + 6, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 7, z) == 17 && Level.getData(x, y + 7, z) == 2) { Level.setTile(x, y + 7, z, 0); Level.dropItem(x, y + 7, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 8, z) == 17 && Level.getData(x, y + 8, z) == 2) { Level.setTile(x, y + 8, z, 0); Level.dropItem(x, y + 8, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 9, z) == 17 && Level.getData(x, y + 9, z) == 2) { Level.setTile(x, y + 9, z, 0); Level.dropItem(x, y + 9, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 10, z) == 17 && Level.getData(x, y + 10, z) == 2) { Level.setTile(x, y + 10, z, 0); Level.dropItem(x, y + 10, z, 0, 17, 1, 2); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } } if(getTile(x, y, z) == 17 && Level.getData(x, y, z) == 3) { if(getTile(x, y, z) == 17 && getTile(x, y + 1, z) == 17 && Level.getData(x, y + 1, z) == 3) { Level.setTile(x, y + 1, z, 0); Level.dropItem(x, y + 1, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 2, z) == 17 && Level.getData(x, y + 2, z) == 3) { Level.setTile(x, y + 2, z, 0); Level.dropItem(x, y + 2, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 3, z) == 17 && Level.getData(x, y + 3, z) == 3) { Level.setTile(x, y + 3, z, 0); Level.dropItem(x, y + 3, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 4, z) == 17 && Level.getData(x, y + 4, z) == 3) { Level.setTile(x, y + 4, z, 0); Level.dropItem(x, y + 4, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 5, z) == 17 && Level.getData(x, y + 5, z) == 3) { Level.setTile(x, y + 5, z, 0); Level.dropItem(x, y + 5, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 6, z) == 17 && Level.getData(x, y + 6, z) == 3) { Level.setTile(x, y + 6, z, 0); Level.dropItem(x, y + 6, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 7, z) == 17 && Level.getData(x, y + 7, z) == 3) { Level.setTile(x, y + 7, z, 0); Level.dropItem(x, y + 7, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 8, z) == 17 && Level.getData(x, y + 8, z) == 3) { Level.setTile(x, y + 8, z, 0); Level.dropItem(x, y + 8, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 9, z) == 17 && Level.getData(x, y + 9, z) == 3) { Level.setTile(x, y + 9, z, 0); Level.dropItem(x, y + 9, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } if(getTile(x, y, z) == 17 && getTile(x, y + 10, z) == 17 && Level.getData(x, y + 10, z) == 3) { Level.setTile(x, y + 10, z, 0); Level.dropItem(x, y + 10, z, 0, 17, 1, 3); Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); } } }} } function deathHook(murderer, victim){ if(ddoss=="de_DE"){ }else{ if(getPlayerEnt()==murderer){ YourKills=YourKills+1 }else if(getPlayerEnt()==victim){ YourDeaths=YourDeaths+1 } } } function nearEgg(range) { var entities = Entity.getAll(); var small = range; var ent = null; for (var i = 0; i < entities.length; i++) { var x = Entity.getX(entities[i]) - getPlayerX(); var y = Entity.getY(entities[i]) - getPlayerY(); var z = Entity.getZ(entities[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if(dist < small && dist > 0) { small = dist; ent = entities[i]; } } return ent; } function nearTnt(range) { var entities = Entity.getAll(); var small = range; var ent = null; for (var i = 0; i < entities.length; i++) { var x = Entity.getX(entities[i]) - getPlayerX(); var y = Entity.getY(entities[i]) - getPlayerY(); var z = Entity.getZ(entities[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if(dist < small && dist > 0) { small = dist; ent = entities[i]; } } return ent; } function nearArrow(range) { var entities = Entity.getAll(); var small = range; var ent = null; for (var i = 0; i < entities.length; i++) { var x = Entity.getX(entities[i]) - getPlayerX(); var y = Entity.getY(entities[i]) - getPlayerY(); var z = Entity.getZ(entities[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if(dist < small && dist > 0) { small = dist; ent = entities[i]; } } return ent; } function nearBow(range) { var entities = Entity.getAll(); var small = range; var ent = null; for (var i = 0; i < entities.length; i++) { var x = Entity.getX(entities[i]) - getPlayerX(); var y = Entity.getY(entities[i]) - getPlayerY(); var z = Entity.getZ(entities[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if(dist < small && dist > 0) { small = dist; ent = entities[i]; } } return ent; } function getNearestMob(maxrange) { var mobs = Entity.getAll(); var small = maxrange; var ent = null; for (var i = 0; i < mobs.length; i++) { var x = Entity.getX(mobs[i]) - getPlayerX(); var y = Entity.getY(mobs[i]) - getPlayerY(); var z = Entity.getZ(mobs[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if (dist < small && dist > 0 && Entity.getEntityTypeId(mobs[i]) <= 63 && Entity.getHealth(mobs[i]) >= 1) { small = dist; ent = mobs[i]; } } return ent; } function nearBlock(range) { var entities = Entity.getAll(); var small = range; var ent = null; for (var i = 0; i < entities.length; i++) { var x = Entity.getX(entities[i]) - getPlayerX(); var y = Entity.getY(entities[i]) - getPlayerY(); var z = Entity.getZ(entities[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if(dist < small && dist > 0) { small = dist; ent = entities[i]; } } return ent; } function Fasteat2(id) { Item.setProperties(4 + id, { "name": "apple", "id": 4, "icon": "apple", "category": "Miscellaneous", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 4, "saturation_modifier": "low", "is_meat": false } }); Item.setProperties(66 + id, { "name": "golden_apple", "id": 66, "icon": "apple_golden", "category": "Miscellaneous", "stack_by_data": true, "use_animation": "eat", "use_duration": uspe, "foil": false, "hover_text_color": "aqua", "food": { "nutrition": 4, "saturation_modifier": "supernatural", "is_meat": false, "effects": [ { "name": "regeneration", "chance": 1.0, "duration": 5, "amplifier": 1 }, { "name": "absorption", "chance": 1.0, "duration": 120, "amplifier": 0 } ], "enchanted_effects": [ { "name": "regeneration", "chance": 0.66, "duration": 30, "amplifier": 4 }, { "name": "absorption", "chance": 0.66, "duration": 120, "amplifier": 0 }, { "name": "resistance", "chance": 0.66, "duration": 300, "amplifier": 0 }, { "name": "fire_resistance", "chance": 0.66, "duration": 300, "amplifier": 0 } ] } }); Item.setProperties(210 + id, { "name": "appleEnchanted", "id": 210, "icon": "apple_golden", "category": "Miscellaneous", "hand_equipped": false, "stack_by_data": true, "use_animation": "eat", "use_duration": uspe, "foil": true, "hover_text_color": "light_purple", "food": { "nutrition": 4, "saturation_modifier": "supernatural", "is_meat": false, "effects": [ { "name": "regeneration", "chance": 1.0, "duration": 30, "amplifier": 4 }, { "name": "absorption", "chance": 1.0, "duration": 120, "amplifier": 0 }, { "name": "resistance", "chance": 1.0, "duration": 300, "amplifier": 0 }, { "name": "fire_resistance", "chance": 1.0, "duration": 300, "amplifier": 0 } ] } }); Item.setProperties(26 + id, { "name": "mushroom_stew", "id": 26, "icon": "mushroom_stew", "category": "Miscellaneous", "use_animation": "eat", "use_duration": uspe, "max_stack_size": 1, "food": { "nutrition": 6, "saturation_modifier": "normal", "is_meat": false, "using_converts_to": "item.bowl" } }); Item.setProperties(41 + id, { "name": "bread", "id": 41, "icon": "bread", "category": "Miscellaneous", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 5, "saturation_modifier": "normal", "is_meat": false } }); Item.setProperties(63 + id, { "name": "porkchop", "id": 63, "icon": "porkchop_raw", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 3, "saturation_modifier": "low", "is_meat": true } }); Item.setProperties(64 + id, { "name": "porkchop_cooked", "id": 64, "icon": "porkchop_cooked", "category": "Miscellaneous", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 8, "saturation_modifier": "good", "is_meat": true } }); Item.setProperties(93 + id, { "name": "fish", "id": 93, "icon": "fish", "use_animation": "eat", "use_duration": uspe, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 2, "saturation_modifier": "poor", "is_meat": true } }); Item.setProperties(204 + id, { "name": "salmon", "id": 204, "icon": "salmon", "use_animation": "eat", "use_duration": uspe, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 2, "saturation_modifier": "poor", "is_meat": true } }); Item.setProperties(205 + id, { "name": "clownfish", "id": 205, "icon": "clownfish", "use_animation": "eat", "use_duration": uspe, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 1, "saturation_modifier": "poor", "is_meat": true } }); Item.setProperties(206 + id, { "name": "pufferfish", "id": 206, "icon": "pufferfish", "use_animation": "eat", "use_duration": uspe, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 1, "saturation_modifier": "poor", "is_meat": true, "effects": [ { "name": "poison", "duration": 60, "amplifier": 3 }, { "name": "nausea", "duration": 15, "amplifier": 1 }, { "name": "hunger", "duration": 15, "amplifier": 2 } ] } }); Item.setProperties(94 + id, { "name": "cooked_fish", "id": 94, "icon": "cooked_fish", "use_animation": "eat", "use_duration": uspe, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 5, "saturation_modifier": "normal", "eat_sound": "random.burp", "is_meat": true } }); Item.setProperties(207 + id, { "name": "cooked_salmon", "id": 207, "icon": "cooked_salmon", "use_animation": "eat", "use_duration": uspe, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 6, "saturation_modifier": "good", "is_meat": true } }); Item.setProperties(101 + id, { "name": "cookie", "id": 101, "icon": "cookie", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 2, "saturation_modifier": "poor", "is_meat": false } }); Item.setProperties(104 + id, { "name": "melon", "id": 104, "icon": "melon", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 2, "saturation_modifier": "low", "is_meat": false } }); Item.setProperties(107 + id, { "name": "beef", "id": 107, "icon": "beef_raw", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 3, "saturation_modifier": "low", "is_meat": true } }); Item.setProperties(108 + id, { "name": "steak", "id": 108, "icon": "beef_cooked", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 8, "saturation_modifier": "good", "is_meat": true } }); Item.setProperties(109 + id, { "name": "chicken", "id": 109, "icon": "chicken_raw", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 2, "saturation_modifier": "low", "is_meat": true, "effects": [ { "name": "hunger", "chance": 0.3, "duration": 30, "amplifier": 0 } ] } }); Item.setProperties(110 + id, { "name": "cooked_chicken", "id": 110, "icon": "chicken_cooked", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 6, "saturation_modifier": "normal", "is_meat": true } }); Item.setProperties(167 + id, { "name": "muttonRaw", "id": 167, "icon": "mutton_raw", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 2, "saturation_modifier": "low", "is_meat": true } }); Item.setProperties(168 + id, { "name": "muttonCooked", "id": 168, "icon": "mutton_cooked", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 6, "saturation_modifier": "good", "is_meat": true } }); Item.setProperties(111 + id, { "name": "rotten_flesh", "id": 111, "icon": "rotten_flesh", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 4, "saturation_modifier": "poor", "is_meat": true, "effects": [ { "name": "hunger", "chance": 0.3, "duration": 30, "amplifier": 0 } ] } }); Item.setProperties(119 + id, { "name": "spider_eye", "id": 119, "icon": "spider_eye", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 2, "saturation_modifier": "good", "is_meat": false, "effects": [ { "name": "poison", "chance": 1.0, "duration": 5, "amplifier": 0 } ] } }); Item.setProperties(135 + id, { "name": "carrot", "id": 135, "icon": "carrot", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 3, "saturation_modifier": "normal", "is_meat": false }, "seed": { "crop_result": "carrots", "plant_at": "farmland" } }); Item.setProperties(136 + id, { "name": "potato", "id": 136, "icon": "potato", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 1, "saturation_modifier": "low", "is_meat": false }, "seed": { "crop_result": "potatoes", "plant_at": "farmland" } }); Item.setProperties(137 + id, { "name": "baked_potato", "id": 137, "icon": "potato_baked", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 5, "saturation_modifier": "normal", "is_meat": false } }); Item.setProperties(138 + id, { "name": "poisonous_potato", "id": 138, "icon": "potato_poisonous", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 2, "saturation_modifier": "low", "is_meat": false, "effects": [ { "name": "poison", "chance": 0.6, "duration": 5, "amplifier": 0 } ] } }); Item.setProperties(140 + id, { "name": "golden_carrot", "id": 140, "icon": "carrot_golden", "category": "Miscellaneous", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 6, "saturation_modifier": "supernatural", "is_meat": false } }); Item.setProperties(144 + id, { "name": "pumpkin_pie", "id": 144, "icon": "pumpkin_pie", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 8, "saturation_modifier": "low", "is_meat": false } }); Item.setProperties(155 + id, { "name": "rabbit", "id": 155, "icon": "rabbit", "category": "Miscellaneous", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 3, "saturation_modifier": "low", "is_meat": true } }); Item.setProperties(156 + id, { "name": "cooked_rabbit", "id": 156, "icon": "rabbit_cooked", "category": "Miscellaneous", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 5, "saturation_modifier": "normal", "is_meat": true } }); Item.setProperties(157 + id, { "name": "rabbit_stew", "id": 157, "icon": "rabbit_stew", "category": "Miscellaneous", "use_animation": "eat", "use_duration": uspe, "max_stack_size": 1, "food": { "nutrition": 10, "saturation_modifier": "normal", "using_converts_to": "bowl", "is_meat": true } }); Item.setProperties(201 + id, { "name": "beetroot", "id": 201, "icon": "beetroot", "use_animation": "eat", "use_duration": uspe, "food": { "nutrition": 1, "saturation_modifier": "normal", "is_meat": false } }); Item.setProperties(203 + id, { "name": "beetroot_soup", "id": 203, "icon": "beetroot_soup", "use_animation": "eat", "use_duration": uspe, "max_stack_size": 1, "food": { "nutrition": 6, "saturation_modifier": "normal", "using_converts_to": "bowl", "is_meat": false } }); } function Fasteat3(id) { Item.setProperties(4 + id, { "name": "apple", "id": 4, "icon": "apple", "category": "Miscellaneous", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 4, "saturation_modifier": "low", "is_meat": false } }); Item.setProperties(66 + id, { "name": "golden_apple", "id": 66, "icon": "apple_golden", "category": "Miscellaneous", "stack_by_data": true, "use_animation": "eat", "use_duration": 32, "foil": false, "hover_text_color": "aqua", "food": { "nutrition": 4, "saturation_modifier": "supernatural", "is_meat": false, "effects": [ { "name": "regeneration", "chance": 1.0, "duration": 5, "amplifier": 1 }, { "name": "absorption", "chance": 1.0, "duration": 120, "amplifier": 0 } ], "enchanted_effects": [ { "name": "regeneration", "chance": 0.66, "duration": 30, "amplifier": 4 }, { "name": "absorption", "chance": 0.66, "duration": 120, "amplifier": 0 }, { "name": "resistance", "chance": 0.66, "duration": 300, "amplifier": 0 }, { "name": "fire_resistance", "chance": 0.66, "duration": 300, "amplifier": 0 } ] } }); Item.setProperties(210 + id, { "name": "appleEnchanted", "id": 210, "icon": "apple_golden", "category": "Miscellaneous", "hand_equipped": false, "stack_by_data": true, "use_animation": "eat", "use_duration": 32, "foil": true, "hover_text_color": "light_purple", "food": { "nutrition": 4, "saturation_modifier": "supernatural", "is_meat": false, "effects": [ { "name": "regeneration", "chance": 1.0, "duration": 30, "amplifier": 4 }, { "name": "absorption", "chance": 1.0, "duration": 120, "amplifier": 0 }, { "name": "resistance", "chance": 1.0, "duration": 300, "amplifier": 0 }, { "name": "fire_resistance", "chance": 1.0, "duration": 300, "amplifier": 0 } ] } }); Item.setProperties(26 + id, { "name": "mushroom_stew", "id": 26, "icon": "mushroom_stew", "category": "Miscellaneous", "use_animation": "eat", "use_duration": 32, "max_stack_size": 1, "food": { "nutrition": 6, "saturation_modifier": "normal", "is_meat": false, "using_converts_to": "item.bowl" } }); Item.setProperties(41 + id, { "name": "bread", "id": 41, "icon": "bread", "category": "Miscellaneous", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 5, "saturation_modifier": "normal", "is_meat": false } }); Item.setProperties(63 + id, { "name": "porkchop", "id": 63, "icon": "porkchop_raw", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 3, "saturation_modifier": "low", "is_meat": true } }); Item.setProperties(64 + id, { "name": "porkchop_cooked", "id": 64, "icon": "porkchop_cooked", "category": "Miscellaneous", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 8, "saturation_modifier": "good", "is_meat": true } }); Item.setProperties(93 + id, { "name": "fish", "id": 93, "icon": "fish", "use_animation": "eat", "use_duration": 32, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 2, "saturation_modifier": "poor", "is_meat": true } }); Item.setProperties(204 + id, { "name": "salmon", "id": 204, "icon": "salmon", "use_animation": "eat", "use_duration": 32, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 2, "saturation_modifier": "poor", "is_meat": true } }); Item.setProperties(205 + id, { "name": "clownfish", "id": 205, "icon": "clownfish", "use_animation": "eat", "use_duration": 32, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 1, "saturation_modifier": "poor", "is_meat": true } }); Item.setProperties(206 + id, { "name": "pufferfish", "id": 206, "icon": "pufferfish", "use_animation": "eat", "use_duration": 32, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 1, "saturation_modifier": "poor", "is_meat": true, "effects": [ { "name": "poison", "duration": 60, "amplifier": 3 }, { "name": "nausea", "duration": 15, "amplifier": 1 }, { "name": "hunger", "duration": 15, "amplifier": 2 } ] } }); Item.setProperties(94 + id, { "name": "cooked_fish", "id": 94, "icon": "cooked_fish", "use_animation": "eat", "use_duration": 32, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 5, "saturation_modifier": "normal", "eat_sound": "random.burp", "is_meat": true } }); Item.setProperties(207 + id, { "name": "cooked_salmon", "id": 207, "icon": "cooked_salmon", "use_animation": "eat", "use_duration": 32, "max_damage": 0, "stacked_by_data": true, "food": { "nutrition": 6, "saturation_modifier": "good", "is_meat": true } }); Item.setProperties(101 + id, { "name": "cookie", "id": 101, "icon": "cookie", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 2, "saturation_modifier": "poor", "is_meat": false } }); Item.setProperties(104 + id, { "name": "melon", "id": 104, "icon": "melon", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 2, "saturation_modifier": "low", "is_meat": false } }); Item.setProperties(107 + id, { "name": "beef", "id": 107, "icon": "beef_raw", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 3, "saturation_modifier": "low", "is_meat": true } }); Item.setProperties(108 + id, { "name": "steak", "id": 108, "icon": "beef_cooked", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 8, "saturation_modifier": "good", "is_meat": true } }); Item.setProperties(109 + id, { "name": "chicken", "id": 109, "icon": "chicken_raw", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 2, "saturation_modifier": "low", "is_meat": true, "effects": [ { "name": "hunger", "chance": 0.3, "duration": 30, "amplifier": 0 } ] } }); Item.setProperties(110 + id, { "name": "cooked_chicken", "id": 110, "icon": "chicken_cooked", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 6, "saturation_modifier": "normal", "is_meat": true } }); Item.setProperties(167 + id, { "name": "muttonRaw", "id": 167, "icon": "mutton_raw", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 2, "saturation_modifier": "low", "is_meat": true } }); Item.setProperties(168 + id, { "name": "muttonCooked", "id": 168, "icon": "mutton_cooked", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 6, "saturation_modifier": "good", "is_meat": true } }); Item.setProperties(111 + id, { "name": "rotten_flesh", "id": 111, "icon": "rotten_flesh", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 4, "saturation_modifier": "poor", "is_meat": true, "effects": [ { "name": "hunger", "chance": 0.3, "duration": 30, "amplifier": 0 } ] } }); Item.setProperties(119 + id, { "name": "spider_eye", "id": 119, "icon": "spider_eye", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 2, "saturation_modifier": "good", "is_meat": false, "effects": [ { "name": "poison", "chance": 1.0, "duration": 5, "amplifier": 0 } ] } }); Item.setProperties(135 + id, { "name": "carrot", "id": 135, "icon": "carrot", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 3, "saturation_modifier": "normal", "is_meat": false }, "seed": { "crop_result": "carrots", "plant_at": "farmland" } }); Item.setProperties(136 + id, { "name": "potato", "id": 136, "icon": "potato", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 1, "saturation_modifier": "low", "is_meat": false }, "seed": { "crop_result": "potatoes", "plant_at": "farmland" } }); Item.setProperties(137 + id, { "name": "baked_potato", "id": 137, "icon": "potato_baked", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 5, "saturation_modifier": "normal", "is_meat": false } }); Item.setProperties(138 + id, { "name": "poisonous_potato", "id": 138, "icon": "potato_poisonous", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 2, "saturation_modifier": "low", "is_meat": false, "effects": [ { "name": "poison", "chance": 0.6, "duration": 5, "amplifier": 0 } ] } }); Item.setProperties(140 + id, { "name": "golden_carrot", "id": 140, "icon": "carrot_golden", "category": "Miscellaneous", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 6, "saturation_modifier": "supernatural", "is_meat": false } }); Item.setProperties(144 + id, { "name": "pumpkin_pie", "id": 144, "icon": "pumpkin_pie", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 8, "saturation_modifier": "low", "is_meat": false } }); Item.setProperties(155 + id, { "name": "rabbit", "id": 155, "icon": "rabbit", "category": "Miscellaneous", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 3, "saturation_modifier": "low", "is_meat": true } }); Item.setProperties(156 + id, { "name": "cooked_rabbit", "id": 156, "icon": "rabbit_cooked", "category": "Miscellaneous", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 5, "saturation_modifier": "normal", "is_meat": true } }); Item.setProperties(157 + id, { "name": "rabbit_stew", "id": 157, "icon": "rabbit_stew", "category": "Miscellaneous", "use_animation": "eat", "use_duration": 32, "max_stack_size": 1, "food": { "nutrition": 10, "saturation_modifier": "normal", "using_converts_to": "bowl", "is_meat": true } }); Item.setProperties(201 + id, { "name": "beetroot", "id": 201, "icon": "beetroot", "use_animation": "eat", "use_duration": 32, "food": { "nutrition": 1, "saturation_modifier": "normal", "is_meat": false } }); Item.setProperties(203 + id, { "name": "beetroot_soup", "id": 203, "icon": "beetroot_soup", "use_animation": "eat", "use_duration": 32, "max_stack_size": 1, "food": { "nutrition": 6, "saturation_modifier": "normal", "using_converts_to": "bowl", "is_meat": false } }); } function gameLoop() { var thisLoop = new Date; fps = 1000 / (thisLoop - lastLoop); lastLoop = thisLoop; } function noCreeper2() { if(Entity.getHealth(getPlayerEnt())) { setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*0.93); setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*0.93); } } function noCreeper3() { if(Entity.getHealth(getPlayerEnt())) { setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*0.25); setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*0.13); } } function SwordAtEnt(ent, pos){if(ent!=null){var playerX=Entity['getX'](ent)-getPlayerX();var playerY=Entity['getY'](ent)-getPlayerY();var playerZ=Entity['getZ'](ent)-getPlayerZ();if(pos!=null&&posinstanceofArray){playerX=Entity['getX'](ent)-pos[0];playerY=Entity['getY'](ent)-pos[1];playerZ=Entity['getZ'](ent)-pos[2];}var playerID = "63";if(Entity['getEntityTypeId'](ent)!=playerID)playerY+=0.5;var an0x7a=Entity['getX'](ent)+0.5;var hsd0x7nul1=Entity['getY'](ent);var d4tla5h=Entity['getZ'](ent)+0.5;var len=Math['sqrt'](playerX*playerX+playerY*playerY+playerZ*playerZ);var playerY=playerY/len;var screen1=Math['asin'](playerY);screen1=screen1*180.0/Math['PI'];screen1=-screen1;var screen2=-Math['atan2'](an0x7a-(Player['getX']()+0.5),d4tla5h-(Player['getZ']()+0.5))*(180/Math['PI']);if(screen1<89&&screen1>-89){Entity['setRot'](Player['getEntity'](),screen2,screen1);}}}; function SwordAimAt(ent){var velocity=1;var posX=Entity['getX'](ent)-Player['getX']();var posY=Entity['getEntityTypeId'](ent)==EntityType.PLAYER?Entity['getY'](ent)-Player['getY']():Entity['getY'](ent)+1-Player['getY']();var posZ=Entity['getZ'](ent)-Player['getZ']();var screen2=(Math['atan2'](posZ,posX)*180/Math['PI'])-90;var y2=Math['sqrt'](posX*posX+posZ*posZ);var pi9x=0.007;var semp=(velocity*velocity*velocity*velocity-pi9x*(pi9x*(y2*y2)+2*posY*(velocity*velocity)));var screen1=-(180/Math['PI'])*(Math['atan']((velocity*velocity-Math['sqrt'](semp))/(pi9x*y2)));if(screen1<89&&screen1>-89){/*aim*/setRot(Player['getEntity'](),screen2,screen1);}}; function modTick() { if(aimbot) { var ent = getNearestEntity(8) if(ent != null) crosshairAimAt(ent); } if(radss || Entity.getHealth(getPlayerEnt()) <= 0){ if(this.tick > 0) { Tick--; } else { Entity.setImmobile(getPlayerEnt(), false); } if(this.health > Entity.getHealth(getPlayerEnt())){ Entity.setImmobile(getPlayerEnt(), true); this.Tick = 1; } this.Tick = 0; this.health = Entity.getHealth(getPlayerEnt()); } if(ays) {    if(Entity.getVelY(getPlayerEnt())< -0.9) { setVelX(Player.getEntity(), 0.00000) setVelZ(Player.getEntity(), 0.00000) ModPE.showTipMessage("Anti-Cheat Detected: Glide Hacks") }    if(Entity.getVelX(getPlayerEnt())< -0.2) {    if(Entity.getVelZ(getPlayerEnt())< -0.2) { setVelX(Player.getEntity(), 0.00000) setVelZ(Player.getEntity(), 0.00000) ModPE.showTipMessage("Anti-Cheat Detected: Fly Hacks") } }    if(Entity.getVelX(getPlayerEnt())< -0.1) {    if(Entity.getVelZ(getPlayerEnt())< -0.1) { setVelX(Player.getEntity(), 0.00000) setVelZ(Player.getEntity(), 0.00000) ModPE.showTipMessage("Anti-Cheat Detected: Flight/Speed Hacks") } }    if(Entity.getVelX(getPlayerEnt())< -0.9) {    if(Entity.getVelZ(getPlayerEnt())< -0.9) { setVelX(Player.getEntity(), 0.00000) setVelZ(Player.getEntity(), 0.00000) ModPE.showTipMessage("Anti-Cheat Detected: Suspicious/Movement") } } if(Entity.getHealth(getPlayerEnt()) <= -0.1) { setVelX(Player.getEntity(), 0.00000) setVelZ(Player.getEntity(), 0.00000) ModPE.showTipMessage("Anti-Cheat Detected: GodMode") } if(Player.getPointedBlockId() == 0) { //InstantMine detector (Player.getPointedBlockX(), Player.getPointedBlockY(), Player.getPointedBlockZ(), true); ModPE.showTipMessage("Anti-Cheat Detected: InstantMine/FastBreak ") } } } var px = Player.getX(); var py = Player.getY(); var pz = Player.getZ(); var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); function rptask() { ctx.runOnUiThread(new java.lang.Runnable({ run: function () { new android.os.Handler().postDelayed(new java.lang.Runnable({ run: function () { if(gps && Utils.Player.isOnGround()) { lhtick++; if(lhtick >= 8) { lhtick = 0; } if(Utils.Velocity.calculateSpeed() >= 0.200 && lhtick == 0) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.35); setVelZ(getPlayerEnt(), playerDir[2]); } else if(Utils.Velocity.calculateSpeed() <= 0.100 && lhtick == 0) { setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); } } if(testss && Utils.Player.isInWater()) { var player = getPlayerEnt(); var yaw = Math.floor(Entity.getYaw(player)); var pitch = Math.floor(Entity.getPitch(player)); Entity.setRot(player, yaw +30, pitch) setVelY(getPlayerEnt(), 0.2); } if(waters && Utils.Player.isInWater()) { lhtick++; if(lhtick >= 8) { lhtick = 0; } if(Utils.Velocity.calculateSpeed() >= 0.100 && lhtick == 0) { setVelY(getPlayerEnt(), 0.00000); } else if(Utils.Velocity.calculateSpeed() <= 0.100 && lhtick == 0) { setVelY(getPlayerEnt(), 0.1); } } if(lads) { bgtick++ if(Entity.getVelY(getPlayerEnt()) < 1) { setVelY(Player.getEntity(), -0.3) if(bgtick == 8) { setVelY(getPlayerEnt(), -0.7) setVelY(Player.getEntity(), +2) bgtick = 0; } } } if(pallss) { bgtick++ if(Entity.getVelY(getPlayerEnt()) < 2) { setVelY(Player.getEntity(), -0.00000) if(bgtick == 8) { setVelY(getPlayerEnt(), -0.7) bgtick = 0; } } } if(safes) {    if(Entity.getVelY(getPlayerEnt())< -0.3) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 1); setVelY(Player.getEntity(), y * 1); setVelZ(Player.getEntity(), z * 1); var player = getPlayerEnt(); var yaw = Math.floor(Entity.getYaw(player)); var pitch = Math.floor(Entity.getPitch(player)); Entity.setRot(player, yaw +30, pitch) } } if(swords) { var ent = getNearestEntity(30); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { var slotId = 0; var getInvSword = Player.getInventorySlot(slotId); if(getInvSword == 261) { var invSword = slotId; } else { slotId++; } if(slotId = 27) { slotId = 0; } Player.setSelectedSlotId(invSword); } } if(potions) {    if(Entity.getVelY(getPlayerEnt())< -0.5) { setVelY(Player.getEntity(), 0.00000) } } if(speedss) { var ent = getNearestEntity(4); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { var slotId = 0; var getInvSword = Player.getInventorySlot(slotId); if(getInvSword == 322) { var invSword = slotId; } else { slotId++; } if(slotId = 27) { slotId = 0; } Player.setSelectedSlotId(invSword); } } if(grappless && Utils.Player.isInWater()) { setVelY(Player.getEntity(), -0.2) var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), 0.2 * playerDir[0]); setVelZ(getPlayerEnt(), 0.2 * playerDir[2]); } if(bouncess) { var ent = getNearestEntity(30); var ent = Player.getPointedEntity(); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { } } if(followss && Utils.Player.isCollidedHorizontally()) { var player = getPlayerEnt(); var yaw = Math.floor(Entity.getYaw(player)); var pitch = Math.floor(Entity.getPitch(player)); Entity.setRot(player, yaw +3, pitch) setVelY(Player.getEntity(), 0.4) } if(followss) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -0,1); setVelX(getPlayerEnt(), 0.2 * playerDir[0]); setVelZ(getPlayerEnt(), 0.2 * playerDir[2]); } if(followss && Utils.Player.isInWater()) { setVelY(Player.getEntity(), 0.1) } if(followss) { var ent = getNearestEntity(30); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -0,1); setVelX(getPlayerEnt(), 0.3 * playerDir[0]); setVelZ(getPlayerEnt(), 0.3 * playerDir[2]); } } if(followss) { var ent = getNearestEntity(2); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { Entity.setSneaking(Player.getEntity(), 3); } } if(followss) { if(Entity.getHealth(getPlayerEnt()) <= 0) { ModPE.leaveGame(); } } if(spams) { var slotId = 0; var getInvSword = Player.getInventorySlot(slotId); if(getInvSword == 276 || getInvSword == 268 || getInvSword == 283 || getInvSword == 267 || getInvSword == 272) { var invSword = slotId; } else { slotId++; } if(slotId = 27) { slotId = 0; } var ent = getNearestEntity(8); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { Player.setSelectedSlotId(invSword); } } if(underblockss) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 57, 0); } if(views) { var egg = nearEgg(6); if(egg != null && Entity.getEntityTypeId(egg) == EntityType.EGG) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * -2); setVelY(Player.getEntity(), y * -2); setVelZ(Player.getEntity(), z * -2); } } if(farbot) { var tnt = nearTnt(9); if(tnt != null && Entity.getEntityTypeId(tnt) == EntityType.PRIMED_TNT) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * -2); setVelY(Player.getEntity(), y * -2); setVelZ(Player.getEntity(), z * -2); } } if(dodgess) { var fireball = nearArrow(9); if(fireball != null && Entity.getEntityTypeId(fireball) == EntityType.FIREBALL) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * -2); setVelY(Player.getEntity(), y * -2); setVelZ(Player.getEntity(), z * -2); } } if(bowaimbotss && getCarriedItem() == 272) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { SwordAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 267) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 276) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 268) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 283) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 275) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 279) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 286) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 258) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 271) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(bowaimbotss && getCarriedItem() == 261) { var ent = getNearestEntity(10); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { if(ent != null) crosshairAimAt(ent); } } if(stealthss && getCarriedItem() == 261) { setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.1); setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.1); } if(cspeedss && getCarriedItem() == 261) { var ent = getNearestEntity(30) if(ent != null) crosshairAimAt(ent); } if (jumpspeedss) { var ent = getNearestEntity(4) if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()+1.05, getPlayerZ()) var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -0,1); setVelX(getPlayerEnt(), 0.3 * playerDir[0]); setVelZ(getPlayerEnt(), 0.3 * playerDir[2]); } } if(jumpspeedss) { var ent = getNearestEntity(6) if(ent != null) crosshairAimAt(ent); } if(backfacess) { setVelY(Player.getEntity(), 0.00000) } if(sglidess && Utils.Player.isCollidedHorizontally()) { var ent = getNearestEntity(10) if(ent != null) crosshairAimAt(ent); } if (dmgglidess) { var ent = getNearestEntity(8); var hit = getYaw() + 45; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.2); setVelZ(Player.getEntity(), z * 0.2); } if (dmgglidess) { var ent = getNearestEntity(8); if(ent != null) crosshairAimAt(ent); } if(autoclimbss) { var player = getPlayerEnt(); var yaw = Math.floor(Entity.getYaw(player)); var pitch = Math.floor(Entity.getPitch(player)); if(pitch <=2) { Entity.setRot(player, yaw, 1) } } if(placetpss) { Level.setTile(x,y,z,46); Level.setTile(x,y-1,z,46); Level.setTile(x,y+1,z,46); Level.setTile(x+1,y,z,46); Level.setTile(x-1,y,z,46); Level.setTile(x,y,z+1,46); Level.setTile(x,y,z-1,46); } if(placetpss) { Level.setTile(x,y,z,1); Level.setTile(x,y-1,z,1); Level.setTile(x,y+1,z,1); Level.setTile(x+1,y,z,1); Level.setTile(x-1,y,z,1); Level.setTile(x,y,z+1,1); Level.setTile(x,y,z-1,1); } if(placetpss) { Level.setTile(x,y,z,2); Level.setTile(x,y-1,z,2); Level.setTile(x,y+1,z,2); Level.setTile(x+1,y,z,2); Level.setTile(x-1,y,z,2); Level.setTile(x,y,z+1,2); Level.setTile(x,y,z-1,2); } if(placetpss) { Level.setTile(x,y,z,8); Level.setTile(x,y-1,z,8); Level.setTile(x,y+1,z,8); Level.setTile(x+1,y,z,8); Level.setTile(x-1,y,z,8); Level.setTile(x,y,z+1,8); Level.setTile(x,y,z-1,8); } if(placetpss) { Level.setTile(x,y,z,9); Level.setTile(x,y-1,z,9); Level.setTile(x,y+1,z,9); Level.setTile(x+1,y,z,9); Level.setTile(x-1,y,z,9); Level.setTile(x,y,z+1,9); Level.setTile(x,y,z-1,9); } if(placetpss) { Level.setTile(x,y,z,52); Level.setTile(x,y-1,z,52); Level.setTile(x,y+1,z,52); Level.setTile(x+1,y,z,52); Level.setTile(x-1,y,z,52); Level.setTile(x,y,z+1,52); Level.setTile(x,y,z-1,52); } if (leetspeakss && Utils.Player.isCollidedHorizontally()) { Entity.setPositionRelative(getPlayerEnt(), 0, +2.53, 0); } if(glidess && Utils.Player.isOnGround()) { minus++; if(minus >= 8) { minus = 0; } if(Utils.Velocity.calculateSpeed() >= 0.200 && lhtick == 0) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.35); setVelZ(getPlayerEnt(), playerDir[2]); Entity.setPositionRelative(getPlayerEnt(), 0, 0.+4, 0); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 2); setVelY(Player.getEntity(), y * 0.6); setVelZ(Player.getEntity(), z * 2); } else if(Utils.Velocity.calculateSpeed() <= 0.100 && lhtick == 0) { setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); } } if(glidess){    if(Entity.getVelY(getPlayerEnt())< -0.2) { setVelY(Player.getEntity(), -0.5) setVelY(Player.getEntity(), 0.00) Entity.setPositionRelative(getPlayerEnt(), 0, -0.1, 0); } } if(criticaltrailsss) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); var player = getPlayerEnt(); Level.setTile(x,y,z,0); Level.setTile(x,y-3,z,0); Level.setTile(x,y+2,z,0); Level.setTile(x+2,y,z,0); Level.setTile(x-3,y,z,0); Level.setTile(x,y,z+2,0); Level.setTile(x,y,z-3,0); } if(bouncefly){ var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.45); setVelZ(getPlayerEnt(), playerDir[2]); setVelY(getPlayerEnt(), -0.4); if(time !== 0) { time--; } if(time == 0) { time = 3; setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); setVelY(getPlayerEnt(), 0.3); } } if(cstepss){ var ent = getNearestEntity(8); if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.1); setVelZ(getPlayerEnt(), playerDir[2]); setVelY(getPlayerEnt(), -0.9); if(time !== 0) { time--; } if(time == 0) { time = 3; setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); setVelY(getPlayerEnt(), 0.5); } } } if(cstepss){ var ent = getNearestEntity(8) if(ent != null) crosshairAimAt(ent); } if(elevatored){ var ent = getNearestEntity(8) if(ent != null) crosshairAimAt(ent); } if(airjumped){ var ent = getNearestEntity(8) var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 30) * Math.PI / 180, getPitch() * Math.PI / 180 * -3); setVelX(getPlayerEnt(), 0.2 * playerDir[0]); setVelZ(getPlayerEnt(), 0.2 * playerDir[2]); } if(airjumped){ var ent = getNearestEntity(8) if(ent != null) crosshairAimAt(ent); } if(afkss){ var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -0,1); setVelX(getPlayerEnt(), 0.1 * playerDir[0]); setVelZ(getPlayerEnt(), 0.1 * playerDir[2]); var player = getPlayerEnt(); var yaw = Math.floor(Entity.getYaw(player)); var pitch = Math.floor(Entity.getPitch(player)); Entity.setRot(player, yaw +30, pitch) Entity.setRot(player, yaw -20, pitch) } if(ddoss){ ModPE.showTipMessage("§bKills: "+YourKills+" | Deaths: "+YourDeaths) } if(velocss && Utils.Player.isOnGround()){ var packetHit = true; var getHitCrit = false; setVelY(getPlayerEnt(), -0.3); if(time !== 0) { time--; } if(time == 0) { time = 3; setVelY(getPlayerEnt(), 0.3); } } if(cheatss && Utils.Player.isOnGround()) { minus++; if(minus >= 8) { minus = 0; } if(Utils.Velocity.calculateSpeed() >= 0.200 && lhtick == 0) { setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); } else if(Utils.Velocity.calculateSpeed() <= 0.100 && lhtick == 0) { setVelY(getPlayerEnt(), 0.2); } } if(cheatss && Utils.Player.isOnGround()){ Entity.setPositionRelative(getPlayerEnt(), 0, 0.00, 0); if(minus !== 0) { minus--; } if(minus == 0) { minus = 10; setVelY(getPlayerEnt(), 0.000); } } if(legitaurass && Utils.Player.isOnGround()){ Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()+1.05, getPlayerZ()); if(time !== 0) { time--; } if(time == 0) { time = 3; var ent = getNearestEntity(8) if(ent != null) crosshairAimAt(ent); } } if(betterladss && Utils.Player.isOnLadder()){ Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()+1.05, getPlayerZ()); if(time !== 0) { time--; } if(time == 0) { time = 3; Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()+2.05, getPlayerZ()); } } if(sfwalkss) { setVelY(getPlayerEnt(), -0.001); Entity.setSneaking(Player.getEntity(), 300); } if(radiuss) { var ent = getNearestEntity(100); ModPE.showTipMessage( ChatColor.WHITE + "Player Detected: "+ ChatColor.RED + Player.getName(ent) + ChatColor.RED + ""); } if(enchantss){    if(Entity.getVelY(getPlayerEnt())< -0.3) { var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.5); setVelY(getPlayerEnt(), +0.20); setVelY(getPlayerEnt(), +0.10); } } if(enchantss){ setVelY(getPlayerEnt(), -100); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.3); setVelY(Player.getEntity(), y * 0.3); setVelZ(Player.getEntity(), z * 0.3); if(time !== 0) { time--; } if(time == 0) { time = 3; setVelY(getPlayerEnt(), +0.20); } } if(days && Utils.Player.isInWater()) { setVelY(getPlayerEnt(), -100); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.3); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.3); if(time !== 0) { time--; } if(time == 0) { time = 3; setVelY(getPlayerEnt(), +0.2); Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()+1.04, getPlayerZ()); } } if(cords){ var block = nearBlock(100); if(block != null && Entity.getEntityTypeId(block) == EntityType.FALLING_BLOCK) { Entity.setPositionRelative(getPlayerEnt(), 0, 0.2, 0); } } if(invss && Utils.Player.isCollidedHorizontally()) {    if(Entity.getVelY(getPlayerEnt())< -0.3) { Entity.setPositionRelative(getPlayerEnt(), 0, +5.53, 0); Entity.setSneaking(Player.getEntity(), 300); } } if (teless && Utils.Player.isOnGround()) { setVelY(getPlayerEnt(), +0.3); if(time !== 0) { time--; } if(time == 0) { time = 10; var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.8); setVelY(Player.getEntity(), y * 0.8); setVelZ(Player.getEntity(), z * 0.8); } } if(pzss) { var ent = getNearArrow(2) if(ent != null) arrowAimAt(ent); } if(ipss) { var ent = getNearestEntity(8) if(ent != null) godModeEnt(ent); } if(ipss) { var ent = getNearestEntity(8) if(ent != null) crosshairAimAt(ent); } if(tpdodss) { var arrow = nearBow(6); if(arrow != null && Entity.getEntityTypeId(arrow) == EntityType.ARROW) { setPosition(getPlayerEnt(), Entity.getX(ent), Entity.getY(ent), Entity.getZ(ent)); } } if(scafss && getCarriedItem() == 57) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 57, 0); } if(scafss && getCarriedItem() == 1) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 1, 0); } if(scafss && getCarriedItem() == 2) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 2, 0); } if(scafss && getCarriedItem() == 3) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 3, 0); } if(scafss && getCarriedItem() == 4) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 4, 0); } if(scafss && getCarriedItem() == 5) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 5, 0); } if(scafss && getCarriedItem() == 7) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 7, 0); } if(scafss && getCarriedItem() == 12) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 12, 0); } if(scafss && getCarriedItem() == 13) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 13, 0); } if(scafss && getCarriedItem() == 14) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 14, 0); } if(scafss && getCarriedItem() == 15) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 15, 0); } if(scafss && getCarriedItem() == 16) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 16, 0); } if(scafss && getCarriedItem() == 17) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 17, 0); } if(scafss && getCarriedItem() == 18) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 18, 0); } if(scafss && getCarriedItem() == 19) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 19, 0); } if(scafss && getCarriedItem() == 20) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 20, 0); } if(scafss && getCarriedItem() == 21) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 21, 0); } if(scafss && getCarriedItem() == 22) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 22, 0); } if(scafss && getCarriedItem() == 23) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 23, 0); } if(scafss && getCarriedItem() == 24) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 24, 0); } if(scafss && getCarriedItem() == 25) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 25, 0); } if(scafss && getCarriedItem() == 35) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 35, 0); } if(scafss && getCarriedItem() == 41) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 41, 0); } if(scafss && getCarriedItem() == 42) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 42, 0); } if(scafss && getCarriedItem() == 49) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 49, 0); } if(scafss && getCarriedItem() == 46) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setTile(x, y-2, z, 46, 0); } if(fotss) { var ent = getNearestEntity(10) if(ent != null) crosshairAimAt(ent); Entity.setSneaking(Player.getEntity(), 10); var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -0,1); setVelX(getPlayerEnt(), 0.1 * playerDir[0]); setVelZ(getPlayerEnt(), 0.1 * playerDir[2]); } if(fotss) { var ent = getNearestEntity(5) if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 20) * Math.PI / 180, getPitch() * Math.PI / 180 * -0); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.7); setVelZ(getPlayerEnt(), playerDir[2]); } } if(fotss) { var ent = getNearestEntity(3) if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) { var hit = getYaw() - 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.8); setVelY(Player.getEntity(), y * 0.8); setVelZ(Player.getEntity(), z * 0.8); } } if(mobaimbotss) { var ent = getNearestMob(6); if(ent != null) { aimAtEnt(ent); } } if(blinkss) { Entity.setPositionRelative(getPlayerEnt(), 0, 0.000000, 0); if(time !== 0) { time--; } if(time == 0) { time = 250; var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 5); setVelY(Player.getEntity(), y * 5); setVelZ(Player.getEntity(), z * 5); } } if(gweds) { Entity.setPositionRelative(getPlayerEnt(), 0, 0.00000, 0); if(time !== 0) { time--; } if(time == 0) { time = 250; var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); setVelY(getPlayerEnt(), +0.3); } } if(gweds && Utils.Player.isOnGround()) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); Entity.setPositionRelative(getPlayerEnt(), 0, 1, 0); } if(xsds && Utils.Player.isOnGround()) { var x = Player.getX(); var y = Player.getY(); var z = Player.getZ(); Entity.setPositionRelative(getPlayerEnt(), 0, 0.000000, 0000); Entity.setPositionRelative(getPlayerEnt(), 0, 000000000, 0); } if(xsds && Utils.Player.isOnGround()) { setVelY(getPlayerEnt(), -0.0000000); function Motion(){ for (var i = 1; i <= 180; i++) { Block.setFriction(i, 98); Block.setFriction(i, 27); } } } if(statds) { ModPE.showTipMessage("Item ID: " + Player.getCarriedItem() + ":" + Player.getCarriedItemData() + "\n§aPlayer Name: " + Player.getName(Player.getEntity()) +"\nYour Health: "+Entity.getHealth(getPlayerEnt())+"/20\n§aServer: "+Level.getWorldName()+"\nTime: "+Level.getTime()+"\nGamemode: " +Level.getGameMode()+"\nx:" + Math.round(Player.getX())+" y:"+Math.round(Player.getY())+" z:"+Math.round(Player.getZ()) + "\nRain/Lightning: " + Math.round(Level.getRainLevel()) + "/" + Math.round(Level.getLightningLevel()) + "\nV " + ModPE.getMinecraftVersion() + "\nBiome: " + Level.getBiomeName()); } if(godaimbotss){    if(Entity.getVelY(getPlayerEnt())< -0.2) { setVelY(Player.getEntity(), -0.5) setVelY(Player.getEntity(), 0.00) Entity.setPositionRelative(getPlayerEnt(), 0, -0.1, 0); } } if(walkss) { setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt()) * 0.12); setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt()) * 0.12); if (time !== 0) { time-- }; if (time == 0) { time = 25; setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt()) * 1.9); setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt()) * 1.9); } } if (stealss && Utils.Player.isOnGround()) { setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt()) * 1.1); setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt()) * 1.1); if (time !== 0) { time-- }; if (time == 0) { time = 350; setVelY(getPlayerEnt(), -2) } }; if (stealss && Utils.Player.isOnGround()) { lhtick++; if (lhtick >= 8) { lhtick = 0 }; if(Utils.Velocity.calculateSpeed() >= 0.200 && lhtick == 0) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.25); setVelZ(getPlayerEnt(), playerDir[2]); } else if(Utils.Velocity.calculateSpeed() <= 0.100 && lhtick == 0) { setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt()) * 1.1); setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt()) * 1.1) } } if(pass) { if(Entity.getHealth(getPlayerEnt()) <= 8) { var player = getPlayerEnt(); var yaw = Math.floor(Entity.getYaw(player)); var pitch = Math.floor(Entity.getPitch(player)); if(pitch <=90) { Entity.setRot(player, yaw, 90) } } } if(alkss) { //Crouch code made by HACKER laastad if(Entity.isSneaking(Player.getEntity()) == true){ var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), 0.8 * playerDir[0]); setVelZ(getPlayerEnt(), 0.8 * playerDir[2]); Entity.setPositionRelative(getPlayerEnt(), 0, -0.0000, 0); Entity.setPositionRelative(getPlayerEnt(), 0, 0.00000, 0); setVelY(getPlayerEnt(), 0.000000);    if(Entity.getVelY(getPlayerEnt())< -0.98) { Entity.setPositionRelative(getPlayerEnt(), 0, 0.00000, 0); setVelY(getPlayerEnt(), 0.000000); Entity.setPositionRelative(getPlayerEnt(), 0, 0.00000, 0); } } } if(eless && Utils.Player.isOnGround()) { minus++; if(minus >= 8) { minus = 0; } if(Utils.Velocity.calculateSpeed() >= 0.200 && lhtick == 0) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.35); setVelZ(getPlayerEnt(), playerDir[2]); Entity.setPositionRelative(getPlayerEnt(), 0, 0.+4, 0); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 2); setVelY(Player.getEntity(), y * 0.6); setVelZ(Player.getEntity(), z * 2); } else if(Utils.Velocity.calculateSpeed() <= 0.100 && lhtick == 0) { setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); } } if(eless){    if(Entity.getVelY(getPlayerEnt())< -0.2) { setVelY(Player.getEntity(), -0.6) setVelY(Player.getEntity(), 0.00) Entity.setPositionRelative(getPlayerEnt(), 0, -0.1, 0); } } if(setpackss && Utils.Player.isInWater()){ Entity.setPositionRelative(getPlayerEnt(), 0, 0.1, 0); if(minus !== 0) { minus--; } if(minus == 0) { minus = 10; setVelY(getPlayerEnt(), -0.1); } } if(cafes) { if(Entity.setCollisionSize(getPlayerEnt())< -0.0) { } } if(craptpss){    if(Entity.getVelY(getPlayerEnt())< -0.3) { setVelY(Player.getEntity(), -0.9) setVelY(Player.getEntity(), 0.00) Entity.setPositionRelative(getPlayerEnt(), 0, -4, 0); } } if(hostss) { if(Entity.getHealth(getPlayerEnt()) == 20) { health = "10"; } if(Entity.getHealth(getPlayerEnt()) == 19) { health = "9.5"; } if(Entity.getHealth(getPlayerEnt()) == 18) { health = "9"; } if(Entity.getHealth(getPlayerEnt()) == 17) { health = "8.5"; } if(Entity.getHealth(getPlayerEnt()) == 16) { health = "8"; } if(Entity.getHealth(getPlayerEnt()) == 15) { health = "7.5"; } if(Entity.getHealth(getPlayerEnt()) == 14) { health = "7"; } if(Entity.getHealth(getPlayerEnt()) == 13) { health = "6.5"; } if(Entity.getHealth(getPlayerEnt()) == 12) { health = "6"; } if(Entity.getHealth(getPlayerEnt()) == 11) { health = "5.5"; } if(Entity.getHealth(getPlayerEnt()) == 10) { health = "5"; } if(Entity.getHealth(getPlayerEnt()) == 9) { health = "4.5"; } if(Entity.getHealth(getPlayerEnt()) == 8) { health = "4"; } if(Entity.getHealth(getPlayerEnt()) == 7) { health = "3.5"; } if(Entity.getHealth(getPlayerEnt()) == 6) { health = "3"; } if(Entity.getHealth(getPlayerEnt()) == 5) { health = "2.5"; } if(Entity.getHealth(getPlayerEnt()) == 4) { health = "2"; } if(Entity.getHealth(getPlayerEnt()) == 3) { health = "1.5"; } if(Entity.getHealth(getPlayerEnt()) == 2) { health = "1"; } if(Entity.getHealth(getPlayerEnt()) == 1) { health = "0.5"; } if(Entity.getHealth(getPlayerEnt()) == 0) { health = "0"; } ModPE.showTipMessage("\u00A7e\u00A7l" + health + " / 10" + "\u00A76 HEALTH"); } if(earts && Utils.Player.isOnGround()) { hoptick++; if(hoptick >= 8) { hoptick = 0; } if(Utils.Velocity.calculateSpeed() >= 0.200 && hoptick == 0) { var playerDir = [0, 0, 0]; toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1); setVelX(getPlayerEnt(), playerDir[0]); setVelY(getPlayerEnt(), 0.35); setVelZ(getPlayerEnt(), playerDir[2]); Entity.setPositionRelative(getPlayerEnt(), 0, 0.+4, 0); var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 2); setVelY(Player.getEntity(), y * 0.6); setVelZ(Player.getEntity(), z * 2); } else if(Utils.Velocity.calculateSpeed() <= 0.100 && hoptick == 0) { setVelX(getPlayerEnt(), 0); setVelZ(getPlayerEnt(), 0); } } if(sakes) { if(Entity.getHealth(getPlayerEnt()) <= 8) { var ent = getNearestEntity(8); if(ent != null) crosshairAimAt(ent); } } if (cgps && Utils.Player.isCollidedHorizontally()) { var player = getPlayerEnt(); var yaw = Math.floor(Entity.getYaw(player)); var pitch = Math.floor(Entity.getPitch(player)); if(pitch <=90) { Entity.setRot(player, yaw, 10) } } if(fass) { Level.setTime(0) } if(xstepss) { Player.setHealth(25) } if(gaoss) { if(time !== 0) { time--; } if(time == 0) { time = 100000; clientMessage("§c1 hour has passed!"); } } if(trampss && Utils.Player.isOnGround()) { lhtick++; if(lhtick >= 8) { lhtick = 0; } if(Utils.Velocity.calculateSpeed() >= 0.100 && lhtick == 0) { setVelY(getPlayerEnt(), 0.00000); setVelY(Player.getEntity(), 0.0000000) var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 50)); y = Math.sin(hitY * (Math.PI / 40)); z = Math.sin(hit * (Math.PI / 50)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.7); setVelZ(Player.getEntity(), z * 0.5); var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 0.5); setVelY(Player.getEntity(), y * 0.5); setVelZ(Player.getEntity(), z * 0.5); } else if(Utils.Velocity.calculateSpeed() <= 0.100 && lhtick == 0) { setVelY(getPlayerEnt(), 0.3); } } if(arampss) { var ent = getNearestEntity(8); ModPE.showTipMessage(Entity.getHealth(ent)) } if(vrampss) { var ent = getNearestEntity(8); ModPE.showTipMessage("Y:" + Entity.getVelY(ent) + "X:" + Entity.getVelX(ent) + "Z:" + Entity.getVelZ(ent)) } if(wrampss && Utils.Player.isOnGround()) { lhtick++; if(lhtick >= 8) { lhtick = 0; } if(Utils.Velocity.calculateSpeed() >= 0.200 && lhtick == 0) { setVelY(getPlayerEnt(), 0.00000); setVelY(Player.getEntity(), 0.0000000) setVelY(Player.getEntity(), 0.5) var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 10); setVelY(Player.getEntity(), y * 2); setVelZ(Player.getEntity(), z * 10); Entity.setPositionRelative(getPlayerEnt(), 0, 2, 0); } else if(Utils.Velocity.calculateSpeed() <= 0.100 && lhtick == 0) { setVelY(getPlayerEnt(), 0.0); } } if(urampss) { Entity.setPositionRelative(getPlayerEnt(), 0, 0.5, 0); if(minus !== 0) { minus--; } if(minus == 0) { minus = 10; var hit = getYaw() + 90; var hitY = getPitch() - 180; x = Math.cos(hit * (Math.PI / 180)); y = Math.sin(hitY * (Math.PI / 180)); z = Math.sin(hit * (Math.PI / 180)); setVelX(Player.getEntity(), x * 2); setVelY(Player.getEntity(), y * 2); setVelZ(Player.getEntity(), z * 2); } } if(zrampss) { Player.setHunger(25) } if(zcrampss) { if (startMapControl) { startMapControl = false; mapWindow.show(); createPool(); } } if(xrampss) { setVelY(getPlayerEnt(), -0.0007840000092983246); if(minus !== 0) { minus--; } if(minus == 0) { minus = 10; setVelY(getPlayerEnt(), 0.00000000093246); setPosition(getPlayerEnt(), Player.getX(), Player.getY() + 0.01, Player.getZ()) } } if(lrampss && Utils.Player.isOnGround()) { //By Laastad var ghY = setVelY(getPlayerEnt(), -000674589135); var fallX = setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt()) * 0.15); var fallY = setVelY(getPlayerEnt(), Entity.getVelY(getPlayerEnt()) * 0.3); var fallZ = setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt()) * 0.15); var pX = Player.getX(); var pY = Player.getY(); var pZ = Player.getZ(); if(ghY-2 > pY){ setPosition(getPlayerEnt(), Player.getX(), Player.getY() + 2, Player.getZ(), fallX, fallY, fallZ) } } if(qrampss) { ModPE.setGameSpeed(20) Block.setLightOpacity(1,0.1); Block.setLightOpacity(3,0.1); if(minus !== 0) { minus--; } if(minus == 0) { minus = 10; Block.setLightOpacity(4,0.1); Block.setLightOpacity(2,0.1); ModPE.setGameSpeed(19) } } if(zxrampss) { if(time !== 0) { time--; } if(time == 0) { time = 2; Server.sendChat("Server Lagger" + Math.floor(Player.getX()) + " " + Math.floor(Player.getY() - 1) + " " + Math.floor(Player.getZ())); } } nx = getPlayerX(); ny = getPlayerY(); nz = getPlayerZ(); eval(rptask()) } }), 900 / 70) } })) } rptask(); function apoc(text, showPrefix) { try { var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); ctx.runOnUiThread(new java.lang.Runnable({ run: function () { var thetoast = android.widget.Toast.makeText(com.mojang.minecraftpe.MainActivity.currentMainActivity.get(), "" + text, android.widget.Toast.LENGTH_LONG); var layout = new android.widget.LinearLayout(ctx); var msg = new android.widget.TextView(ctx); if(showPrefix == null) { text = "Tracer: " + text; } else { text = showPrefix + ": " + text; } msg.setText(text); msg.setGravity(android.view.Gravity.CENTER); msg.setTextSize(15); msg.setPadding(10, 10, 10, 10); msg.setTextColor(android.graphics.Color.BLACK); var btnpic = new android.graphics.drawable.GradientDrawable(); btnpic.setColor(android.graphics.Color.GREEN); btnpic.setStroke(5, android.graphics.Color.RED); layout.addView(msg); layout.setBackground(btnpic); layout.getBackground().setAlpha(150); thetoast.setView(layout); thetoast.show(); } })); } catch(e) { print(e); } } function procCmd(c){ var cmd = c.split(" "); if(cmd[0]=="list1"){ clientMessage("list of Commands 1 (1 page)"); clientMessage("§c/Dev"); clientMessage("§c/UI"); clientMessage("§c/Changelog"); clientMessage("§c/aimon"); clientMessage("§c/aimoff"); clientMessage("§c/hitboxon"); clientMessage("§c/hitboxoff"); clientMessage("§c/eaton"); clientMessage("§c/eatoff"); clientMessage("§c/espon"); clientMessage("§c/espoff"); } if(cmd[0]=="Dev"){ var UI = getPlayerEnt(); showDedBtn(); clientMessage("§aDevMode Activated!"); } if(cmd[0]=="UI"){ var UI = getPlayerEnt(); showUIBtn(); clientMessage("§aUI Activated"); } if(cmd[0]=="Changelog"){ var UI = getPlayerEnt(); showChangelogBtn(); clientMessage("§aChangelog Activated"); } if(cmd[0]=="aimon"){ var UI = getPlayerEnt(); aimbot = true; clientMessage("§aAimbot Activated"); } if(cmd[0]=="hitboxon"){ var UI = getPlayerEnt(); rides = true; clientMessage("§aHitbox Activated"); } if(cmd[0]=="aimoff"){ var UI = getPlayerEnt(); aimbot = false; clientMessage("§aAimbot Disabled"); } if(cmd[0]=="hitboxoff"){ var UI = getPlayerEnt(); rides = false; clientMessage("§aHitbox Disabled"); } if(cmd[0]=="eaton"){ var UI = getPlayerEnt(); irampss = true; clientMessage("§aFastEat Activated"); } if(cmd[0]=="espon"){ var UI = getPlayerEnt(); esp = true; clientMessage("§aEsp Activated"); } if(cmd[0]=="eatoff"){ var UI = getPlayerEnt(); irampss = false; clientMessage("§aFastEat Disabled"); } if(cmd[0]=="espoff"){ var UI = getPlayerEnt(); esp = false; clientMessage("§aEsp Disabled"); } } var curVersion = 3.1, X, Z, YAW, DIMENSION, redraw = false, startMapControl = true, settings = {}, settingsLoaded = false, map_state = false, entities = [], chests = [], minZoom, absZoom, bmpSrc, bmpSrcCopy, bmpBorder, pathBorder, canvasBmpSrc = new android.graphics.Canvas(), canvasBmpSrcCopy = new android.graphics.Canvas(), matrixMap = new android.graphics.Matrix(), matrixPointer = new android.graphics.Matrix(), bmpSrcLock = new java.util.concurrent.Semaphore (1, true), delayChunksArrLock = new java.util.concurrent.Semaphore (1, true), delayChunksArr = [], pool, poolTick, scheduledFutureUpdateMap, runnableUpdateMap, context = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(), mapWindow, setWindow, density = context.getResources().getDisplayMetrics().density, displayHeight = (context.getResources().getDisplayMetrics().widthPixels < context.getResources().getDisplayMetrics().heightPixels) ? context.getResources().getDisplayMetrics().widthPixels : context.getResources().getDisplayMetrics().heightPixels; (function () { var i, settingsString, d = Math.floor(new Date().getTime() / 1000); settingsString = load(android.os.Environment.getExternalStorageDirectory().getPath() + "/games/com.mojang/minecraftpe/mods/", "minimap.txt").split("\n"); for (i = 0; i < settingsString.length; i += 1) {settings[settingsString[i].split(":")[0]] = parseFloat(settingsString[i].split(":")[1]); } if (settings.version !== curVersion) { settings = {radius: 4, map_type: 1, map_zoom: 80, map_alpha: 70, show_passive: 1, show_hostile: 1, show_player: 1, show_otherPlayer: 1, show_chest: 0, hide_underground_mob: 0, button_size: 40, window_rawSize: 35, window_size: displayHeight * 0.35, window_rawPosition: 0, window_gravity: 51, window_y: 0, style_border: 1, style_pointer: 3, style_shape: 0, show_info: 1, show_zoomBtn: 1, delay: 20, threadCount: 4, updateCheck: 1, updateCheckTime: 0, updateVersion: curVersion, version: curVersion} } new java.lang.Thread(function () { android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND); var newVersion; if (Math.floor(settings.updateCheckTime / 86400) < Math.floor(d / 86400) && settings.updateCheck) { newVersion = parseFloat(loadTxtFromUrl("https://raw.githubusercontent.com/MxGoldo/MCPE-mod-scripts/master/MiniMap_Mod_version")); if (!isNaN(newVersion)) {settings.updateCheckTime = d; } if (newVersion > curVersion) {settings.updateVersion = newVersion; } saveSettings(); } if (settings.updateVersion > curVersion && settings.updateCheck) { context.runOnUiThread(function() { settingsUI(["MiniMap Mod", "Close", ["keyValue", "text", "New version available !
Your version: " + curVersion.toFixed(1) + "
Latest version: " + settings.updateVersion.toFixed(1) + "

Download from minecraftforum.net", ""], ["checkBox", "updateCheck", "Check for updates"]]).show(); }); } }).start(); bmpBorder = drawBorderBmp(); pathBorder = createPath(false, true); bmpSrc = android.graphics.Bitmap.createBitmap(((settings.radius + 1) * 2 + 1) * 16, ((settings.radius + 1) * 2 + 1) * 16, android.graphics.Bitmap.Config.ARGB_8888); bmpSrcCopy = android.graphics.Bitmap.createBitmap(bmpSrc.getWidth(), bmpSrc.getHeight(), android.graphics.Bitmap.Config.ARGB_8888); canvasBmpSrc.setBitmap(bmpSrc); canvasBmpSrcCopy.setBitmap(bmpSrcCopy); minZoom = settings.window_size / (settings.radius * 2 * 16); absZoom = (100 / settings.map_zoom) * minZoom; poolTick = java.util.concurrent.Executors.newSingleThreadScheduledExecutor(); runnableUpdateMap = new java.lang.Runnable(function () { try { android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND); var xNew = Player.getX(), zNew = Player.getZ(), yawNew = getYaw(), xChunkNew, zChunkNew, xChunkOld, zChunkOld, dimensionNew = Player.getDimension(), i, ix, radius = settings.radius * 16; if (xNew !== X || zNew !== Z || yawNew !== YAW || redraw || dimensionNew !== DIMENSION) { redraw = false; xChunkNew = Math.floor(xNew / 16) * 16; zChunkNew = Math.floor(zNew / 16) * 16; xChunkOld = Math.floor(X / 16) * 16; zChunkOld = Math.floor(Z / 16) * 16; if (xChunkNew !== xChunkOld || zChunkNew !== zChunkOld || dimensionNew !== DIMENSION) { if (Math.abs(xChunkNew - xChunkOld) <= radius * 2 && Math.abs(zChunkNew - zChunkOld) <= radius * 2 && dimensionNew === DIMENSION) { try { bmpSrcLock.acquire(); bmpSrcCopy.eraseColor(0); canvasBmpSrcCopy.drawBitmap(bmpSrc, zChunkNew - zChunkOld, xChunkOld - xChunkNew, null); bmpSrc.eraseColor(0); canvasBmpSrc.drawBitmap(bmpSrcCopy, 0, 0, null); } finally { X = xNew; Z = zNew; bmpSrcLock.release(); } if (xChunkNew > xChunkOld) { for (i = radius + 16 - (xChunkNew - xChunkOld); i <= radius; i += 16) { scheduleChunk(xChunkNew + i, zChunkNew, 0); for (ix = 16; ix <= radius; ix += 16) { scheduleChunk(xChunkNew + i, zChunkNew + ix, 0); scheduleChunk(xChunkNew + i, zChunkNew - ix, 0); } } } else if (xChunkOld > xChunkNew) { for (i = radius + 16 - (xChunkOld - xChunkNew); i <= radius; i += 16) { scheduleChunk(xChunkNew - i, zChunkNew, 0); for (ix = 16; ix <= radius; ix += 16) { scheduleChunk(xChunkNew - i, zChunkNew + ix, 0); scheduleChunk(xChunkNew - i, zChunkNew - ix, 0); } } } if (zChunkNew > zChunkOld) { for (i = radius + 16 - (zChunkNew - zChunkOld); i <= radius; i += 16) { scheduleChunk(xChunkNew, zChunkNew + i, 0); for (ix = 16; ix <= radius; ix += 16) { scheduleChunk(xChunkNew + ix, zChunkNew + i, 0); scheduleChunk(xChunkNew - ix, zChunkNew + i, 0); } } } else if (zChunkOld > zChunkNew) { for (i = radius + 16 - (zChunkOld - zChunkNew); i <= radius; i += 16) { scheduleChunk(xChunkNew, zChunkNew - i, 0); for (ix = 16; ix <= radius; ix += 16) { scheduleChunk(xChunkNew + ix, zChunkNew - i, 0); scheduleChunk(xChunkNew - ix, zChunkNew - i, 0); } } } } else { X = xNew; Z = zNew; chests = []; bmpSrc.eraseColor(0); scheduleChunk(xChunkNew, zChunkNew, 0); for (i = 16; i <= settings.radius * 16; i += 16) { for (ix = 0; ix < i; ix += 16) { scheduleChunk(xChunkNew + ix + 16, zChunkNew + i, 0); scheduleChunk(xChunkNew + ix, zChunkNew - i, 0); scheduleChunk(xChunkNew - ix, zChunkNew + i, 0); scheduleChunk(xChunkNew - ix - 16, zChunkNew - i, 0); scheduleChunk(xChunkNew + i, zChunkNew + ix, 0); scheduleChunk(xChunkNew + i, zChunkNew - ix - 16, 0); scheduleChunk(xChunkNew - i, zChunkNew + ix + 16, 0); scheduleChunk(xChunkNew - i, zChunkNew - ix, 0); } } } } else { X = xNew; Z = zNew; } YAW = yawNew; DIMENSION = dimensionNew; var zoom = absZoom, style_pointer = settings.style_pointer, x0 = xNew - (settings.window_size * 0.5 / zoom), z0 = zNew + (settings.window_size * 0.5 / zoom); matrixMap.setTranslate(settings.window_size * 0.5 - (bmpSrc.getWidth() * 0.5) - 8 + zNew - zChunkNew, settings.window_size * 0.5 - (bmpSrc.getHeight() * 0.5) + 8 - xNew + xChunkNew); matrixMap.postScale(zoom, zoom, settings.window_size * 0.5, settings.window_size * 0.5); if (settings.show_info) {mapWindow.setInfo(); } var canvas = mapView.lockCanvas(); canvas.drawColor(0, android.graphics.PorterDuff.Mode.CLEAR); canvas.save(android.graphics.Canvas.CLIP_SAVE_FLAG); canvas.clipPath(pathBorder, android.graphics.Region.Op.REPLACE); canvas.drawBitmap(bmpSrc, matrixMap, bmpPaint); if (settings.show_chest) { i = chests.length; while(i--) { matrixPointer.setTranslate((z0 - chests[i][1]) * zoom, (chests[i][0] - x0) * zoom); matrixPointer.preConcat(pointer[3].matrix); canvas.drawBitmap(pointer[3].bmp, matrixPointer, null); } } if (settings.show_passive || settings.show_hostile || settings.show_otherPlayer) { redraw = true; i = entities.length; var id; while(i--) { if (!settings.hide_underground_mob || Entity.getY(entities[i]) > 60) { id = Entity.getEntityTypeId(entities[i]); if (style_pointer !== 3) { if (id < 32 && settings.show_passive) { matrixPointer.reset(); if (pointer[style_pointer].rotate) {matrixPointer.postRotate(Entity.getYaw(entities[i]) - 90); } matrixPointer.postTranslate((z0 - Entity.getZ(entities[i])) * zoom, (Entity.getX(entities[i]) - x0) * zoom); matrixPointer.preConcat(pointer[style_pointer].matrix); canvas.drawBitmap(pointer[style_pointer].bmp, matrixPointer, pointerPaint.GREEN); } else if (id < 63 && id >= 32 && settings.show_hostile) { matrixPointer.reset(); if (pointer[style_pointer].rotate) {matrixPointer.postRotate(Entity.getYaw(entities[i]) - 90); } matrixPointer.postTranslate((z0 - Entity.getZ(entities[i])) * zoom, (Entity.getX(entities[i]) - x0) * zoom); matrixPointer.preConcat(pointer[style_pointer].matrix); canvas.drawBitmap(pointer[style_pointer].bmp, matrixPointer, pointerPaint.RED); } else if (id === 63 && settings.show_otherPlayer) { matrixPointer.reset(); if (pointer[style_pointer].rotate) {matrixPointer.postRotate(Entity.getYaw(entities[i]) - 90); } matrixPointer.postTranslate((z0 - Entity.getZ(entities[i])) * zoom, (Entity.getX(entities[i]) - x0) * zoom); matrixPointer.preConcat(pointer[style_pointer].matrix); canvas.drawBitmap(pointer[style_pointer].bmp, matrixPointer, null); } } else if ((id < 32 && settings.show_passive) || (id < 63 && id >= 32 && settings.show_hostile) || (id === 63 && settings.show_otherPlayer)) { matrixPointer.reset(); matrixPointer.postRotate(Entity.getYaw(entities[i]) - 90); matrixPointer.postTranslate((z0 - Entity.getZ(entities[i])) * zoom, (Entity.getX(entities[i]) - x0) * zoom); matrixPointer.preConcat(iconMatrix); canvas.drawBitmap(heads[id] || heads[0], matrixPointer, null); } } } } if (settings.show_player && !settings.show_otherPlayer) { if (style_pointer !== 3) { matrixPointer.reset(); if (pointer[style_pointer].rotate) {matrixPointer.postRotate(yawNew - 90); } matrixPointer.postTranslate(settings.window_size * 0.5, settings.window_size * 0.5); matrixPointer.preConcat(pointer[style_pointer].matrix); canvas.drawBitmap(pointer[style_pointer].bmp, matrixPointer, null); } else { matrixPointer.reset(); matrixPointer.postRotate(yawNew - 90); matrixPointer.postTranslate(settings.window_size * 0.5, settings.window_size * 0.5); matrixPointer.preConcat(iconMatrix); canvas.drawBitmap(heads[63] || heads[0], matrixPointer, null); } } canvas.restore(); if (bmpBorder !== null) { canvas.drawBitmap(bmpBorder, 0, 0, null); } mapView.unlockCanvasAndPost(canvas); } } catch(e) { // print("UpdateMap, " + e + " (" + e.fileName + " #" + e.lineNumber + ")"); } }); }()); var bmpPaint = new android.graphics.Paint(), mapView = new android.view.TextureView(context), mapWindow = function () { var btnSet = new android.widget.Button(context), btnZoomIn, btnZoomOut, textInfo = new android.widget.TextView(context), mapLp = new android.widget.RelativeLayout.LayoutParams(settings.window_size , settings.window_size ), btnZoomInLp = new android.widget.RelativeLayout.LayoutParams(settings.button_size * density, settings.button_size * density), btnZoomOutLp = new android.widget.RelativeLayout.LayoutParams(settings.button_size * density, settings.button_size * density), textInfoLp = new android.widget.RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT, android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT), layout = new android.widget.RelativeLayout(context), mapWin = new android.widget.PopupWindow(layout, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT), btnActions = { set : function () { if (!setWindow) { setWindow = settingsUI( ["MiniMap Mod Options", "Ok", ["sectionDivider", "Graphics"], ["keyValue", "multipleChoice", "MiniMap type", "map_type", ["basic surface (fast)", "surface", "cave"]], ["keyValue", "slider", "Minimap render distance", "radius", 1, checkRenderDistance() + 4, 1, " chunks"], ["keyValue", "slider", "Zoom", "map_zoom", 10, 100, 1, "%"], ["subScreen", "Icons and Indicators ", ["Icons and Indicators", "Ok", ["sectionDivider", "Entity"], ["keyValue", "multipleChoice", "pointer style", "style_pointer", ["crosshairs", "arrow", "minecraft", "head"]], ["checkBox", "hide_underground_mob", "hide entities below sea level"], ["checkBox", "show_player", "you"], ["checkBox", "show_otherPlayer", "other players"], ["checkBox", "show_passive", "passive mobs"], ["checkBox", "show_hostile", "hostile mobs"], ["sectionDivider", "Icon"], ["checkBox", "show_chest", "chests"]]], ["sectionDivider", "View"], ["keyValue", "multipleChoice", "Position", "window_rawPosition", ["top left", "top left (offset)", "top right", "bottom left", "bottom right"], "window_gravity", [51, 51, 53, 83, 85], "window_y", [0, 40 * density, 40 * density, 0, 0]], ["keyValue", "slider", "Size", "window_rawSize", 5, 100, 5, "%"], ["keyValue", "slider", "Opacity", "map_alpha", 20, 100, 1, "%"], ["keyValue", "slider", "Button size", "button_size", 20, 60, 1, "dp"], ["checkBox", "show_info", "Coordinates visible"], ["checkBox", "show_zoomBtn", "Zoom Buttons visible"], ["sectionDivider", "Style"], ["keyValue", "multipleChoice", "border style", "style_border", ["none", "simple", "colourful"]], ["keyValue", "multipleChoice", "window shape", "style_shape", ["square", "circle"]], ["sectionDivider", "Other"], ["checkBox", "updateCheck", "Check for updates " + (settings.updateVersion > curVersion ? "(update available)" : "")], ["subScreen", "Advanced ", ["Advanced", "Ok", ["keyValue", "slider", "Minimap max frequency", "delay", 1, 40, 1, " fps"], ["keyValue", "slider", "Threads count", "threadCount", 1, 12, 1, ""]]], ["subScreen", "MiniMap Mod info ", ["MiniMap Mod info", "Ok", ["keyValue", "text", "Version ", curVersion.toFixed(1)], ["keyValue", "text", "Made by", "MxGoldo"], ["keyValue", "text", "minecraftforum.net thread", ""] ]]]).show(); } else { setWindow.show(); } } }; bmpPaint.setXfermode(new android.graphics.PorterDuffXfermode(android.graphics.PorterDuff.Mode.SRC)); mapView.setId(1); mapView.setBackgroundColor(settings.style_shape ? 0 : -12303292); mapView.setVisibility(android.view.View.GONE); mapView.setAlpha(settings.map_alpha / 100); mapLp.addRule(android.widget.RelativeLayout.ALIGN_PARENT_TOP); mapView.setOnClickListener(function(v){ changeMapState(); }); mapView.setOnLongClickListener(function(v) { btnActions.set(); return true; }); btnSet.setBackgroundResource(android.R.drawable.ic_menu_mylocation); btnSet.setVisibility(android.view.View.VISIBLE); btnSet.setLayoutParams(new android.widget.LinearLayout.LayoutParams(settings.button_size * density, settings.button_size * density)); btnSet.setOnClickListener(function(v) { changeMapState(); }); btnSet.setOnLongClickListener(function(v) { btnActions.set(); return true; }); textInfo.setId(2); textInfo.setVisibility(android.view.View.GONE); textInfoLp.addRule(android.widget.RelativeLayout.BELOW, 1); textInfoLp.addRule(android.widget.RelativeLayout.ALIGN_LEFT, 1); textInfoLp.addRule(android.widget.RelativeLayout.ALIGN_RIGHT, 1); textInfo.setTextSize(15); textInfo.setPadding(3 * density, 0, 0, 0); textInfo.setBackgroundColor(android.graphics.Color.argb(204, 136, 136, 136)); textInfo.setTextColor(android.graphics.Color.WHITE); btnZoomOut = minecraftButton("-", settings.button_size, settings.button_size); btnZoomOut.setId(3); btnZoomOut.setVisibility(android.view.View.GONE); btnZoomOutLp.addRule(android.widget.RelativeLayout.BELOW, 2); btnZoomOut.setOnClickListener(function(v) { if (settings.map_zoom * 1.2 >= 100) { android.widget.Toast.makeText(context, "minimum zoom reached", android.widget.Toast.LENGTH_SHORT).show(); settings.map_zoom = 100; } else { settings.map_zoom = Math.round(settings.map_zoom * 1.2); } settingsChanged("map_zoom"); saveSettings(); }); btnZoomIn = minecraftButton("+", settings.button_size, settings.button_size); btnZoomIn.setId(4); btnZoomIn.setVisibility(android.view.View.GONE); btnZoomInLp.addRule(android.widget.RelativeLayout.BELOW, 2); btnZoomInLp.addRule(android.widget.RelativeLayout.RIGHT_OF, 3); btnZoomIn.setOnClickListener(function(v) { if (settings.map_zoom * 0.8 <= 10) { android.widget.Toast.makeText(context, "maximum zoom reached", android.widget.Toast.LENGTH_SHORT).show(); settings.map_zoom = 10; } else { settings.map_zoom = Math.round(settings.map_zoom * 0.8); } settingsChanged("map_zoom"); saveSettings(); }); layout.addView(btnSet); layout.addView(mapView, mapLp); layout.addView(btnZoomIn, btnZoomInLp); layout.addView(btnZoomOut, btnZoomOutLp); layout.addView(textInfo, textInfoLp); mapWin.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); return { setInfo: function () { context.runOnUiThread(function() { textInfo.setText("X:" + Math.floor(Player.getX()) + " Y:" + Math.floor(Player.getY() - 2) + " Z:" + Math.floor(Player.getZ())); }); }, resetVisibility: function () { context.runOnUiThread(function() { var visible = android.view.View.VISIBLE, gone = android.view.View.GONE; if (map_state) { btnSet.setVisibility(gone); mapView.setVisibility(visible); btnZoomIn.setVisibility(settings.show_zoomBtn ? visible : gone); btnZoomOut.setVisibility(settings.show_zoomBtn ? visible : gone); textInfo.setVisibility(settings.show_info ? visible : gone); } else { btnSet.setVisibility(visible); mapView.setVisibility(gone); btnZoomIn.setVisibility(gone); btnZoomOut.setVisibility(gone); textInfo.setVisibility(gone); } }); }, show: function () { context.runOnUiThread(function() { mapWin.showAtLocation(context.getWindow().getDecorView(), settings.window_gravity, 0, settings.window_y); }); }, hide: function () { context.runOnUiThread(function() { mapWin.dismiss(); }); }}; }(); function entityRemovedHook(entity) { if (Entity.getEntityTypeId(entity) <= 63 && Entity.getEntityTypeId(entity) >= 10 ) { var index = entities.indexOf(entity) if (index > -1) { entities.splice(index, 1); } } } function entityAddedHook(entity) { if (Entity.getEntityTypeId(entity) <= 63 && Entity.getEntityTypeId(entity) >= 10 ) { entities[entities.length] = entity; } } function minecraftButton(text, width, hight) { width = width || 40; hight = hight || 40; var button = new android.widget.Button(context); button.setText(text); button.setTextSize(15); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(drawBtnBack(width * density, hight * density)); return button; } function drawBtnBack(width, height) { var bmp = android.graphics.Bitmap.createBitmap(width, height, android.graphics.Bitmap.Config.ARGB_8888), canvas = new android.graphics.Canvas(bmp), paint = new android.graphics.Paint(), drawable; paint.setColor(android.graphics.Color.GRAY); paint.setMaskFilter(new android.graphics.EmbossMaskFilter([1, 1, 0.3], 0.7, 8, 4 * density)); canvas.drawRect(0, 0, width, height, paint); drawable = new android.graphics.drawable.BitmapDrawable(bmp); drawable.setAlpha(204); return drawable; } function createPool() { if (pool != null) { pool.shutdownNow(); } pool = java.util.concurrent.Executors.newScheduledThreadPool(settings.threadCount); pool.setKeepAliveTime(60, java.util.concurrent.TimeUnit.SECONDS); pool.allowCoreThreadTimeOut(true); } function scheduleChunk(xChunk, zChunk, delay) { pool.schedule(new java.lang.Runnable(function () { try { android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND); if (Math.abs(Math.floor((Z - zChunk)/ 16)) > settings.radius || Math.abs(Math.floor((X - xChunk) / 16)) > settings.radius) {return; } var ix = 16, iz = 16, x = xChunk + 16, z = zChunk - 1, mapDotArray = [], type = settings.map_type; if (Level.getTile(x - 16, 0, z + 16) === 95) {return; } if (!chunkLoaded(x - 16, z + 16)) { if (map_state) { scheduleChunk(xChunk, zChunk, 10); } else { delayChunksArrLock.acquire(); delayChunksArr[delayChunksArr.length] = [xChunk, zChunk]; delayChunksArrLock.release(); } return; } do { do { mapDotArray[mapDotArray.length] = mapDot[type](x - ix, z + iz); } while (iz -= 1); iz = 16; } while (ix -= 1); if (java.lang.Thread.interrupted()) {return; } try { bmpSrcLock.acquire(); bmpSrc.setPixels(mapDotArray, 0, 16, ((Math.floor(Z / 16) + settings.radius + 1) * 16) - zChunk, xChunk - ((Math.floor(X / 16) - settings.radius - 1) * 16), 16, 16); } finally {bmpSrcLock.release(); } redraw = true; } catch (e) { // print("drawChunk, " + e + " (" + e.fileName + " #" + e.lineNumber + ")"); } }), delay, java.util.concurrent.TimeUnit.SECONDS); } var pointerPaint = { RED: (function() { var paint = new android.graphics.Paint(); paint.setColorFilter(new android.graphics.LightingColorFilter(android.graphics.Color.RED, 0)); return paint; })(), GREEN: (function() { var paint = new android.graphics.Paint(); paint.setColorFilter(new android.graphics.LightingColorFilter(android.graphics.Color.GREEN, 0)); return paint; })(), } var pointer = [ new Pointer( (function() { var paint = new android.graphics.Paint(), bmp = android.graphics.Bitmap.createBitmap(displayHeight * 0.1, displayHeight * 0.1, android.graphics.Bitmap.Config.ARGB_8888), canvas = new android.graphics.Canvas(bmp); paint.setColor(android.graphics.Color.BLACK); canvas.drawLines([0, displayHeight * 0.05, displayHeight * 0.1, displayHeight * 0.05, displayHeight * 0.05, 0, displayHeight * 0.05, displayHeight * 0.1], paint); return bmp; })(), (function() { var matrix = new android.graphics.Matrix(); matrix.setTranslate(-displayHeight * 0.05, -displayHeight * 0.05); return matrix; })(), false ), new Pointer( (function() { var path = new android.graphics.Path(), paint = new android.graphics.Paint(), bmp = android.graphics.Bitmap.createBitmap(displayHeight * 0.025, displayHeight * 0.025, android.graphics.Bitmap.Config.ARGB_8888), canvas = new android.graphics.Canvas(bmp); path.moveTo(displayHeight * 0.0125, 0); path.lineTo(0, displayHeight * 0.025); path.lineTo(displayHeight * 0.0125, displayHeight * 0.015); path.lineTo(displayHeight * 0.025, displayHeight * 0.025); path.close(); paint.setColor(android.graphics.Color.WHITE); canvas.drawPath(path, paint); paint.setColor(android.graphics.Color.BLACK); paint.setStyle(android.graphics.Paint.Style.STROKE); canvas.drawPath(path, paint); return bmp; })(), (function() { var matrix = new android.graphics.Matrix(); matrix.setTranslate(-displayHeight * 0.0125, 0); return matrix; })(), true ), new Pointer( decodeBmp("iVBORw0KGgoAAAANSUhEUgAAAAUAAAAHCAYAAADAp4fuAAAABHNCSVQICAgIfAhkiAAAAEFJREFUCJltjcENgDAQw0z3HyKj3CjpJOZVIRB+WfEj8OCRdYYkr2AS25rEE2yralsBFz8sgJlh783MAHB9n4HrBiyNJZtxPPDsAAAAAElFTkSuQmCC"), (function() { var matrix = new android.graphics.Matrix(); matrix.setTranslate(-2.5, -4.5); matrix.postScale(displayHeight * 0.005, displayHeight * 0.005); return matrix; })(), true ), new Pointer( decodeBmp("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wUeEiAJpGBAngAAAhBJREFUOMtlk7ty1DAUhj9Zsh17SWZDZnMhYaChCSmYVFSpGIZnoU5LydPQUOxjMEC5TYqFZRg2YVA2Xt8lUchxdpPTSB7p/D7/ReLt2alrjGG1QikBcM7RWtt/36+/+gYF8P7MUlU1si0xagOAyyJ/0DBKUi6LnFGSEscRHz6VHmCtocn7y9N5SRSFPN9LAKiqmv0wQMVRD6qstRSLnJ0gIpRtfzD9veDd+ZjJZMLF+Jwnj1MALIpmkRPKlkCACoKAi8x1bZ7r7uYjrl3BcrlkOp3y9ZfhZeTYUQIr427SGCGWqMYYxt8kUgBCdEAleVFz8vMnWmsmfzb4sfBsjW36KbO8RIVS8uZkAEDbWpQKAJj/E1xdXQFwsNXy6pkkiOI1UcdfapSzhsMko7USVs7bqOT7548AnB5G7G0a4M6ZrAbnLEoEkoPddA25XS4QG47Xx3u9+rcVdw7MbwTWFV6DmdZrAEfDIaOqpqrqtTzshwHEETOt0XnobQylZJSkD/5wP0ijJMUApqoZJSnCSKDxGtiq7TNQVH69nwva0rtnvBu2cT4HIpAkW3cTKGCmNUfD4QNqfhKFbEviwQAhKpRzjpnWPqKDrV6DVT1uRbws8p6azjMcDiWEIJLbTK4zuF72SfSXQiIpgJj5TcZ2vEkYqe7FCgQacfzi6W2OCQCL6Pau27sVAgJjQfqsUZQV/wGmEfCfo9F8YgAAAABJRU5ErkJggg=="), (function() { var matrix = new android.graphics.Matrix(); matrix.setTranslate(-8, -8); matrix.postScale(displayHeight * 0.0012, displayHeight * 0.0012); return matrix; })(), false ) ] function Pointer(bmp, matrix, rotate) { this.bmp = bmp; this.matrix = matrix; this.rotate = rotate; } var iconMatrix = (function() { var matrix = new android.graphics.Matrix(); matrix.setTranslate(-9, -14); matrix.postScale(displayHeight * 0.0012, displayHeight * 0.0012); return matrix; })(); var arrow = decodeBmp("iVBORw0KGgoAAAANSUhEUgAAABIAAAAXCAYAAAAGAx/kAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wkXCBYpv1t1DgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAbUlEQVQ4y+3VQQpDIQxF0fu6MV2aO4uu7HVSoRQ0n99OCl4IjnLITMjza7YpAWit8f6udpQBpRQAxhhbUBlQawWg974FJ+QV8NkClCaSATtwHuGI8N0iwoAF2DbfJIkHP+pABzrQn0G68kNc6QlKrnBddYT83gAAAABJRU5ErkJggg=="); var heads = { 0: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCRYIWPnH7AAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAA9klEQVQ4y63TO8rCQBSG4SfeJYWFIEiW4D5s7OzcQHpxDa7HytINuAix89LYBAmIjoUE/mn+JjnN3L6Z8/KdM8lkMgkQQgCtVgu83+9oTJIEtNttkV7N6FQvVfH5fEC32wVpmkbnz+czWtcnqCZ5noNerxdlLooi8uZ2u4HdbtcMQbJerwMMBgNQluUPrfODezweIMsycDqdGvagyrzdbsFisQCz2SzKfDwewX6/B5vNpiEPVqtVgOl0CobDITgcDpFwPp+D8/kMLpdLQwTL5TL8rfP9fv/3wng8jjqyfhWu12v0B0ajUSR4vV6g3+9HfVLt1yb4AgeiVR6weSbNAAAAAElFTkSuQmCC"), 10: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAQYPHjNbAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAZklEQVQ4y2NkgIJbt279ZyABqKmpMTIwMDAwMVAIKDaAEYkN98K/f/+w28bEhKGXei7Y3KhDUiD61l8ZJIHIAmNcuPdtYFxAvVhATsoqampYFd+5dYv6SZkRm+A/pFSJ5l/GwReIAJzkF8KfuHVTAAAAAElFTkSuQmCC"), 11: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAMf7V3OCAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAA5klEQVQ4y62SLW7DQBCFPztjKVVPUBxshfkArlmWpbgXKEyVkICCkIaUpDBSQipVKooWRcoFTH0EUx+gYOMEJCt1CgrqfWj37c/7NDPRcHB3AuhJBMDRnQB4flnyU2VZqv1+9wlATEeJJPoPSaLrgSg/yzIAFvMJALd9CUTwutoqY/r0CIBzTvlvixkA7+sP5XcnKIoCgLZtVReapgFgs9LdyPP8khzHYQgiPwf/Vfca+MW3OwLwZQ9/PhiPLjW4SSQwgU9O0xQAY4y6aK0FoKoqAB7MfWCCuq5Vsp8Dr99EfemFITgDfbg54HZ1708AAAAASUVORK5CYII="), 12: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAAr58RpfgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABHklEQVQ4y62SvUrEQBSFvySTH2MwbmXlIlrYWlgs5D0EKxfR0lcQRLsVSztL8XV8BAtTrSKCuJs1k7E401g7t5gLdy73nPnmRu31lQP4fH8DoB5toYh0lgUANrIApCt/W6ke888wi5Umm16KpsgAcIka7GIJQF5XUq7XvAUXyIGJJZXtjVVJNXMYlJPIO/qRQxd3Uq7yMA4iwAFYKxbz2e3fhqpUHgYAqrNzAMqyDOSgvbxxAMYr2fG2UJTrYuE87UgMmL8C0H19B/qFZMNTpgfg/m4GwMXRsSwW2riHp0cATqcn2otQDIz90KaRaB8mBxMAnl9aAIrdEQBN06gvS8Wm74MxMAD0VrMO93f09lx1V+ReeVO5W/pficM4+AVghEWaSP2iTgAAAABJRU5ErkJggg=="), 13: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAIGkC1XiQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABPUlEQVQ4y62SsUrDUBSGv6RN7GoICAmYIUMha3ffQkTcBMFd3ayLg+gT2FX0DXTzCdybUSkSCo1DSpJCQ5M43N7E4BTas9x7zr3c+53/P7BhKABBEJQAZVkCMJ/PqwtFUVT7JEkAMAwDgH6/r3Tl4XQ6bbwcRdG/B2TEcYzjOACoAFmWtUaXtBWB/zoSha4orfJc5J2O6FXrAZAmMQD7J5c1ga7rrQlka5WIrusCsFgsAHi6OQVguRTtnd0/ix9VVRD7Pp7nKepWbJxMJuVoeA6As7crEFfZWoumC98/wsqjizsGg8EWCcIwBODt8RaA4cFh4+L1+wsAx1cPSOsrAulpmzBNszkHs9lMqL4eqo+vTwB6O70msqI0chUgTdPWBJqm1RqMx+Py70jbtl3/oNY65+vplKtlWcqmJvAL4KV5Q1seyu0AAAAASUVORK5CYII="), 14: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCA4dtv3RaQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABAklEQVQ4y7WSoU9CURTGf/eNgmw8QOsLb6MInWiyWSxsOjYpEBzNLAmS1TEC+hdgMIhBTUQ6WuDdwIYN35w0eJfwvIznnMXLl87Z+W3ft3OO4Fuj4atiQ9l8Tmz2zw89BeC6bmRu8U/FdCGl/BPUzj85cwkye7sALJcBAE+9RwUgRLiKme8DkEylt5RgOn0H4Gs+B8C2kxFw7HkA7MTjZhOsbx0EgQJIpTMANCrHEbB+cw+A/zELnS1LmE3QujxXAJ+LBGenJwDsHxwC8NZ/AeD66gLHzQNQa7YNf+JEDsPtO4X1UDtr2U6BiRxs6Q+0c7FY4qhc/RW+u+3Q7equbybBCgRARDqUFxSFAAAAAElFTkSuQmCC"), 15: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCA0M92CiWAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAA5klEQVQ4y2NcVx7zn4GBgeH7+68MDAwMDJyC3AzIfHSALs/EQCFgQRfAZTMuQLELBt4AFpifG7bsJkljg48rlVwAi9ebTz4xMDAwMHB0QcycesMHRWG2xhYGBgYGhh9l/xgYGBgYNlTGYY9GBgYGhv/fGRi+/fqNIcbIiamWsdbL4D8DAwODmowMAwMDA8MvBi6Gb79+M7x6dR9FoayMDAMXOyvD/58Qg289eUKjlHjg+DmGX3//Magp8KGI7z1yjYGNmYnBzVKDyukAXcDGWJnh268/DO8+vEURtzBQZOBiY6F+SgQAkglD+wSBimYAAAAASUVORK5CYII="), 16: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAwtohKDRwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAzElEQVQ4y63SL07EUBDH8U9JIRiCgWs8w6aXqOMANeBwGCwXwIFAYNBkXS/RBNMDYGrr1vCnSRH0JbwVK7b9mcn8Mu/NNzOTPTgc4VgGPo3g/PXFfzVNk+Rnj8/gwEzlsXNUzPM8T/yiKMBHdfVHONXNJ7jxnRhPjsAwDIm/qa7BvZ/En0+wbcQtfPU9GG/vdn4wmyCLd7CvlpvBZoqX7fvOB29hBU6nWS1HEDuHEEBZlklhXdegbVuwDhcLE3Rdl3TupzuI2iY6WWoLv5WmMMWCKVO2AAAAAElFTkSuQmCC"), 17: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAwLcB8GugAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAA30lEQVQ4y51TOw6CQBB9ECsLDZEQYOmsOJwn8AAWHsDewiPYeQJCKCyIpQmLhkAIFrTauJtd2QXkdTuz8+bNz8AXiyB84w+8stQAgJlonC9XsGyHv12PAACeDwoAqMsCANA2Ff9jqthdj8D1CEjgS0QqmDoHCxZJRHWDBAw0y3v9EoFlO5L0MegoiM9H7LebTvbTYQeaXIYJbneqzabyGeIekHXIO04CX1l/ek3QNhXfA0lBXRZ85kPNGz2F37FOImDBTN0kBbqSzDHZaZYrs/cSsIA4irTBnWsUL26s/QOMaVD4M/hBCgAAAABJRU5ErkJggg=="), 19: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCBwN076x3gAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAA0klEQVQ4y7WTvw5BMRSHv+ISQlKuBIk/YWTwBGaDN/CA3sBgNpgNrEJILJcmIsgl10BFBYv6TT3tl/ac8+sRnVYzAMhIB4CN8gHoD8eCJ33iQvyoiF4UcvGvoH5Zc9YyELo2JxwYB4nYxYjP93C7u3HRqGMpg9cue94agFopa4DzlQIgmZIADEYTYdcFLdfNA3A4HgDY7U8AyHT27QX2eqCUCgCkvNXYbTcMsDeYaI47J/7jgtbrv/Avxmg8ZsW+C9O5B8BssTT2q+UiAPWKa9eFKwzDPzoKq7SSAAAAAElFTkSuQmCC"), 20: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCBYPx184eAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABDklEQVQ4y62Rv07CUBSHv0sLFHExJiwyiDHpaIirg4NxZOFJHHwKfQOegA13BgcHq4kO4CoOLBCqCX+KbamX4V4MTZCYtGc553fPub/zJUc4jiNZD0PLSOcf/ayLIPABECIDQIaEYQ4fW8rREADkrKLamM3pEUUShaFWSvthkBLBgX0CwHzsbp8sxOWuzokJxOWpLZMYJCf4eL2XAIfV81ij224C8N55BqB2dRvrv9w1UrrC1B0AcE0FgBt6AHSeHjZ+WM39Gvzl7H37/yNYFf2LEgD1xT7hIkLuqU2fmrB2ViVrGvRNI+UrdNtNCRDMxgBMZh5Tb85bbwTAlzsE4LhksWPlKRbyAJSP7HQIlhjFT+sbTWH0AAAAAElFTkSuQmCC"), 21: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCBUEe6CyMwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABNElEQVQ4y52TPWrDQBCFP6/cqhEI4dYHSKFG+ABWKdw7BwiBQO6QKo2bNDlAUrgLKnOBsI3AOYDbIAxpUgun2MzuaB1DyMCi+Xk7q3lvd7KpOQJUc7B7EB/G8bmaAWhWJUUeAEXuloCLHJoKbzo2AP1754uXjwnLu8QDAZiVpzlUg9iydHAbZiUAy+sdAA+vCa11mP7gvlPZ1FoHyNLBN2lfulFTaQKDH88AFBclfzVpJDblH/b8FnPw0dFUcFOH7utFAOl8bKM/0FLF+uuGumaE0dbipXJEOYD4Oq9zk03NsZo7/WOyPr+Ss76MZfS1zNLBLx3/5guRRhMlp+h549nj+OQmrheBTAFvb90S296XvmaE0aaCp6sgl94gV9qf/iO7l9HuQSvY2vAS5bHp59wfAm/fWoh3ZA08iW0AAAAASUVORK5CYII="), 22: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCBkk7Hvd9wAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAiklEQVQ4y2NgoBAwwhiXem3/w9h6xYcZ0RXikmei1AUUG8CI7LTLz3/AJTzd5OHs7bsewtm6khwMyF4ZeC+w/HaYAOcUTQxFeIEB4YWiV2/h7G2Rq5G0Gw+CWGB5fLkezlmfFg1nR7eeQYhXI8SR1Q+ShPT8SRY8IX29yUdQA7f6JzhbUmbaIEhIAMXkKewS1cHBAAAAAElFTkSuQmCC"), 32: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAUPprB56gAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABG0lEQVQ4y62TsU7DQBBEn2OHWMEJBRAiKwVFQIiCDilFynwISFT5GUo+hYqClgYJiYY+SEgYkHU4tmxsiomLq3Pb3Gl3b2f2dse7vDlpAOocAHqhB4BJSwCqtc5OECi+21Vi1cjPlha0yK0VuSoPR30A+nEtpErIyZseFHXliEF7OZ5OANjpyhWFYpDnGQC1r7/x4wSANCscMZiMx6qslsiMeqw6cqTGAHAY72k6Zm0hb8+gF6rnh7sXK7BYngl5KOT722crPr8+d8PAmy+1iaP9AwAGfgTA0+OrlXixOAVg9bEC4Ps9c8RgdjVtAJpAG5f/6PcHoV37M9Hco6MQgNL8OZrC1yrVpiENBBvVFb/Y6ttYnSmvLBxp4R/CM1dNZKkXNgAAAABJRU5ErkJggg=="), 33: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAkN5AtXygAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABUklEQVQ4y63TP0iVcRTG8c81/2CKovctwxJBEDRvOEZSbQXR4thSLq5iy4VECFHukn9Cve7u0RDYcJGoJDBQJ8OoQW2wNBwquChqvg6/SXDzPduBB873nPM8qelPozE8/54F16s6QHf0BNy+eBe8SufB3u4BWJ3/AUqcs1LNuUsx3LiVAT//bID2KPSbH7ZBy6NaUPwWCLLRi2QISq90VYKl3AqovxCB1tF28LuiCAq9yyBdmQbVY9UJEZRVlIP4IAW+LqyDLyOL4F/zr0Cy8BccZmIwWRxMiKCr/D643L8GOvM3Qb5vJiiOw4y3n9+A4bkhsF26lZAPppZyMbx+Nxd2fb8TblFYPyVsuBd8cOdl8Mfj4tOEbtBS3wqiqgbwsbB4pnBnPnxhf+M/mFgbT4hgdm8SXHtwFdRlakD/bA9oOmoDz7IDIRvLuyErDxuTITgBE2ldifRSs+UAAAAASUVORK5CYII="), 34: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAYvtvMK4QAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAA+ElEQVQ4y63QO4oCURCF4c9xaPEFbSqigTvQNRi7GEOhA6FTIzfiNtyBYKShIohvUJzoBjeZxD5RFXWqzk+V5vP5B57PJ6hWq+BwOID7/Q4qlQpoNpvg/X6DH1/qNyQHhcROpwPa7TZ4vV5gvV6Dx+NREEEoBoMBKJfLoNVqgev1Gi0EkuPxWBBBv9+PLp9OJ3C73cB+vwe9Xi9KDvqeoF6vg9lsFg2yLIuSp9NpNJ9MJsUQlBaLxQe63S6o1WpguVxGxvF4DDabDdhutwX9IHw7z/N/javVKupHo1FBBLvdDgyHQ5AkSWRoNBrgcrmANE3B+XwuhuAP0cRYqLWs0nQAAAAASUVORK5CYII="), 35: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAc7tTLv3QAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABDklEQVQ4y63Su0oDYRAF4C8XNUkRRLGSIGiEYFBJoeRdrGx9HVFfwNInsLSKNmJALVSwSSWIwZD7uha7ARPsstP8c4bhP4czJ1Wv7YRwdP8Erg73/K3ROAD9wQCsP76CVnUbpM1Z2fDnZ4q5eNcE7YNdEARjcBwzn22WQEGYjILUqeiriYJ0JgV6/REYDodgIZsFnW4fNF/eE/LgOm7GQeT2zd0jOI/nJ/E7wRfbG1N4fgWtahnkwmmm65nFWXy5X0noCrWdrRDyuVx03/wS+O50wefXN1hdKcbzHsjnFxPyYNIUltdAo3ELKuVSbHOUi4fnN1Cv16OctD8SVhCG4b8Li9nMFA7ivExyM7eCX2nPVFxK67LHAAAAAElFTkSuQmCC"), 36: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAsVxVGtHgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABU0lEQVQ4y63Tv0vUcRzH8cdVV2c/1O8p6qUgDiWCkJGDNAj5BwROLerSUP0BgZDrDbmFg3EiIjXc0tDQckRzXR0ELsGhmHFqni13h5IY1/BZvNnve3zD682T9/P9TuTz+SZ8+LEMRm6Og3eFN87W+vBjkG7vBsm2JLjgnHXp6vUrYPb+C/C6+BKM3bsDSsUS6O3NhMSNVMuA8xMcNf6C/XoVjPeMgWqlBjL9uy2Bf7VjcLG9LR6CRLovakKyuw5eLbwFuY8LIJuYBEOjYSedc3MgFUUxEeRWck2oHv4GX4vfwFG6DJYmngf/mb6QqP4C05/nY7JQO/4DGifBwuj+QfDfnwDPvmTB1NYgeDL7KPQvz8REUK58B59K70FHFC6uZ+cWOO3cBIWBbfDwZ9jB4t5qTAQP7k6Dw/oeqBzshG/ragT/HbdBubIBnpbXQtC1eAj+A9SNWsc6q4V1AAAAAElFTkSuQmCC"), 37: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAoFwf2MOwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABRUlEQVQ4y32Ty27CMBBFz4ydpGxAILGrivo3/Yv+Z7+mrJESwaalJDNdmDxMgMkmdnKP53Etn18fzk20547joQZgtd0Qq8CjiABujrWOe2LZxXAb39sbkYigURCVBLDWOTUNdjGmQIBT3SAqGUALZbleE8orwN3TSedulmJ38btp99nGfvP3W+n+xp+rnWWi817HHpXKaksOuBsThrsjIrNf9ClAwa/Pwym05y7ren8axkzY150BjocaN6d8Hcc4FQsp7erNhnVcWO6Du4XZk7LMB3/E1XaDXYxT3Qwjc/M0e4OffdItdpJ5pPdHjFWghcwsGvRuvSio6NzKtzGIFRbv82+hUJabNVpoAojIuLixssb57EMVCGUglFdNKJO3p5fpVDcALDdrRMG6KzAIGpM4K6HfALKeaKGEQml/052MLzHr1z+EQa7SLRnZJQAAAABJRU5ErkJggg=="), 38: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCA46E/dkAgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAf0lEQVQ4y7WTsQqAMBBDX0U6dOoi+CvOTp39Tj/B2cn/EJxcu9TJoQe1hdZsdxdISDhljAkAWmsAvPd8QfI6KtHnFOReot6BVHznlKLk1TvIpZ5CuxYOdwNwrgqA0QUApm2IiPt8xbwltHGgrLWhpPfUvV0LpYrtWyj9wt8yeAASSTd0D702yQAAAABJRU5ErkJggg=="), 39: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCA8c2OHQvgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAApUlEQVQ4y2NgoBAwVjUV/GdgYGBoq5vAiE0BTB5ZDbIYE6UuoNgAFpizkira4c6a11EJ986b5xwYmpDFBt4L8Fhg+MEFF/z+/TsDAwMDw4cPH+BivLy8GJonTZrEOAi8AGNkZmb+Z2BgYNi0aRNcMiEhAc5esGABnO3j48PAwMDAICLDNRhiIS2z4j8DAwPDr+8vMCS5+GQQCv++x5CfOnXqIIgFABSwMEHtJUHQAAAAAElFTkSuQmCC"), 40: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAgpwROCWgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABJ0lEQVQ4y63Tu0okQRTG8V+P4+iMVxAREdlARBREEQyN9Gl8AU00MTYSfBhxTcRoYdlIYRdNnEAUBS+DOtNjb3C6A03tSr46RdU5/zqXpLawmsH++S+wtbIGpJ3Q9hvIWs9g4/oSHE/NgIpvrqRvfiWDnvoAWP99Cn7mJOlLRN7/+wfsjE/Gw2qtJIIDMtidXwYf/UHy0WqFFrnI1/DjHWje35ZDUD0qdp0ueLg4A4f58Wauhb03NvHJ/j7ByY9ZUM//Wng++nKxsF8rvWB7uqw+qM0uZlAtkKoRofvyCN6fn0BvXv9u3pFJY6CkHJCEx3oDvDWvov6DI9GJlZ7Q63+gMbcUJO12WQRp1D9L0/DcielLsuG4UesPfbiJB0OjMaQ3zXII/gMiIliJjt3yRAAAAABJRU5ErkJggg=="), 41: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCAoohCLQTgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAA30lEQVQ4y6WTsQ2EMBAEx+gDpAtphArcAxk1UBA1kFGAM1dAH4jQFhkf2TLG/tfrV0Iye+hub70o7/1FBudcPItIlQNoQjF9rLW3ZjUOQHnvr/ASPtJaU0JeF5F7g18hIqh93y/+wCuVN8/zrbgsCwDjON74aZriGo8Vwp7DMHAcBwBd17Gu68MfEaFp2/Yhq2RiiXPO0ZznWdwtTE/PeRMRQRljool93380zFqL1ppt2yKn0iSGwNRyUEpiVPBteo6gIirIw5RfXbjSXIUyxly/Tk9V/B/l2u+cGlXjAN472J2vHjgcIgAAAABJRU5ErkJggg=="), 42: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCBAAAbqCbwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAuElEQVQ4y2MUYGD4z8DAwPCBARUIQWkRNPFbUJoFSjMxUAgYOaEugAFuKC0As0EYyngLod5Aub+o5gJeqAu2oEl4o/G3ovF9qeYCGagL7tlCBQ5CaA2o0c+gCj/9g9D/7SG0ymFquYAP6gIJmAg01J9BQ/0LVFgSSvOiGUC5C3jQ0sEXtPQAcxkzTAEbqlModwEDmgs40fICNywzvMFuAMUuYEEXkIX5kQ9CvYPa/BUq/B1KK1PLBQBzxx7wSCywogAAAABJRU5ErkJggg=="), 43: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCBUf8cV73wAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABF0lEQVQ4y62SsUoDURBFzxoxRFdQBMNGRNBgIYKF2AYCWu1H2Imd+hX+gq1fYG2phU0QLFSCqCghGzQJAZMYjMqzuGOxdd40d+bOe8zlzgQflbwDCDtvAFBaAaBx9gRAtCmavuFGSfhdB2CMEWO828oAEC6ti7m8TU+2aFSF0VRPSbXvR0FwfoAD2IlF1F+EC1v2opnm/+P+Dk8eRGuWbe8DUA5PAXi4GWhyRe3yYU58b1cKjk48eRAX5cHxnoikJXTvwuVZ4XPHPswL8+BLwaoUTP+mGxc6ROasjovC10LB1pJ42kJmQsl1zZif0Cbr4tpGXz3afbgkpXB0DxYn5UEW7XngtP9coHrmU/UwK6nNr6Fp96TgD68IS+Ryu2FhAAAAAElFTkSuQmCC"), 44: headArrow("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsQAAALEAGtI711AAAAB3RJTUUH3wkVCBoQ5uJ6gQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABJUlEQVQ4y62TvU4CQRSFv/2DBWRR/AkkBht7H8NSKxPfwIreyk5fwWegsbGxsyOxsDUWKmY1QUUxmtVddmfGYpfEydKxp7w5Oee7k7nG8VlXAVz2+wCUKw6pBP/17gcAuKoMQGhEAJjMKXvgPwIQBTEASujNk1AC4FRsAOpiIeWzREEEo5fPbOU0cRIIrbnVXgagWnUBaDZWAHi9HhVEMHx+A+CuN5hpuOdh5ryz0ymIYJpxdXMOwOneIQAX6x+acfupCcBB7wSA/aPuNCCvUAhELHMz17JyXmNrd1MB2G6WJRUilqwlevZXA+ySxe9PAkASJoW9ga6x/41MJIurHgClDHt4O8a0TZY2PM1fPIHXriFiiUpPg0imP7PeqmE5+b65Cf4AjI9iM/4hVAEAAAAASUVORK5CYII=") }; function headArrow(string) { var head = decodeBmp(string), bmp = android.graphics.Bitmap.createBitmap(arrow.getWidth(), arrow.getHeight(), android.graphics.Bitmap.Config.ARGB_8888), canvas = new android.graphics.Canvas(bmp); canvas.drawBitmap(arrow, 0, 0, null); canvas.drawBitmap(head, 1, 6, null); return bmp; } function decodeBmp(string) { string = android.util.Base64.decode(string, 0); return android.graphics.BitmapFactory.decodeByteArray(string, 0, string.length); } function drawBorderBmp() { var bmp = android.graphics.Bitmap.createBitmap(settings.window_size, settings.window_size, android.graphics.Bitmap.Config.ARGB_8888), canvas = new android.graphics.Canvas(bmp), paint = new android.graphics.Paint(); paint.setMaskFilter(new android.graphics.EmbossMaskFilter([1, 1, 0.3], 0.7, 8, 3 * density)); switch (settings.style_border) { case 1: paint.setColor(android.graphics.Color.rgb(153, 135, 108)); break; case 2: paint.setShader(new android.graphics.LinearGradient(0, 0, settings.window_size * 0.5, settings.window_size, [android.graphics.Color.GREEN, android.graphics.Color.YELLOW, android.graphics.Color.GREEN], null, android.graphics.Shader.TileMode.REPEAT)); break; default: return null; } canvas.drawPath(createPath(true, true), paint); return bmp; } function createPath(outer, inner) { var path = new android.graphics.Path(), size = settings.window_size; path.setFillType(android.graphics.Path.FillType.EVEN_ODD); if (settings.style_shape === 1) { if (inner) {path.addCircle(size / 2, size / 2, size / 2 - (7 * density), android.graphics.Path.Direction.CW); } if (outer) {path.addCircle(size / 2, size / 2, size / 2, android.graphics.Path.Direction.CW); } return path; } else { if (inner) {path.addRect(7 * density, 7 * density, size - (7 * density), size - (7 * density), android.graphics.Path.Direction.CW); } if (outer) {path.addRect(0, 0, size, size, android.graphics.Path.Direction.CW); } return path; } } function chunkLoaded(ix, iz) { var iy = 130; do { if (Level.getTile(ix, 130 - iy, iz)) {return true; } } while(iy -= 10); return false; } mapDot = [ function basicSurfaceMap(ix, iz) { var iy = 130, deltaY = 10, colors = {1: -8487298, 3: -7970749, 4: -8487298, 8: -14000385, 9: -14000385, 10: -637952, 11: -637952, 12: -2370656, 13: -8618884, 17: -10005725, 18: -13534192, 24: -3817840, 48: -10193052, 78: -984069, 79: -5255937, 82: -6314831, 98: -8487298, 99: -7509421, 100: -4774107, 109: -8487298, 110: -9542807, 128: -3817840, 159: -2968927, 161: -8028101, 162: -13293288, 172: -6857405, 174: -5255937, 243: -10797283}; do { if (Level.getTile(ix, iy - 10, iz)) { if (deltaY === 10) { deltaY = 1; iy += 10; } else { return colors[Level.getTile(ix, iy - 10, iz)] || -8540361; } } } while (iy -= deltaY); return 0; }, function minecraftMap(ix, iz) { var color, block, iy = 130, deltaY = 10, o = android.graphics.Color; do { if (Level.getTile(ix, iy - 10, iz)) { if (deltaY === 10) { deltaY = 1; iy += 10; } else { block = Level.getTile(ix, iy - 10, iz); switch (block) { case 9: if (Level.getTile(ix, iy - 19, iz) === 9) {return -13882190; } if (Level.getTile(ix, iy - 16, iz) === 9) {return !(ix % 2) === !((iz + 1) % 2) ? -13882190 : -13224231; } if (Level.getTile(ix, iy - 14, iz) === 9) {return -13224231; } if (Level.getTile(ix, iy - 12, iz) === 9) {return !(ix % 2) === !((iz + 1) % 2) ? -13224231 : -12632068; } return -12632068; case 12: if (Level.getData(ix, iy - 10, iz)) {color = 0xd57d32; } else {color = 0xf4e6a1; } break; case 35: case 159: case 171: color = [0xfcf9f2, 0xd57d32, 0xb04bd5, 0x6597d5, 0xe2e232, 0x7dca19, 0xef7da3, 0x4b4b4b, 0x979797, 0x4b7d97, 0x7d3eb0, 0x324bb0, 0x654b32, 0x657d32, 0x973232, 0x191919][Level.getData(ix, iy - 10, iz)]; break; case 5: case 85: case 157: case 158: color = [0x8d7647, 0x7e5430, 0xf4e6a1, 0x956c4c, 0xd57d32, 0x654b32, 0, 0, 0x8d7647, 0x7e5430, 0xf4e6a1, 0x956c4c, 0xd57d32, 0x654b32, 0, 0][Level.getData(ix, iy - 10, iz)]; break; case 43: case 44: color = [0x6f6f6f, 0xf4e6a1, 0x8d7647, 0x6f6f6f, 0x973232, 0x6f6f6f, 0xfcfcfc, 0x6f0200, 0x6f6f6f, 0xf4e6a1, 0x8d7647, 0x6f6f6f, 0x973232, 0x6f6f6f, 0xfcfcfc, 0x6f0200][Level.getData(ix, iy - 10, iz)]; break; case 54: chests[chests.length] = [ix + 0.5, iz + 0.5]; default: color = {2: 0x7db037, 3: 0x956c4c, 6: 0x007b00, 8: 0x3f3ffc, 10: 0xfc0000, 11: 0xfc0000, 17: 0x8d7647, 18: 0x007b00, 19: 0xe2e232, 22: 0x4981fc, 24: 0xf4e6a1, 30: 0xfcfcfc, 31: 0x007b00, 32: 0x8d7647, 37: 0x007b00, 38: 0x007b00, 39: 0x007b00, 40: 0x007b00, 41: 0xf7eb4c, 42: 0xa5a5a5, 45: 0x973232, 46: 0xfc0000, 47: 0x8d7647, 49: 0x191919, 53: 0x8d7647, 54: 0x8d7647, 57: 0x5bd8d2, 59: 0x007b00, 60: 0x956c4c, 78: 0xfcfcfc, 79: 0x9e9efc, 80: 0xfcfcfc, 81: 0x007b00, 82: 0xa2a6b6, 83: 0x007b00, 86: 0xd57d32, 87: 0x6f0200, 91: 0xd57d32, 99: 0x8d7647, 100: 0x973232, 103: 0x7dca19, 104: 0x007b00, 105: 0x007b00, 106: 0x007b00, 107: 0x8d7647, 108: 0x973232, 110: 0x7d3eb0, 111: 0x007b00, 112: 0x6f0200, 113: 0x6f0200, 114: 0x6f0200, 121: 0xf4e6a1, 128: 0xf4e6a1, 133: 0x00d639, 134: 0x7e5430, 135: 0xf4e6a1, 136: 0x956c4c, 141: 0x007b00, 142: 0x007b00, 152: 0xfc0000, 155: 0xfcfcfc, 156: 0xfcfcfc, 161: 0x007b00, 162: 0x8d7647, 163: 0xd57d32, 164: 0x654b32, 170: 0xf7eb4c, 172: 0xd57d32, 174: 0x9e9efc, 175: 0x007b00, 183: 0x7e5430, 184: 0xf4e6a1, 185: 0x956c4c, 187: 0xd57d32, 186: 0x654b32, 243: 0x7e5430, 244: 0x007b00}; color = color[block] || 0x6f6f6f; } if (Level.getTile(ix - 1, iy - 9, iz)) { return o.rgb(o.red(color) * (180 / 255), o.green(color) * (180 / 255), o.blue(color) * (180 / 255)); } if (Level.getTile(ix - 1, iy - 10, iz)) { return o.rgb(o.red(color) * (220 / 255), o.green(color) * (220 / 255), o.blue(color) * (220 / 255)); } return o.rgb(o.red(color), o.green(color), o.blue(color)); } } } while (iy -= deltaY); return 0; }, function caveMap(ix, iz) { var count = 0, block = 1, blockNew, iy = 96, y, r, g, b, increment = 3; do { blockNew = Level.getTile(ix, iy - 3, iz); switch (blockNew) { case 0: case 17: case 18: case 20: case 50: case 64: case 66: case 106: case 127: case 161: case 162: blockNew = 1; break; case 8: case 9: blockNew = 0; if (count > 1) {r = r || 1; g = g || 1; b = b || 255; blockNew = 1} break; case 10: case 11: blockNew = 0; if (count > 1) {r = r || 255; g = g || 1; b = b || 1; blockNew = 1} break; case 4: case 48: blockNew = 2; if (count > 2) {r = r || 1; g = g || 255; b = b || 255} break; case 97: case 98: blockNew = 2; if (count > 2) {r = r || 255; g = g || 1; b = b || 255} break; case 54: chests[chests.length] = [ix + 0.5, iz + 0.5]; default: blockNew = 2; } if (blockNew !== block) {count += blockNew; y = iy} if (count === 5) { iy += 3; increment = 1; count = 6; blockNew = 1; } else if (count === 8) { r = r || 150; g = g || 255; b = b || 0; return android.graphics.Color.rgb(r * (0.8 * (y / 127) + 0.2), g * (0.9 * (y / 127) + 0.1), b * (0.9 * (y / 127) + 0.1)); } block = blockNew; } while (iy -= increment); y = y || 127; r = 255; g = 255; b = 255; return android.graphics.Color.rgb(r * (0.8 * (y / 127) + 0.2), g * (0.8 * (y / 127) + 0.2), b * (0.8 * (y / 127) + 0.2)); } ]; function checkRenderDistance() { var options = load(android.os.Environment.getExternalStorageDirectory().getPath() + "/games/com.mojang/minecraftpe/", "options.txt").split("\n"), i; if (options != "") { for (i = 0; i < options.length; i += 1) { options[i] = options[i].split(":"); if (options[i][0] === "gfx_renderdistance_new") { return Math.round(parseInt(options[i][1], 10) / 16); } } } return 6; } function saveSettings() { var settingsString = "", p; for (p in settings) { if (settings.hasOwnProperty(p)) { if (settingsString !== "") {settingsString += "\n"; } settingsString += p + ":" + settings[p]; } } save(android.os.Environment.getExternalStorageDirectory().getPath() + "/games/com.mojang/minecraftpe/mods/", "minimap.txt", settingsString); } function changeMapState() { var i; map_state = !map_state; mapWindow.resetVisibility(); if (map_state) { delayChunksArrLock.acquire(); i = delayChunksArr.length; while (i--) { scheduleChunk(delayChunksArr[i][0], delayChunksArr[i][1], 0); } delayChunksArr = []; delayChunksArrLock.release(); scheduledFutureUpdateMap = poolTick.scheduleWithFixedDelay(runnableUpdateMap, 1000, Math.round(1000 / settings.delay), java.util.concurrent.TimeUnit.MILLISECONDS); scheduleChunk(Math.floor(X / 16) * 16, Math.floor(Z / 16) * 16, 0); } else { scheduledFutureUpdateMap.cancel(false); } } function settingsChanged(key) { switch (key) { case "radius": var i, j, widthOld = bmpSrc.getWidth(), widthNew = ((settings.radius + 1) * 2 + 1) * 16, xChunk = Math.floor(X / 16) * 16, zChunk = Math.floor(Z / 16) * 16; try { bmpSrcLock.acquire(); bmpSrcCopy = android.graphics.Bitmap.createBitmap(widthNew, widthNew, android.graphics.Bitmap.Config.ARGB_8888); canvasBmpSrcCopy.setBitmap(bmpSrcCopy); canvasBmpSrcCopy.drawBitmap(bmpSrc, (widthNew - widthOld) / 2, (widthNew - widthOld) / 2, null); bmpSrc = android.graphics.Bitmap.createBitmap(widthNew, widthNew, android.graphics.Bitmap.Config.ARGB_8888); canvasBmpSrc.setBitmap(bmpSrc); canvasBmpSrc.drawBitmap(bmpSrcCopy, 0, 0, null); } finally { bmpSrcLock.release(); } minZoom = settings.window_size / (settings.radius * 2 * 16); absZoom = (100 / settings.map_zoom) * minZoom; if (widthNew > widthOld) { for (i = (widthOld - 16) / 2; i <= settings.radius * 16; i += 16) { for (j = 0; j < i; j += 16) { if (map_state) { scheduleChunk(xChunk + j + 16, zChunk + i, 0); scheduleChunk(xChunk + j, zChunk - i, 0); scheduleChunk(xChunk - j, zChunk + i, 0); scheduleChunk(xChunk - j - 16, zChunk - i, 0); scheduleChunk(xChunk + i, zChunk + j, 0); scheduleChunk(xChunk + i, zChunk - j - 16, 0); scheduleChunk(xChunk - i, zChunk + j + 16, 0); scheduleChunk(xChunk - i, zChunk - j, 0); } else { delayChunksArrLock.acquire(); delayChunksArr[delayChunksArr.length] = [xChunk + j + 16, zChunk + i]; delayChunksArr[delayChunksArr.length] = [xChunk + j, zChunk - i]; delayChunksArr[delayChunksArr.length] = [xChunk - j, zChunk + i]; delayChunksArr[delayChunksArr.length] = [xChunk - j - 16, zChunk - i]; delayChunksArr[delayChunksArr.length] = [xChunk + i, zChunk + j]; delayChunksArr[delayChunksArr.length] = [xChunk + i, zChunk - j - 16]; delayChunksArr[delayChunksArr.length] = [xChunk - i, zChunk + j + 16]; delayChunksArr[delayChunksArr.length] = [xChunk - i, zChunk - j]; delayChunksArrLock.release(); } } } } redraw = true; break; case "map_type": if (pool.getActiveCount() > 0) { createPool(); } X = undefined; break; case "map_zoom": absZoom = (100 / settings.map_zoom) * minZoom; redraw = true; break; case "map_alpha": mapView.setAlpha(settings.map_alpha / 100); break; case "window_rawSize": settings.window_size = (settings.window_rawSize / 100) * displayHeight; var lp = mapView.getLayoutParams(); lp.height = settings.window_size; lp.width = settings.window_size; mapView.setLayoutParams(lp); redraw = true; bmpBorder = drawBorderBmp(); if (settings.style_border !== 0) { pathBorder = createPath(false, true); } else { pathBorder = createPath(true, false); } redraw = true; minZoom = settings.window_size / (settings.radius * 2 * 16); absZoom = (100 / settings.map_zoom) * minZoom; break; case "window_rawPosition": mapWindow.hide(); mapWindow.show(); break; case "style_shape": if (settings.style_border !== 0) { pathBorder = createPath(false, true); } else { pathBorder = createPath(true, false); } case "style_border": if (settings.style_border !== 0) { pathBorder = createPath(false, true); } else { pathBorder = createPath(true, false); } bmpBorder = drawBorderBmp(); redraw = true; break; case "style_pointer": redraw = true; break; case "show_info": case "show_zoomBtn": mapWindow.resetVisibility(); break; case "delay": scheduledFutureUpdateMap.cancel(false); scheduledFutureUpdateMap = poolTick.scheduleWithFixedDelay(runnableUpdateMap, 1000, Math.round(1000 / settings.delay), java.util.concurrent.TimeUnit.MILLISECONDS); break; case "threadCount": pool.setCorePoolSize(settings.threadCount); break; } } function settingsClosed() { saveSettings(); } function settingsUI() { var textSize = 17, padding = 10, context = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(), alert = new android.app.AlertDialog.Builder(context), scroll = new android.widget.ScrollView(context), layout = new android.widget.LinearLayout(context), i, len = arguments[0].length, ruler, rulerLp = new android.view.ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, 2), addOption = { checkBox : function (args) { var layoutElement = new android.widget.RelativeLayout(context), checkBtn = new android.widget.CheckBox(context), checkBtnLp = new android.widget.RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT, android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT), text = new android.widget.TextView(context), textLp = new android.widget.RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT, android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT); text.setTextSize(textSize); text.setText(args[2]); checkBtn.setId(1); checkBtn.setChecked(Boolean(settings[args[1]])); checkBtn.setOnCheckedChangeListener(function(buttonView, isChecked) { if (isChecked) {settings[args[1]] = 1; } else {settings[args[1]] = 0; } settingsChanged(args[1]); }); checkBtnLp.addRule(android.widget.RelativeLayout.ALIGN_PARENT_RIGHT); checkBtnLp.addRule(android.widget.RelativeLayout.CENTER_VERTICAL); textLp.addRule(android.widget.RelativeLayout.ALIGN_PARENT_LEFT); textLp.addRule(android.widget.RelativeLayout.CENTER_VERTICAL); textLp.addRule(android.widget.RelativeLayout.LEFT_OF, 1); layoutElement.addView(checkBtn, checkBtnLp); layoutElement.addView(text, textLp); layoutElement.setPadding(padding, padding * 0.5, padding, padding * 0.5); return layoutElement; }, subScreen : function (args) { var text = new android.widget.TextView(context); text.setTextSize(textSize); text.setText(args[1] + " >"); text.setPadding(padding, padding, padding, padding); text.setOnClickListener(function(v){ settingsUI(args[2]).show(); }); return text; }, sectionDivider : function (args) { var text = new android.widget.TextView(context); text.setTextSize(textSize * 0.9); text.setText(args[1]); text.setTextColor(android.graphics.Color.WHITE) text.setBackgroundDrawable(new android.graphics.drawable.GradientDrawable(android.graphics.drawable.GradientDrawable.Orientation.LEFT_RIGHT , [android.graphics.Color.rgb(0, 127, 0), android.graphics.Color.rgb(63, 95, 0), android.graphics.Color.rgb(0, 63, 0)])); text.setPadding(padding, 0, padding, 0); return text; }, keyValue : function (args) { var layoutElement = new android.widget.RelativeLayout(context), text = new android.widget.TextView(context), textLp = new android.widget.RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT, android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT), textValue = new android.widget.TextView(context), textValueLp = new android.widget.RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT, android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT); text.setTextSize(textSize); text.setText(android.text.Html.fromHtml(args[2])); text.setMovementMethod(android.text.method.LinkMovementMethod.getInstance()); textValue.setTextSize(textSize); textValue.setTextColor(android.graphics.Color.rgb(100, 255, 0)); textValue.setId(1); switch (args[1]) { case "multipleChoice": if (args[4].length <= settings[args[3]]) {settings[args[3]] = 0} textValue.setText(args[4][settings[args[3]]]); textValue.setOnClickListener(function(v){ var alert = new android.app.AlertDialog.Builder(context), listView = new android.widget.ListView(context), adapter = new android.widget.ArrayAdapter(context, android.R.layout.simple_list_item_single_choice, args[4]); listView.setAdapter(adapter); listView.setChoiceMode(android.widget.ListView.CHOICE_MODE_SINGLE); listView.setItemChecked(settings[args[3]], true); listView.setDivider(new android.graphics.drawable.GradientDrawable(android.graphics.drawable.GradientDrawable.Orientation.LEFT_RIGHT, [android.graphics.Color.GREEN, android.graphics.Color.YELLOW, android.graphics.Color.GREEN])); listView.setDividerHeight(2); listView.setPadding(padding, padding, padding, padding); listView.setOnItemClickListener(function(parent, view, position, id) { settings[args[3]] = position; for (var i = 5; i < args.length; i += 2) {settings[args[i]] = args[i + 1][position]; } textValue.setText(args[4][position]); settingsChanged(args[3]); alert.dismiss(); }); alert.setView(listView); alert.setTitle(args[2]); alert.setNegativeButton("Cancel", function(dialog, whichButton) { alert.dismiss(); }); alert = alert.show(); }); break; case "slider": textValue.setText(settings[args[3]] + args[7]); textValue.setOnClickListener(function(v){ var alert = new android.app.AlertDialog.Builder(context), seekBar = new android.widget.SeekBar(context); seekBar.setMax((args[5] - args[4]) / args[6]); seekBar.setProgress((settings[args[3]] - args[4]) / args[6]); seekBar.setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener({ onProgressChanged: function(seekBar, progress, fromUser) { alert.setTitle(args[2] + " " + (progress * args[6] + args[4]) + args[7]); } })); alert.setView(seekBar); alert.setTitle(args[2] + " " + settings[args[3]] + args[7]); alert.setPositiveButton("Ok", function(dialog, whichButton) { settings[args[3]] = seekBar.getProgress() * args[6] + args[4]; textValue.setText(settings[args[3]] + args[7]); settingsChanged(args[3]); alert.dismiss(); }); alert.setNegativeButton("Cancel", function(dialog, whichButton) { alert.dismiss(); }); alert = alert.show(); }); break; default: textValue.setText(String(args[3])); } textLp.addRule(android.widget.RelativeLayout.ALIGN_PARENT_LEFT); textLp.addRule(android.widget.RelativeLayout.CENTER_VERTICAL); textLp.addRule(android.widget.RelativeLayout.LEFT_OF, 1); textValueLp.addRule(android.widget.RelativeLayout.ALIGN_PARENT_RIGHT); textValueLp.addRule(android.widget.RelativeLayout.CENTER_VERTICAL); layoutElement.addView(textValue, textValueLp); layoutElement.addView(text, textLp); layoutElement.setPadding(padding, padding, padding, padding); return layoutElement; }}; padding = padding * context.getResources().getDisplayMetrics().density; layout.setOrientation(android.widget.LinearLayout.VERTICAL); layout.setPadding(padding, 0, padding, 0); for (i = 2; i < len; i += 1) { layout.addView(addOption[arguments[0][i][0]](arguments[0][i])); if (i + 1 < len) { ruler = new android.view.View(context); ruler.setBackgroundDrawable(new android.graphics.drawable.GradientDrawable(android.graphics.drawable.GradientDrawable.Orientation.LEFT_RIGHT, [android.graphics.Color.GREEN, android.graphics.Color.YELLOW, android.graphics.Color.GREEN])); layout.addView(ruler, rulerLp); } } scroll.addView(layout); alert.setView(scroll); alert.setTitle(arguments[0][0]); alert.setPositiveButton(arguments[0][1], function(dialog,whichButton){ settingsClosed(); }); return alert; } function save(path, filename, content) { try { java.io.File(path).mkdirs(); var newFile = new java.io.File(path, filename); newFile.createNewFile(); var outWrite = new java.io.OutputStreamWriter(new java.io.FileOutputStream(newFile)); outWrite.append(content); outWrite.close(); } catch (e) { print("save, " + e + " (" + e.fileName + " #" + e.lineNumber + ")"); } } function load(path, filename) { var content = ""; if (java.io.File(path + filename).exists()) { var file = new java.io.File(path + filename), fos = new java.io.FileInputStream(file), str = new java.lang.StringBuilder(), ch; while ((ch = fos.read()) != -1) {str.append(java.lang.Character(ch)); } content = String(str.toString()); fos.close(); } return content; } function loadTxtFromUrl(url) { try { var content = new java.io.ByteArrayOutputStream(); android.net.http.AndroidHttpClient.newInstance("userAgent").execute(new org.apache.http.client.methods.HttpGet(url)).getEntity().writeTo(content); content.close(); return String(content.toString()); } catch (e) { return ""; } } function getNearestEntity(maxrange) { var mobs = Entity.getAll(); var players = Server.getAllPlayers(); var small = maxrange; var ent = null; for (var i = 0; i < mobs.length; i++) { var x = Entity.getX(mobs[i]) - getPlayerX(); var y = Entity.getY(mobs[i]) - getPlayerY(); var z = Entity.getZ(mobs[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if (dist < small && dist > 0 && Entity.getEntityTypeId(mobs[i]) <= 63 && Entity.getHealth(mobs[i]) >= 1) { small = dist; ent = mobs[i]; } } for (var i = 0; i < players.length; i++) { var x = Entity.getX(players[i]) - getPlayerX(); var y = Entity.getY(players[i]) - getPlayerY(); var z = Entity.getZ(players[i]) - getPlayerZ(); var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)); if (dist < small && dist > 0 && Entity.getHealth(players[i]) >= 1) { small = dist; ent = players[i]; } } return ent; } function crosshairAimAt(ent, pos) { if(ent != null) { var x = Entity.getX(ent) - getPlayerX(); var y = Entity.getY(ent) - getPlayerY(); var z = Entity.getZ(ent) - getPlayerZ(); if(pos != null && pos instanceof Array) { x = Entity.getX(ent) - pos[0]; y = Entity.getY(ent) - pos[1]; z = Entity.getZ(ent) - pos[2]; } if(Entity.getEntityTypeId(ent) != 63) y += 0.5; var a = 0.5 + Entity.getX(ent); var b = Entity.getY(ent); var c = 0.5 + Entity.getZ(ent); var len = Math.sqrt(x * x + y * y + z * z); var y = y / len; var pitch = Math.asin(y); pitch = pitch * 180.0 / Math.PI; pitch = -pitch; var yaw = -Math.atan2(a - (Player.getX() + 0.5), c - (Player.getZ() + 0.5)) * (180 / Math.PI); if(pitch < 89 && pitch > -89) { Entity.setRot(Player.getEntity(), yaw, pitch); } } }