var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(), Button = android.widget.Button, LinearLayout = android.widget.LinearLayout, RelativeLayout = android.widget.RelativeLayout, PopupWindow = android.widget.PopupWindow, ScrollView = android.widget.ScrollView, TextView = android.widget.TextView, CheckBox = android.widget.CheckBox, LayoutParams = android.view.ViewGroup.LayoutParams, Typeface = android.graphics.Typeface, Switch = android.widget.Switch, BufferedReader=java.io.BufferedReader,InputStreamReader=java.io.InputStreamReader,Toast = android.widget.Toast, Runnable = java.lang.Runnable, URL=java.net.URL,nanoTime = java.lang.System.nanoTime(), Html = android.text.Html,ClipboardManager = android.content.ClipboardManager, SystemClock = android.os.SystemClock, AlarmManager = android.app.AlarmManager, AudioManager = android.media.AudioManager, ToneGenerator = android.media.ToneGenerator, Handler = android.os.Handler, Looper = android.os.Looper, System = java.lang.System, DownloadManager = android.app.DownloadManager, Dialog = android.app.Dialog, ConnectivityManager = android.net.ConnectivityManager, Notification = android.app.Notification, PendingIntent = android.app.PendingIntent, View = android.view.View, ColorDrawable = android.graphics.drawable.ColorDrawable, Color = android.graphics.Color, Gravity = android.view.Gravity, PorterDuff = android.graphics.PorterDuff, Intent = android.content.Intent, DialogInterface = android.content.DialogInterface, DataOutputStream = java.io.DataOutputStream, BufferedReader = java.io.BufferedReader, Thread = java.lang.Thread, TypedValue = android.util.TypedValue, Byte = java.lang.Byte, Context = android.content.Context, Handler = android.os.Handler, TextWatcher = android.text.TextWatcher, FileWriter = java.io.FileWriter, InputStreamReader = java.io.InputStreamReader, SpannableStringBuilder = android.text.SpannableStringBuilder, ImageSpan = android.text.style.ImageSpan, Spannable = android.text.Spannable, StringBuffer = java.lang.StringBuffer, Calendar = java.util.Calendar, Html = android.text.Html, ZipFile = java.util.zip.ZipFile, ByteBuffer = java.nio.ByteBuffer, MediaPlayer = android.media.MediaPlayer, String = java.lang.String, StringBuilder = java.lang.StringBuilder, printWriter = java.io.printWriter,Uri = android.net.Uri, activity = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(), TranslateAnimation = android.view.animation.TranslateAnimation, Animation = android.view.animation.Animation, RotateAnimation = android.view.animation.RotateAnimation, DecelerateInterpolator = android.view.animation.DecelerateInterpolator, LinearInterpolator = android.view.animation.LinearInterpolator, Environment = android.os.Environment, FileInputStream = java.io.FileInputStream, SharedPreferences = android.content.SharedPreferences, numbers = android.text.InputType.TYPE_CLASS_NUMBER, number = android.text.InputType.TYPE_NUMBER_FLAG_SIGNED, ImageView = android.widget.ImageView, EditText = android.widget.EditText, CompoundButton = android.widget.CompoundButton, SeekBar = android.widget.SeekBar, Build = android.os.Build, ProgressBar = android.widget.ProgressBar, ToggleButton = android.widget.ToggleButton, FrameLayout = android.widget.FrameLayout, BitmapFactory = android.graphics.BitmapFactory, ViewGroup = android.view.ViewGroup, GradientDrawable = android.graphics.drawable.GradientDrawable, Bitmap = android.graphics.Bitmap, Canvas = android.graphics.Canvas, Paint = android.graphics.Paint, Path = android.graphics.Path, LinearGradient = android.graphics.LinearGradient, Shader = android.graphics.Shader, MotionEvent = android.view.MotionEvent, BitmapDrawable = android.graphics.drawable.BitmapDrawable, StateListDrawable = android.graphics.drawable.StateListDrawable, ViewTreeObserver = android.view.ViewTreeObserver, ClipDrawable = android.graphics.drawable.ClipDrawable, LightingColorFilter = android.graphics.LightingColorFilter, WindowManager = android.view.WindowManager, DisplayMetrics = android.util.DisplayMetrics, ScriptManager = net.zhuoweizhang.mcpelauncher.ScriptManager, File = java.io.File, FileOutputStream = java.io.FileOutputStream, Base64 = android.util.Base64, survivalview,pvpview,potionview,movementview,exploitview,friendview,waypointview,titleMenu, survivalTab = [ {name:"32k Enchant",id:1,view:"return survivalview",style:"white",menu:false,type:"button",setting:"Protection:32767;Fire Protection:32767;Feather Falling:32767;Blast Protection:32767;Projectile Prot:32767;Thorns:32767;Respiration:32767;Aqua Affinity:32767;Depth Strider:32767;Sharpness:32767;Smite:32767;Bane of Anthropods:32767;Knockback:32767;Fire Aspect:32767;Looting:32767;Efficiency:32767;Silk Touch:32767;Unbreaking:32767;Fortune:32767;Power:32767;Punch:32767;Flame:32767;Infinity:32767;Luck of the Sea:32767;Lure:32767;",call:"Player.enchant(Player.getSelectedSlotId(), Enchantment.PROTECTION, survivalTab[0].setting.split(';')[0].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.FIRE_PROTECTION, survivalTab[0].setting.split(';')[1].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.FEATHER_FALLING, survivalTab[0].setting.split(';')[2].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.BLAST_PROTECTION, survivalTab[0].setting.split(';')[3].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.PROJECTILE_PROTECTION, survivalTab[0].setting.split(';')[4].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.THORNS, survivalTab[0].setting.split(';')[5].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.RESPIRATION, survivalTab[0].setting.split(';')[6].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.AQUA_AFFINITY, survivalTab[0].setting.split(';')[7].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.DEPTH_STRIDER, survivalTab[0].setting.split(';')[8].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.SHARPNESS, survivalTab[0].setting.split(';')[9].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.SMITE, survivalTab[0].setting.split(';')[10].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.BANE_OF_ARTHROPODS, survivalTab[0].setting.split(';')[11].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.KNOCKBACK, survivalTab[0].setting.split(';')[12].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.FIRE_ASPECT, survivalTab[0].setting.split(';')[13].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.LOOTING, survivalTab[0].setting.split(';')[14].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.EFFICIENCY, survivalTab[0].setting.split(';')[15].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.SILK_TOUCH, survivalTab[0].setting.split(';')[16].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.UNBREAKING, survivalTab[0].setting.split(';')[17].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.FORTUNE, survivalTab[0].setting.split(';')[18].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.POWER, survivalTab[0].setting.split(';')[19].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.PUNCH, survivalTab[0].setting.split(';')[20].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.FLAME, survivalTab[0].setting.split(';')[21].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.INFINITY, survivalTab[0].setting.split(';')[22].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.LUCK_OF_THE_SEA, survivalTab[0].setting.split(';')[23].split(':')[1]); Player.enchant(Player.getSelectedSlotId(), Enchantment.LURE, survivalTab[0].setting.split(';')[24].split(':')[1]); "}, {name:"Optifine",type:"button",state:false,keystate:false,call:"clientMessage('Optifine '+survivalTab[1].state);survivalTab[1].state?ModPE.setFov(20):ModPE.resetFov()"}, {name:"Coordinates",rp:"tick",type:"button",state:false,call:"if(survivalTab[2].state){if(!dataWin){displayData()}}else if(!survivalTab[2].state&&!pvpTab[9].state){dataView.dismiss();dataWin=false;}var tempCoordtxt = ' X:' + Math.floor(Player.getX()) + ' Y:' + Math.floor(Player.getY() - 1) + ' Z:' + Math.floor(Player.getZ()); ctx.runOnUiThread( new java.lang.Runnable({ run: function() { try { coordsView.setText(tempCoordtxt);if(!survivalTab[2].state&&dataWin){coordsView.setText('');} } catch (err) {clientMessage(err);} } }));"}, {name:"Nether Coordinates",rp:"tick",type:"switch",state:false,call:"Player.getDimension()==1?(ModPE.showTipMessage(ChatColor.RED +'In NetherL '+ChatColor.YELLOW+'Overworld Location - '+ChatColor.WHITE + 'X:' + Math.floor(Player.getX())*8 +' Y:' + Math.floor(Player.getY() - 2) +' Z:' + Math.floor(Player.getZ())*8)):(ModPE.showTipMessage(ChatColor.RED +'Not in Nether: '+ChatColor.YELLOW+'Overworld Coords: '+ChatColor.WHITE + 'X:' + Math.floor(Player.getX()) + ' Y:' + Math.floor(Player.getY() - 1) + ' Z:' + Math.floor(Player.getZ())));"}, {name:"Clear Weather",rp:"tick",type:"switch",state:false,call:"Level.setRainLevel(0);Level.setLightningLevel(0);"}, {name:"Always Day",rp:"tick",type:"switch",state:false,call:"Level.setTime(1200);"}, {name:"Always Night",rp:"tick",type:"switch",state:false,call:"Level.setTime(17000);"}, {name:"Rename Item",style:"white",type:"button",state:false,setting:"name: ;",call:"tempString='';openSetting(parseInt(7),survivalTab);"}], pvpTab = [ {name:"Aimbot",id:2,rp:"t10",type:"switch",state:false,keystate:false,view:"return pvpview",menu:false,setting:"range:17;",call:"aimEnt(getNearEnt(pvpTab[0].setting.split(';')[0].split(':')[1],true))"}, {name:"Hitbox",rp:"tick",type:"button",state:false,keystate:false,setting:"width:10;height:10;range:17;",call:"function resetBoxes(){var playerArrayName = []; for(var i = 0; i < Server.getAllPlayers().length; i++){ playerArrayName.push([Server.getAllPlayerNames()[i]]); }playerArrayName.forEach(function(entry, index){ Entity.setCollisionSize(Server.getAllPlayers()[playerArrayName.indexOf(entry)], 0.6, 1.8); });}pvpTab[1].state?(Entity.setCollisionSize(getNearEnt(pvpTab[1].setting.split(';')[2].split(':')[1],true), pvpTab[1].setting.split(';')[0].split(':')[1], pvpTab[1].setting.split(';')[1].split(':')[1])):(resetBoxes())"}, {name:"Auto Totem",rp:"t10",type:"switch",state:false,call:"Entity.setOffhandSlot(getPlayerEnt(), 450, 1, 0);"}, {name:"FOV",type:"button",setting:"fovSeek:130;",state:false,call:"pvpTab[3].state?ModPE.setFov(parseInt(pvpTab[3].setting.split(';')[0].split(':')[1])):ModPE.resetFov();"}, {name:"Name Stats",rp:"tick",type:"switch",state:false,call:"var players = Server.getAllPlayers(); players.forEach(function (entry){ if(Entity.getNameTag(entry)!==null){ if(Entity.getNameTag(entry).includes(',')){ if(Entity.getNameTag(entry).split(',')[0]==''&getTile(Entity.getX(entry), Entity.getY(entry) - 2, Entity.getZ(entry))!=0){ setTile(Entity.getX(entry),Entity.getY(entry)-2,Entity.getZ(entry),35,2); } var entityOriName = Entity.getNameTag(entry).split(',')[0]; Entity.setNameTag(entry, entityOriName+','+newLine()+Entity.getHealth(entry)+'/'+Entity.getMaxHealth(entry)+newLine()+Item.getName(Entity.getCarriedItem(entry), Entity.getCarriedItemData(entry), false)+':'+Entity.getCarriedItemData(entry)); }else{ Entity.setNameTag(entry, Entity.getNameTag(entry)+','+newLine()+Entity.getHealth(entry)+'/'+Entity.getMaxHealth(entry)+newLine()+Item.getName(Entity.getCarriedItem(entry), Entity.getCarriedItemData(entry), false)+':'+Entity.getCarriedItemData(entry)); }} })"}, {name:"ESP",type:"switch",setting:"red:255;green:0;blue:0;Enable Rainbow (true/false):true;",state:false,call:"ESP.Render.init();"}, {name:"Blast Aura",rp:"atthook",keystate:false,state:false,call:"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); "}, {name:"Crosshair",type:"button",setting:"size:25;",state:false,call:"function showCrosshair() { ctx.runOnUiThread(new Runnable({ run: function() { try { var layout = new LinearLayout(ctx); GUIcc = new PopupWindow(layout, dip2px(pvpTab[7].setting.split(';')[0].split(':')[1]), dip2px(pvpTab[7].setting.split(';')[0].split(':')[1])); GUIcc.setTouchable(false); GUIcc.setBackgroundDrawable(new android.graphics.drawable.BitmapDrawable(android.graphics.BitmapFactory.decodeByteArray(android.util.Base64.decode(crosshairicon, 0), 0, android.util.Base64.decode(crosshairicon, 0).length))); GUIcc.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.CENTER, 0, 0); GUIcc.setTouchable(false); } catch (e) { } } })); };if(pvpTab[7].state){showCrosshair()}else{GUIcc.dismiss()}"}, {name:"Hover Aura",rp:"t10",type:"switch",keystate:false,setting:"height:0.905;",state:false,call:"var ent = getNearEnt(4,true); if (ent != null && Player.getName(ent) != '' && Player.getName(ent) != ' ' && Player.getName(ent)) { Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY() + parseFloat(pvpTab[8].setting.split(';')[0].split(':')[1]), 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 (Entity.getVelY(getPlayerEnt()) < -0.5){ setVelY(Player.getEntity(), 0.00000); }} var ent = getNearEnt(6,true); if (ent != null) {aimEnt(ent)}; "}, {name:"Locator",type:"button",rp:"tick",state:false,call:"if(pvpTab[9].state){if(!dataWin){displayData()}}else if(!pvpTab[9].state&&!survivalTab[2].state){dataView.dismiss();dataWin=false;}var ent = getNearEnt(300), tempLocatetxt; if (Player.getName(ent) != 'Steve'&&Player.getName(ent) != 'Not a player'){ tempLocatetxt = 'Player Found: '+Player.getName(ent).substring(0, 30)+newLine()+' @ '+Math.floor(Entity.getX(ent))+', '+Math.floor(Entity.getY(ent))+', '+Math.floor(Entity.getZ(ent))+newLine()+' ['+Math.floor(getDist(ent))+' Blocks]'}else {tempLocatetxt = 'No Players Near'; } ctx.runOnUiThread( new java.lang.Runnable({ run: function() { try { locateView.setText(tempLocatetxt);if(!pvpTab[9].state&&dataWin){locateView.setText('');} } catch (err) {clientMessage(err);} } }));"}, {name:"Hit Aim",type:"switch",rp:"attusehook",keystate:false,state:false,call:"if(vic!=0){aimEnt(vic);}else{var ent = getNearEnt(10);if(ent!=null){aimEnt(ent);}}"}, {name:"Tracers",type:"switch",setting:"red:255;green:0;blue:0;Enable Rainbow (true/false):true;",state:false,call:"ESP.Render.init();"}, {name:"Behind",rp:"tick",type:"switch",setting:"range:10;gap:2;",keystate:false,state:false,call:"var target=getNearEnt(pvpTab[12].setting.split(';')[0].split(':')[1],true);var dirV = cueCoord(Entity.getYaw(target)+180, 0); if(Entity.getX(target)!=0&&Entity.getZ(target)!=0){ if (getPlayerX() + (dirV.x * 3) - Entity.getX(getPlayerEnt()) > 0.5 || getPlayerX() + (dirV.x * pvpTab[12].setting.split(';')[1].split(':')[1]) - Entity.getX(getPlayerEnt()) < -0.5 || getPlayerY() + (dirV.y * pvpTab[12].setting.split(';')[1].split(':')[1]) - Entity.getY(getPlayerEnt()) > 0.5 || getPlayerY() + (dirV.y * pvpTab[12].setting.split(';')[1].split(':')[1]) - Entity.getY(getPlayerEnt()) < -0.5 || getPlayerZ() + (dirV.z * pvpTab[12].setting.split(';')[1].split(':')[1]) - Entity.getZ(getPlayerEnt()) > 0.5 || getPlayerZ() + (dirV.z * pvpTab[12].setting.split(';')[1].split(':')[1]) - Entity.getZ(getPlayerEnt()) < -0.5) { Entity.setVelX(getPlayerEnt(), (Entity.getX(target) + (dirV.x * pvpTab[12].setting.split(';')[1].split(':')[1]) - Entity.getX(getPlayerEnt())) / 5); if(!movementTab[12].state){Entity.setVelY(getPlayerEnt(), (Entity.getY(target) + (dirV.y * pvpTab[12].setting.split(';')[1].split(':')[1]) - Entity.getY(getPlayerEnt())) / 5);} Entity.setVelZ(getPlayerEnt(), (Entity.getZ(target) + (dirV.z * pvpTab[12].setting.split(';')[1].split(':')[1]) - Entity.getZ(getPlayerEnt())) / 5); } else { Entity.setVelX(getPlayerEnt(), 0); Entity.setVelY(getPlayerEnt(), 0); Entity.setVelZ(getPlayerEnt(), 0);}}"}, {name:"No Knockback",rp:"tick",defHealth:20,tickDelay:20,type:"switch",state:false,call:" pvpTab[13].tickDelay--; if(pvpTab[13].tickDelay==0){ pvpTab[13].tickDelay=20; pvpTab[13].defHealth=Entity.getHealth(getPlayerEnt()); } if(pvpTab[13].defHealth>Entity.getHealth(getPlayerEnt())){ setVelY(Player.getEntity(), 0); setVelX(Player.getEntity(), 0); setVelZ(Player.getEntity(), 0); pvpTab[13].defHealth=Entity.getHealth(getPlayerEnt());}"} ], potionTab = [ {name:"Night Vision",id:3,effect:MobEffect.nightVision,type:"button",state:false,view:"return potionview",menu:false,setting:"amp:255;duration:999999;",call:"effect(0)"}, {name:"Haste",effect:MobEffect.digSpeed,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(1)"}, {name:"Mining Fatigue",effect:MobEffect.digSlowdown,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(2)"}, {name:"Levitation",effect:MobEffect.levitation,type:"button",state:false,setting:"amp:3;duration:999999;",call:"effect(3)"}, {name:"Jump Boost",effect:MobEffect.jump,type:"button",state:false,setting:"amp:4;duration:999999;",call:"effect(4)"}, {name:"Nausea",effect:MobEffect.confusion,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(5)"}, {name:"Blindness",effect:MobEffect.blindness,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(6)"}, {name:"Invisibility",effect:MobEffect.invisibility,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(7)"}, {name:"Absorption",effect:MobEffect.absorption,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(8)"}, {name:"Health Boost",effect:MobEffect.healthBoost,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(9)"}, {name:"Wither",effect:MobEffect.wither,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(10)"}, {name:"Poison",effect:MobEffect.poison,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(11)"}, {name:"Weakness",effect:MobEffect.weakness,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(12)"}, {name:"Hunger",effect:MobEffect.hunger,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(13)"}, {name:"Water Breathing",effect:MobEffect.waterBreathing,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(14)"}, {name:"Fire Resistance",effect:MobEffect.fireResistance,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(15)"}, {name:"Resistance",effect:MobEffect.damageResistance,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(16)"}, {name:"Strength",effect:MobEffect.damageBoost,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(17)"}, {name:"Slowness",effect:MobEffect.movementSlowdown,type:"button",state:false,setting:"amp:255;duration:999999;",call:"effect(18)"}, {name:"Swiftness",effect:MobEffect.movementSpeed,type:"button",state:false,setting:"amp:20;duration:999999;",call:"effect(19)"}, {name:"Heal",style:"white",effect:MobEffect.heal,type:"button",call:"Entity.addEffect(Player.getEntity(), MobEffect.heal, 999999, 2000, false, false);"}, {name:"Experience",style:"white",type:"button",call:"Player.addExp(100000000)"}, {name:"Remove All",style:"white",type:"button",call:"effect(19,true)"}], movementTab = [ {name:"Fly",id:4,type:"button",state:false,view:"return movementview",menu:false,call:"movementTab[0].state?Player.setCanFly(1):Player.setCanFly(0)"}, {name:"NoFallDamage",rp:"t10",type:"switch",state:false,keystate:false,setting:"sensitivity:-0.5;",call:"Entity.getVelY(getPlayerEnt())= 0||serverip=='offline'){if (Entity.getVelY(getPlayerEnt()) < -0.1 && !Player.isFlying()) { setVelY(Player.getEntity(), -1);} if (Entity.getVelY(getPlayerEnt()) < -0.1) { setVelY(Player.getEntity(), 0.0001); }}else{setPosition(getPlayerEnt(), getPlayerX(), getPlayerY() + 0.1899, getPlayerZ()); setVelY(getPlayerEnt(), -0.2); } "}, {name:"Magic Carpet",rp:"tick",type:"button",state:false,keystate:false,call:"if(movementTab[4].state){blocksToReplaceX = []; blocksToReplaceY = []; blocksToReplaceZ = []; playerX = getPlayerX(); playerY = getPlayerY(); playerZ = getPlayerZ(); for(x = -2;x<=2;x++){ for(z = -2;z<=2;z++){ if(!(Math.abs(x)==2&&Math.abs(z)==2)&&!(Math.abs(x)==2&&Math.abs(z)==2)&&!(Math.abs(x)==2&&Math.abs(z)==2)){ var tile = Level.getTile(Math.round(x+playerX),Math.round(playerY-3),Math.round(z+playerZ)); if((tile == 0||tile == 241)){ blocksToReplaceX.push(Math.round(x+playerX)); blocksToReplaceY.push(Math.round(playerY-3)); blocksToReplaceZ.push(Math.round(z+playerZ)); } } } } if(blocksReplacedX!=null){ blocksToSkip = []; for(m = 0;m < blocksReplacedX.length;m++){ for(j = 0;j < blocksToReplaceX.length;j++){ if(blocksReplacedX[m] == blocksToReplaceX[j] && blocksReplacedY[m] == blocksToReplaceY[j] && blocksReplacedZ[m] == blocksToReplaceZ[j]){ blocksToSkip.push(m); } } } var currentTile; for(m = 0;m < blocksReplacedX.length;m++){ if(blocksToSkip.indexOf(m)<0){ currentTile = getTile(blocksReplacedX[m],blocksReplacedY[m],blocksReplacedZ[m]); if(currentTile == 241){ if(Level.getData(blocksReplacedX[m],blocksReplacedY[m],blocksReplacedZ[m])==10){ setTile(blocksReplacedX[m],blocksReplacedY[m],blocksReplacedZ[m],0); }} } } } blocksReplacedX = []; blocksReplacedY = []; blocksReplacedZ = []; for(m = 0;m < blocksToReplaceX.length;m++){ setTile(blocksToReplaceX[m],blocksToReplaceY[m],blocksToReplaceZ[m],241,10); } for(m = 0;m < blocksToReplaceX.length;m++){ blocksReplacedX.push(blocksToReplaceX[m]); blocksReplacedY.push(blocksToReplaceY[m]); blocksReplacedZ.push(blocksToReplaceZ[m]); }}else{blocksToReplaceX = []; blocksToReplaceY = []; blocksToReplaceZ = []; playerX = getPlayerX(); playerY = getPlayerY(); playerZ = getPlayerZ(); for(x = -2;x<=2;x++){ for(z = -2;z<=2;z++){ if(!(Math.abs(x)==2&&Math.abs(z)==2)&&!(Math.abs(x)==2&&Math.abs(z)==2)&&!(Math.abs(x)==2&&Math.abs(z)==2)){ var tile = Level.getTile(Math.round(x+playerX),Math.round(playerY-3),Math.round(z+playerZ)); } } } if(blocksReplacedX!=null){ blocksToSkip = []; for(m = 0;m < blocksReplacedX.length;m++){ for(j = 0;j < blocksToReplaceX.length;j++){ if(blocksReplacedX[m] == blocksToReplaceX[j] && blocksReplacedY[m] == blocksToReplaceY[j] && blocksReplacedZ[m] == blocksToReplaceZ[j]){ blocksToSkip.push(m); } } } var currentTile; for(m = 0;m < blocksReplacedX.length;m++){ if(blocksToSkip.indexOf(m)<0){ currentTile = getTile(blocksReplacedX[m],blocksReplacedY[m],blocksReplacedZ[m]); if(currentTile == 241){ if(Level.getData(blocksReplacedX[m],blocksReplacedY[m],blocksReplacedZ[m])==10){ setTile(blocksReplacedX[m],blocksReplacedY[m],blocksReplacedZ[m],0); }} } } } blocksReplacedX = []; blocksReplacedY = []; blocksReplacedZ = []; for(m = 0;m < blocksToReplaceX.length;m++){ blocksReplacedX.push(blocksToReplaceX[m]); blocksReplacedY.push(blocksToReplaceY[m]); blocksReplacedZ.push(blocksToReplaceZ[m]); }}"}, {name:"No Void",rp:"tick",type:"switch",state:false,call:"if ((Math.floor(Player.getY() - 1))<3){ var serverip = Server.getAddress(); if(serverip==null){serverip='offline';} if(serverip.indexOf('amazo') >= 0||serverip=='offline'){ Entity.setPosition(Player.getEntity(), Player.getX()+1, 20, Player.getZ()); var px = Player.getX(); var pz = Player.getZ(); for(var i = 256.0;i>0.0;i--) { if(Level.getTile(px, i, pz) != 0) { Entity.setPosition(Player.getEntity(), px, i + 3, pz); break; } } }else{ setVelY(Player.getEntity(), 0.1); } }"}, {name:"Ice Speed",type:"button",state:false,call:"function speedBypass(){ for(var i = 0; i < 406; i++){ Block.setFriction(i, 0.3); } };function resetSpeed() { for(var i = 0; i < 406; i++){ Block.setFriction(i, 0.6000000238418579); } Block.setFriction(79, .4); Block.setFriction(174, .4); Block.setFriction(207, .4); Block.setFriction(266, .4); };movementTab[6].state?(speedBypass()):(resetSpeed())"}, {name:"Gamespeed",type:"button",setting:"gamespeed:50;",state:false,call:"movementTab[7].state?(ModPE.setGameSpeed(movementTab[7].setting.split(';')[0].split(':')[1])):(ModPE.setGameSpeed(20))"}, {name:"Teleport",type:"button",style:"white",setting:"x:0;y:60;z:10;",state:false,call:"function arr(){return movementTab};openSetting(8,arr(),'teleport')"}, {name:"Tap TP",rp:"usehook",keystate:false,type:"switch",state:false,call:"if(Player.getPointedBlockY()+3!=0)setPosition(getPlayerEnt(), Player.getPointedBlockX(), Player.getPointedBlockY() + 3.0, Player.getPointedBlockZ())"}, {name:"Jump",keystate:false,rp:"kb",type:"button",setting:"intensity:0.50;",call:"setVelY(getPlayerEnt(), movementTab[10].setting.split(';')[0].split(':')[1]);"}, {name:"Boost",keystate:false,rp:"kb",type:"button",setting:"intensity:12;",call:"toDirectionalVector(playerDir, (getYaw()+90) * Math['PI'] / 180, getPitch() * Math['PI'] / 180 * -1); setVelX(getPlayerEnt(), movementTab[11].setting.split(';')[0].split(':')[1] * playerDir[0]); setVelZ(getPlayerEnt(), movementTab[11].setting.split(';')[0].split(':')[1] * playerDir[2]); setVelY(getPlayerEnt(), 1 * playerDir[1]);"}, {name:"NoDownGlide",rp:"tick",keystate:false,type:"switch",state:false,call:"setVelY(getPlayerEnt(), 0);"}, {name:"Elevator",rp:"kb",style:"white",keystate:false,type:"button",call:"Entity.setPositionRelative(getPlayerEnt(), 0, +2, 0);setVelY(Player.getEntity(), 0);"}, {name:"Elevator Down",rp:"kb",display:"hidden",keystate:false,type:"button",call:"Entity.setPositionRelative(getPlayerEnt(), 0, -1, 0);setVelY(Player.getEntity(), 0);"}, {name:"Long Jump",rp:"tick",keystate:false,state:false,setting:"intensity:1.09;",type:"switch",call:"setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt()) * movementTab[15].setting.split(';')[0].split(':')[1]); setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt()) * movementTab[15].setting.split(';')[0].split(':')[1]);"} ], exploitTab = [ {name:"Dupe",id:5,style:"white",type:"button",view:"return exploitview",menu:false,call:"if(Server.getAddress()!=null){ if(Player.getItemCustomName(Player.getCarriedItem())==null){ Player.setItemCustomName(Player.getSelectedSlotId(),'.+Math.floor(Math.random() * 1000)+ '+Item.getName(Player.getCarriedItem(),Player.getCarriedItemData())); }else{ Player.setItemCustomName(Player.getSelectedSlotId(),'.+Math.floor(Math.random() * 1000)+ '+Item.getName(Player.getCarriedItem(),Player.getCarriedItemData())); } clientMessage('Move item to the inventory crafting section.'); }else{Player.addItemInventory(Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData());}"}, {name:"Foil",type:"button",state:false,call:"function enableFoil(){for(var i = 255; i < 406; i++){ if(i!=326&i!=327&i!=343&i!=382&i!=282){ Item.setProperties(i, { 'foil': true, 'hover_text_color': 'light_purple', }); }};}function disableFoil(){for(var i = 255; i < 406; i++){ if(i!=326&i!=327&i!=343&i!=382&i!=282){ Item.setProperties(i, { 'foil': false, 'hover_text_color': 'light_purple', }); }}}exploitTab[1].state?enableFoil():disableFoil()"}, {name:"Break Bedrock",type:"button",state:false,call:"exploitTab[2].state?(Block.setDestroyTime(7, 0.01), Block.setDestroyTime(137, 0.01), Block.setDestroyTime(188, 0.01), Block.setDestroyTime(189, 0.01), Block.setDestroyTime(209, 0.01), Block.setDestroyTime(90, 0.01), Block.setDestroyTime(119, 0.01),Block.setDestroyTime(120, 0.01), Block.setDestroyTime(-161, 0.01)):(Block.setDestroyTime(7, -10), Block.setDestroyTime(137, -10), Block.setDestroyTime(188, -10), Block.setDestroyTime(189, -10), Block.setDestroyTime(209, -10), Block.setDestroyTime(90, -10), Block.setDestroyTime(119, -10), Block.setDestroyTime(120, -10), Block.setDestroyTime(-161, -10))"}, {name:"Fast Eat",type:"button",state:false,call:"exploitTab[3].state?(Item.setProperties(260, { 'use_duration': 1, 'food': { 'nutrition': 4, 'saturation_modifier': 'low', 'is_meat': false } }),Item.setProperties(322, { 'stack_by_data': true, 'use_duration': 1, 'foil': false, '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(260, { 'use_duration': 1, 'max_stack_size': 1, 'food': { 'nutrition': 6, 'saturation_modifier': 'normal', 'is_meat': false, 'using_converts_to': 'bowl' } }),Item.setProperties(297, { 'use_duration': 1, 'food': { 'nutrition': 5, 'saturation_modifier': 'normal', 'is_meat': false } }),Item.setProperties(319, { 'use_duration': 1, 'food': { 'nutrition': 3, 'saturation_modifier': 'low', 'is_meat': true } }),Item.setProperties(320, { 'use_duration': 1, 'food': { 'nutrition': 8, 'saturation_modifier': 'good', 'is_meat': true } }),Item.setProperties(349, { 'use_duration': 1, 'max_damage': 0, 'stacked_by_data': true, 'food': { 'nutrition': 2, 'saturation_modifier': 'poor', 'is_meat': true } }),Item.setProperties(460, { 'use_duration': 1, 'max_damage': 0, 'stacked_by_data': true, 'food': { 'nutrition': 2, 'saturation_modifier': 'poor', 'is_meat': true } }),Item.setProperties(461, { 'use_duration': 1, 'max_damage': 0, 'stacked_by_data': true, 'food': { 'nutrition': 1, 'saturation_modifier': 'poor', 'is_meat': true } }),Item.setProperties(462, { 'use_duration': 1, '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(350, { 'use_duration': 1, 'max_damage': 0, 'stacked_by_data': true, 'food': { 'nutrition': 5, 'saturation_modifier': 'normal', 'eat_sound': 'random.burp', 'is_meat': true } }),Item.setProperties(463, { 'use_duration': 1, 'max_damage': 0, 'stacked_by_data': true, 'food': { 'nutrition': 6, 'saturation_modifier': 'good', 'is_meat': true } }),Item.setProperties(360, { 'use_duration': 1, 'food': { 'nutrition': 2, 'saturation_modifier': 'poor', 'is_meat': false } }),Item.setProperties(357, { 'use_duration': 1, 'food': { 'nutrition': 2, 'saturation_modifier': 'low', 'is_meat': false } }),Item.setProperties(363, { 'use_duration': 1, 'food': { 'nutrition': 3, 'saturation_modifier': 'low', 'is_meat': true } }),Item.setProperties(364, { 'use_duration': 1, 'food': { 'nutrition': 8, 'saturation_modifier': 'good', 'is_meat': true } }),Item.setProperties(365, { 'use_duration': 1, 'food': { 'nutrition': 2, 'saturation_modifier': 'low', 'is_meat': true, 'effects': [{ 'name': 'hunger', 'chance': 0.3, 'duration': 30, 'amplifier': 0 }] } }),Item.setProperties(366, { 'use_duration': 1, 'food': { 'nutrition': 6, 'saturation_modifier': 'normal', 'is_meat': true } }),Item.setProperties(423, { 'use_duration': 1, 'food': { 'nutrition': 2, 'saturation_modifier': 'low', 'is_meat': true } }),Item.setProperties(424, { 'use_duration': 1, 'food': { 'nutrition': 6, 'saturation_modifier': 'good', 'is_meat': true } }),Item.setProperties(367, { 'use_duration': 1, 'food': { 'nutrition': 4, 'saturation_modifier': 'poor', 'is_meat': true, 'effects': [{ 'name': 'hunger', 'chance': 0.8, 'duration': 30, 'amplifier': 0 }] } }),Item.setProperties(375, { 'use_duration': 1, 'food': { 'nutrition': 2, 'saturation_modifier': 'good', 'is_meat': false, 'effects': [{ 'name': 'poison', 'chance': 1.0, 'duration': 5, 'amplifier': 0 }] } }),Item.setProperties(391, { 'use_duration': 1, 'food': { 'nutrition': 3, 'saturation_modifier': 'normal', 'is_meat': false }, 'seed': { 'crop_result': 'carrots', 'plant_at': 'farmland' } }),Item.setProperties(392, { 'use_duration': 1, 'food': { 'nutrition': 1, 'saturation_modifier': 'low', 'is_meat': false }, 'seed': { 'crop_result': 'potatoes', 'plant_at': 'farmland' } }),Item.setProperties(393, { 'use_duration': 1, 'food': { 'nutrition': 5, 'saturation_modifier': 'normal', 'is_meat': false } }),Item.setProperties(394, { 'use_duration': 1, 'food': { 'nutrition': 2, 'saturation_modifier': 'low', 'is_meat': false, 'effects': [{ 'name': 'poison', 'chance': 0.6, 'duration': 5, 'amplifier': 0 }] } }),Item.setProperties(396, { 'use_duration': 1, 'food': { 'nutrition': 6, 'saturation_modifier': 'supernatural', 'is_meat': false } }),Item.setProperties(400, { 'use_duration': 1, 'food': { 'nutrition': 8, 'saturation_modifier': 'low', 'is_meat': false } }),Item.setProperties(411, { 'use_duration': 1, 'food': { 'nutrition': 3, 'saturation_modifier': 'low', 'is_meat': true } }),Item.setProperties(412, { 'use_duration': 1, 'food': { 'nutrition': 5, 'saturation_modifier': 'normal', 'is_meat': true } }),Item.setProperties(413, { 'use_duration': 1, 'max_stack_size': 1, 'food': { 'nutrition': 10, 'saturation_modifier': 'normal', 'using_converts_to': 'bowl', 'is_meat': true } }),Item.setProperties(459, { 'use_duration': 1, 'food': { 'nutrition': 1, 'saturation_modifier': 'normal', 'is_meat': false } }),Item.setProperties(457, { 'use_duration': 1, 'food': { 'nutrition': 1, 'saturation_modifier': 'normal', 'is_meat': false } })):(Item.setProperties(260, { 'use_duration': 32, 'food': { 'nutrition': 4, 'saturation_modifier': 'low', 'is_meat': false } }),Item.setProperties(260, { 'use_duration': 32, 'max_stack_size': 1, 'food': { 'nutrition': 6, 'saturation_modifier': 'normal', 'is_meat': false, 'using_converts_to': 'bowl' } }),Item.setProperties(297, { 'use_duration': 32, 'food': { 'nutrition': 5, 'saturation_modifier': 'normal', 'is_meat': false } }),Item.setProperties(319, { 'use_duration': 32, 'food': { 'nutrition': 3, 'saturation_modifier': 'low', 'is_meat': true } }),Item.setProperties(320, { 'use_duration': 32, 'food': { 'nutrition': 8, 'saturation_modifier': 'good', 'is_meat': true } }),Item.setProperties(349, { 'use_duration': 32, 'max_damage': 0, 'stacked_by_data': true, 'food': { 'nutrition': 2, 'saturation_modifier': 'poor', 'is_meat': true } }),Item.setProperties(460, { 'use_duration': 32, 'max_damage': 0, 'stacked_by_data': true, 'food': { 'nutrition': 2, 'saturation_modifier': 'poor', 'is_meat': true } }),Item.setProperties(461, { 'use_duration': 32, 'max_damage': 0, 'stacked_by_data': true, 'food': { 'nutrition': 1, 'saturation_modifier': 'poor', 'is_meat': true } }),Item.setProperties(462, { '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(350, { '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(463, { 'use_duration': 32, 'max_damage': 0, 'stacked_by_data': true, 'food': { 'nutrition': 6, 'saturation_modifier': 'good', 'is_meat': true } }),Item.setProperties(360, { 'use_duration': 32, 'food': { 'nutrition': 2, 'saturation_modifier': 'poor', 'is_meat': false } }),Item.setProperties(357, { 'use_duration': 32, 'food': { 'nutrition': 2, 'saturation_modifier': 'low', 'is_meat': false } }),Item.setProperties(363, { 'use_duration': 32, 'food': { 'nutrition': 3, 'saturation_modifier': 'low', 'is_meat': true } }),Item.setProperties(364, { 'use_duration': 32, 'food': { 'nutrition': 8, 'saturation_modifier': 'good', 'is_meat': true } }),Item.setProperties(365, { 'use_duration': 32, 'food': { 'nutrition': 2, 'saturation_modifier': 'low', 'is_meat': true, 'effects': [{ 'name': 'hunger', 'chance': 0.3, 'duration': 30, 'amplifier': 0 }] } }),Item.setProperties(366, { 'use_duration': 32, 'food': { 'nutrition': 6, 'saturation_modifier': 'normal', 'is_meat': true } }),Item.setProperties(423, { 'use_duration': 32, 'food': { 'nutrition': 2, 'saturation_modifier': 'low', 'is_meat': true } }),Item.setProperties(424, { 'use_duration': 32, 'food': { 'nutrition': 6, 'saturation_modifier': 'good', 'is_meat': true } }),Item.setProperties(367, { 'use_duration': 32, 'food': { 'nutrition': 4, 'saturation_modifier': 'poor', 'is_meat': true, 'effects': [{ 'name': 'hunger', 'chance': 0.8, 'duration': 30, 'amplifier': 0 }] } }),Item.setProperties(375, { 'use_duration': 32, 'food': { 'nutrition': 2, 'saturation_modifier': 'good', 'is_meat': false, 'effects': [{ 'name': 'poison', 'chance': 1.0, 'duration': 5, 'amplifier': 0 }] } }),Item.setProperties(391, { 'use_duration': 32, 'food': { 'nutrition': 3, 'saturation_modifier': 'normal', 'is_meat': false }, 'seed': { 'crop_result': 'carrots', 'plant_at': 'farmland' } }),Item.setProperties(392, { 'use_duration': 32, 'food': { 'nutrition': 1, 'saturation_modifier': 'low', 'is_meat': false }, 'seed': { 'crop_result': 'potatoes', 'plant_at': 'farmland' } }),Item.setProperties(393, { 'use_duration': 32, 'food': { 'nutrition': 5, 'saturation_modifier': 'normal', 'is_meat': false } }),Item.setProperties(394, { 'use_duration': 32, 'food': { 'nutrition': 2, 'saturation_modifier': 'low', 'is_meat': false, 'effects': [{ 'name': 'poison', 'chance': 0.6, 'duration': 5, 'amplifier': 0 }] } }),Item.setProperties(396, { 'use_duration': 32, 'food': { 'nutrition': 6, 'saturation_modifier': 'supernatural', 'is_meat': false } }),Item.setProperties(400, { 'use_duration': 32, 'food': { 'nutrition': 8, 'saturation_modifier': 'low', 'is_meat': false } }),Item.setProperties(411, { 'use_duration': 32, 'food': { 'nutrition': 3, 'saturation_modifier': 'low', 'is_meat': true } }),Item.setProperties(457, { 'use_duration': 32, 'food': { 'nutrition': 1, 'saturation_modifier': 'normal', 'is_meat': true } }),Item.setProperties(412, { 'use_duration': 32, 'food': { 'nutrition': 5, 'saturation_modifier': 'normal', 'is_meat': true } }),Item.setProperties(413, { 'use_duration': 32, 'max_stack_size': 1, 'food': { 'nutrition': 10, 'saturation_modifier': 'normal', 'using_converts_to': 'bowl', 'is_meat': true } }),Item.setProperties(459, { 'use_duration': 32, 'food': { 'nutrition': 1, 'saturation_modifier': 'normal', 'is_meat': false } }))"}, {name:"Set Offhand",style:"white",type:"button",setting:"id:3;meta:0;amount:64;",call:"function arr(){return exploitTab};openSetting(4,arr(),'offhand')"}, {name:"Repeat Last Offhand",rp:"tick",type:"switch",sparetick:20,state:false,call:" if (exploitTab[5].sparetick > 0) { exploitTab[5].sparetick--; } if (exploitTab[5].sparetick < 1) { var id = exploitTab[4].setting.split(';')[0].split(':')[1], meta = exploitTab[4].setting.split(';')[1].split(':')[1], amount = exploitTab[4].setting.split(';')[2].split(':')[1]; Entity.setOffhandSlot(getPlayerEnt(), parseInt(id), parseInt(amount), parseInt(meta)); exploitTab[5].sparetick = 20; } "}, {name:"Offhand Keybind",keystate:false,rp:"kb",type:"button",call:"var id = exploitTab[4].setting.split(';')[0].split(':')[1], meta = exploitTab[4].setting.split(';')[1].split(':')[1], amount = exploitTab[4].setting.split(';')[2].split(':')[1];Entity.setOffhandSlot(getPlayerEnt(), parseInt(id), parseInt(amount), parseInt(meta));"}, {name:"Elytra",rp:"tick",type:"switch",state:false,call:"Player.setArmorSlot(1, 444, 0);"}, {name:"AFK",rp:"tick",type:"switch",state:false,tick:"10",call:"setVelX(Player.getEntity(), 0); exploitTab[8].tick--; if(exploitTab[8].tick<0){ exploitTab[8].tick=10; } if(exploitTab[8].tick==6){ setVelX(Player.getEntity(), -0.3); }if(exploitTab[8].tick==4){ setVelX(Player.getEntity(), 0); }if(exploitTab[8].tick==2){ setVelX(Player.getEntity(), 0.3); }if(exploitTab[8].tick==0){ setVelX(Player.getEntity(), 0); }"}, {name:"Undead",rp:"tick",type:"switch",state:false,call:"Player.setHealth(20)"}, {name:"Stack Items",style:"white",type:"switch",state:false,call:"print('Unstackable items can now be stacked, such as armor and swords, even totems');for(var i = 255; i < 406; i++){ if(i!=210&i!=211&i!=212&i!=217&i!=230&i!=241&i!=242&i!=248&i!=249&i!=250&i!=326&i!=327&i!=343){ Item.setProperties(i, { 'stack_by_data': true, }); Item.setAllowOffhand(i, true); Item.setHandEquipped(i, true); } } Item.setProperties(444, {'stack_by_data': true,}); Item.setAllowOffhand(444, true); Item.setHandEquipped(444, true); Item.setProperties(450, {'stack_by_data': true,}); Item.setAllowOffhand(450, true); Item.setHandEquipped(450, true); Item.setProperties(441, {'stack_by_data': true,}); Item.setAllowOffhand(441, true); Item.setHandEquipped(441, true); Item.setProperties(438, {'stack_by_data': true,}); Item.setAllowOffhand(438, true); Item.setHandEquipped(438, true);"}, {name:"Spam",rp:"t10",setting:"message:instinctmods.com;speed:20;",type:"switch",state:false,call:"if(reservedSpam!==0){reservedSpam--}if(reservedSpam==0){Server.sendChat('['+Math.floor(Math.random() * 1000)+'] '+exploitTab[11].setting.split(';')[0].split(':')[1]);reservedSpam=parseInt(exploitTab[11].setting.split(';')[1].split(':')[1])}"}, {name:"rgb",rp:"t10",rgbtick:"1",rgbspeed:"12",state:true,display:"hidden",type:"switch",call:"if(exploitTab[12].rgbtick==0){if(r > 0 && b == 0){ r=r-5; g=g+5; menuRed=r; menuGreen=g; menuBlue=b; } if(g > 0 && r == 0){ g=g-5; b=b+5; menuRed=r; menuGreen=g; menuBlue=b; } if(b > 0 && g == 0){ r=r+5; b=b-5; menuRed=r; menuGreen=g; menuBlue=b; }exploitTab[12].rgbtick=exploitTab[12].rgbspeed;try{ for(var i=0;i")){ str = str.replace(">",""); str = str.slice(1); str = str.slice(1); } if(boo){ var statuss="-"; }else{ var statuss=">"; } var htmld = Html.fromHtml("​ ​"+str+" "+statuss) return htmld } function createItem(i,arr,hide,favSel) { if(arr!=favoriteTab&&!favSel){ for (var e = 1; e < favoriteTab.length; e++) { if (arr[i].name == favoriteTab[e].name) { hide=true; } } } var backgroundstyle = new android.graphics.drawable.GradientDrawable(); backgroundstyle.setColor(android.graphics.Color.BLACK); backgroundstyle.setStroke(0, Color.parseColor("#ffffff")); backgroundstyle.setAlpha(90); if(favSel){var isOn=favSel;} function changeColor(){ arr[i].state ? (sub1.setTextColor(active),s2.setBackground(enabledBox)): (sub1.setTextColor(inactive),s2.setBackground(disabledBox)); arr[i].style=="white"?(sub1.setTextColor(intoggle),s2.setBackground(buttonBox)):''; } var layout = new LinearLayout(ctx); layout.setOrientation(0); var sub1 = new TextView(ctx); if(arr[i].display=="hidden"){sub1.setLayoutParams(new LinearLayout.LayoutParams(dip2px(0), dip2px(0)));} sub1.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize); var s2 = new TextView(ctx); s2.setBackground(disabledBox); s2.setLayoutParams(new LinearLayout.LayoutParams(dip2px(2), dip2px(30))); if(arr[i].display=="hidden"||hide){s2.setLayoutParams(new LinearLayout.LayoutParams(dip2px(0), dip2px(0)));} s2.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize); s2.setText(""); changeColor(); sub1.setText(" "+arr[i].name+" "); sub1.setSingleLine(); function clicked(){ if(favSel==undefined){ if(arr==waypointTab&&waypointTab.length>1&&i>0){ Entity.setPosition(getPlayerEnt(), arr[i].X, arr[i].Y + 2, arr[i].Z); } if(arr==friendTab&&friendTab.length>2&&i>1){ friendTab.splice(i,1); ctx.runOnUiThread(new Runnable({ run: function() { try{ friendview.removeAllViews(); for(var i=0;i1&&i>0){ arr[0].setting="name:"+arr[i].name+";X:"+arr[i].X+";Y:"+arr[i].Y+";Z:"+arr[i].Z+";"; openSetting(0,arr,"add waypoint",i); return true; } if(arr[i].setting){openSetting(i,arr);}else{print(arr[i].name+" has no settings")} return true; }})); sub1.setOnClickListener(new View.OnClickListener({onClick: function(viewarg) { clicked(); }})); sub1.setOnLongClickListener(new android.view.View.OnLongClickListener({ onLongClick: function() { if(arr==waypointTab&&waypointTab.length>1&&i>0){ arr[0].setting="name:"+arr[i].name+";X:"+arr[i].X+";Y:"+arr[i].Y+";Z:"+arr[i].Z+";"; openSetting(0,arr,"add waypoint",i); return true; } if(arr[i].setting){openSetting(i,arr);}else{print(arr[i].name+" has no settings")} return true; }})); sub1.setGravity(Gravity.CENTER_VERTICAL); sub1.setEllipsize(android.text.TextUtils.TruncateAt.MARQUEE); sub1.setMarqueeRepeatLimit(-1); sub1.setHorizontallyScrolling(true); sub1.setSelected(true); if(isOn=='on'){sub1.setTextColor(Color.parseColor("#00ffd8"));s2.setBackground(favSelOn);} if(isOn=='off'){sub1.setTextColor(Color.parseColor("#0f6bff"));s2.setBackground(favSelOff);} s2.setGravity(Gravity.CENTER_VERTICAL); if(s2.getParent()!=null){s2.getParent().removeView(s2);} layout.addView(s2); if(sub1.getParent()!=null){sub1.getParent().removeView(sub1);} layout.addView(sub1); layout.setLayoutParams(new LinearLayout.LayoutParams(dip2px(100), dip2px(30))); layout.setBackground(backgroundstyle); if(arr[i].display=="hidden"||hide){layout.setLayoutParams(new LinearLayout.LayoutParams(dip2px(0), dip2px(0)));} !hide?layout.getLayoutParams().setMargins(0,dip2px(2),0,0):''; return layout; } function closeMenu(){ potionTab[0].menu=false; survivalTab[0].menu=false; movementTab[0].menu=false; pvpTab[0].menu=false; exploitTab[0].menu=false; friendTab[0].menu=false; waypointTab[0].menu=false; favoriteTab[0].menu=false; geninFav=false; LIST.dismiss(); openMenu.setLayoutParams(new LinearLayout.LayoutParams(dip2px(40),dip2px(40))); openMenu.getLayoutParams().setMargins(dip2px(5),dip2px(5),dip2px(5),dip2px(5)); menuOpen=false; } function seeList() { ctx.runOnUiThread(new Runnable({ run: function() { try { try{for(var i=0;i e.name == arr[i].name )!==undefined) { view.addView(createItem(i,arr,false,'on')); }else{ view.addView(createItem(i,arr,false,'off')); } } } var scrollText = new android.widget.TextView(ctx); scrollText.setText("Jelly by Shark. Long Press mods for settings. Long Press waypoints to edit/delete"); scrollText.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize); scrollText.setTextColor(android.graphics.Color.WHITE); scrollText.setEllipsize(android.text.TextUtils.TruncateAt.MARQUEE); scrollText.setMarqueeRepeatLimit(-1); scrollText.setBackgroundDrawable(closestyle); scrollText.setSingleLine(); scrollText.setHorizontallyScrolling(true); scrollText.setSelected(true); hosthostlay.addView(scrollText); horizontalmainlist = new LinearLayout(ctx); horizontalmainlist.setOrientation(0); var hostscroll = new android.widget.ScrollView(ctx); hostlayoutlist = new LinearLayout(ctx); searchscrolllay = new LinearLayout(ctx); var searchscroll = new android.widget.ScrollView(ctx); searchscrolllay.setOrientation(1); searchhost = new LinearLayout(ctx); hosthostlay.addView(searchhost); hostlayoutlist.setOrientation(1); hostscroll.addView(hostlayoutlist); searchhost.addView(searchscroll); searchscroll.addView(searchscrolllay); hosthostlay.addView(hostscroll); horizontalmainlist.addView(hosthostlay); survivalhost = new LinearLayout(ctx); survivalhost.setOrientation(1); survivalview = new LinearLayout(ctx); survivalview.setOrientation(1); var survivalscroll = new android.widget.ScrollView(ctx); survivalscroll.addView(survivalview); pvphost = new LinearLayout(ctx); pvphost.setOrientation(1); pvpview = new LinearLayout(ctx); pvpview.setOrientation(1); var pvpscroll = new android.widget.ScrollView(ctx); pvpscroll.addView(pvpview); potionhost = new LinearLayout(ctx); potionhost.setOrientation(1); potionview = new LinearLayout(ctx); potionview.setOrientation(1); var potionscroll = new android.widget.ScrollView(ctx); potionscroll.addView(potionview); movementhost = new LinearLayout(ctx); movementhost.setOrientation(1); movementview = new LinearLayout(ctx); movementview.setOrientation(1); var movementscroll = new android.widget.ScrollView(ctx); movementscroll.addView(movementview); exploithost = new LinearLayout(ctx); exploithost.setOrientation(1); exploitview = new LinearLayout(ctx); exploitview.setOrientation(1); var exploitscroll = new android.widget.ScrollView(ctx); exploitscroll.addView(exploitview); friendhost = new LinearLayout(ctx); friendhost.setOrientation(1); friendview = new LinearLayout(ctx); friendview.setOrientation(1); var friendscroll = new android.widget.ScrollView(ctx); friendscroll.addView(friendview); waypointhost = new LinearLayout(ctx); waypointhost.setOrientation(1); waypointview = new LinearLayout(ctx); waypointview.setOrientation(1); var waypointscroll = new android.widget.ScrollView(ctx); waypointscroll.addView(waypointview); favoritehost = new LinearLayout(ctx); favoritehost.setOrientation(1); favoriteview = new LinearLayout(ctx); favoriteview.setOrientation(1); var favoritescroll = new android.widget.ScrollView(ctx); favoritescroll.addView(favoriteview); openSurvival = new TextView(ctx); openSurvival.setTextColor(Color.parseColor("#000000")); openSurvival.setBackground(backgroundstyle2); openSurvival.setText(tohtml("Survival ("+survivalTab.length+")",false)); openSurvival.setLayoutParams(new LinearLayout.LayoutParams(dip2px(100), dip2px(30))); openSurvival.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize); openSurvival.setGravity(Gravity.CENTER_VERTICAL); openSurvival.setOnClickListener(new View.OnClickListener({onClick: function(viewarg) { survivalTab[0].menu = !survivalTab[0].menu; survivalTab[0].menu ? openSurvival.setText(tohtml("Survival ("+survivalTab.length+")",true)) : openSurvival.setText(tohtml("Survival ("+survivalTab.length+")",false)); if(survivalTab[0].menu){ horizontalmainlist.addView(survivalhost); if(geninFav){generateFav(survivalTab);}else{ for(var i=0;i"); openMenu.getPaint().setShader(new LinearGradient(0,0,0,openMenu.getLineHeight(), Color.parseColor("#ffffff"), Color.parseColor("#41caf4"), android.graphics.Shader.TileMode.REPEAT)); openMenu.setOnClickListener(new View.OnClickListener({onClick: function(viewarg) { if(!menuOpen){ seeList(); menuOpen=true; openMenu.setLayoutParams(new LinearLayout.LayoutParams(0,dip2px(40))); } }})); openMenu.setOnLongClickListener(new android.view.View.OnLongClickListener({ onLongClick: function() { moving = true; return true; } })); openMenu.setOnTouchListener(new android.view.View.OnTouchListener({ onTouch: function(a, b) { try { if (!moving) return false; switch (b.getAction()) { case android.view.MotionEvent.ACTION_DOWN: dx = mPosX - b.getRawX(); dy = mPosY - b.getRawY(); break; case android.view.MotionEvent.ACTION_MOVE: mPosX = b.getRawX() + dx; mPosY = b.getRawY() + dy; openGui.update(mPosX-(openMenu.getWidth()/2), mPosY, -1, -1); break; case android.view.MotionEvent.ACTION_UP: case android.view.MotionEvent.ACTION_CANCEL: moving = false; } } catch (c) {} return true; } })); hostlayout.addView(openMenu); openGui = new PopupWindow(hostlayout, RelativeLayout.LayoutParams.WRAP_CONTENT,RelativeLayout.LayoutParams.WRAP_CONTENT); openGui.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); openGui.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.TOP, screenWidth/4,0); } catch (e) { print(e); } } })); }; function print(input,bool,prefix) { try {ctx.runOnUiThread(new java.lang.Runnable({run: function() { var toast = android.widget.Toast.makeText(ctx,input,android.widget.Toast.LENGTH_LONG); var txtv = new android.widget.TextView(ctx); prefix?txtv.setText(' '+prefix+': '+input+' '):txtv.setText(' '+input+' '); txtv.setGravity(android.view.Gravity.CENTER); txtv.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize); txtv.setTextColor(android.graphics.Color.WHITE); txtv.setBackground(toaststyle); txtv.getBackground().setAlpha(140); bool?txtv.getBackground().setStroke(2, active):txtv.getBackground().setStroke(2, inactive); toast.setView(txtv); toast.show(); }}))} catch (e) {}}; function modTick() { if(!hasloaded&¤tScreen.includes("hud_screen")){ hasloaded=true; clientMessage("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n§l§eWelcome to §n§bJelly\n§eby §d§oShark\n§eInstalled Version: §b"+installed+""+updateText+"\n§e·Long Press Mods for Settings\n§e·Long Press Keybinds for Options\n\n\n "); showSite(); return; } checkTick(survivalTab,"tick"); checkTick(pvpTab,"tick"); checkTick(exploitTab,"tick"); checkTick(movementTab,"tick"); } function t10() { ctx.runOnUiThread(new java.lang.Runnable({run: function() {new android.os.Handler().postDelayed(new java.lang.Runnable({run: function() {try{ checkTick(survivalTab,"t10"); checkTick(pvpTab,"t10"); checkTick(exploitTab,"t10"); checkTick(movementTab,"t10"); eval(t10());}catch(e){print(e)}}}),10)}}))};t10(); function cueCoord(yaw, pitch) { var prepVec = new vecCoord(0, 0, 0); prepVec.y = -Math.sin(java.lang.Math.toRadians(pitch)); prepVec.x = -Math.sin(java.lang.Math.toRadians(yaw)) * Math.cos(java.lang.Math.toRadians(pitch)); prepVec.z = Math.cos(java.lang.Math.toRadians(yaw)) * Math.cos(java.lang.Math.toRadians(pitch)); return prepVec; } function vecCoord(x, y, z) { this.x = x; this.y = y; this.z = z; } function effect(i,clear) { var amp = parseInt(potionTab[i].setting.split(";")[0].split(":")[1]), dur = parseInt(potionTab[i].setting.split(";")[1].split(":")[1]); if(clear){ Entity.removeAllEffects(getPlayerEnt()); for(var i=0;i1&&overwrite>0){ waypointTab.splice(overwrite,1); ctx.runOnUiThread(new Runnable({ run: function() { try{ waypointview.removeAllViews(); for(var i=0;i 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.1 && Entity.getHealth(players[i]) >= 1) { small = dist; ent = players[i]; } } if(name!==Player.getName(ent)&&Player.getName(ent)!==''){ if(friendSensitive&&friendTab.length!==2){ var found = false; if (friendTab.find( e => e.name == Player.getName(ent) )!==undefined) { found = true; } if(found){return null}else{return ent}; }else{return ent;} }else{return null} }catch(e){return null;print(e);} }; function aimEnt(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-2); }}}; function addFavorite(arr,i,remove){ if(remove){ for (var e = 1; e < favoriteTab.length; e++) { if (arr[i].name == favoriteTab[e].name) { favoriteTab.splice(e,1); } } clientMessage("§c"+arr[i].name+" §fremoved from §bfavorites") }else{ var temp; if(arr==survivalTab)temp="survivalTab"; if(arr==pvpTab)temp="pvpTab"; if(arr==potionTab)temp="potionTab"; if(arr==movementTab)temp="movementTab"; if(arr==exploitTab)temp="exploitTab"; favoriteTab[objectLength(favoriteTab)]=arr[i]; favoriteTab[objectLength(favoriteTab)-1].section=temp; favoriteTab[objectLength(favoriteTab)-1].sectionpos=i; clientMessage("§e"+arr[i].name+" §fadded to §bfavorites"); } if(geninFav){ favoriteview.removeAllViews(); for(var i=0;i