Created
January 20, 2016 22:07
-
-
Save nasapierce/13efd9d9f435d50820aa to your computer and use it in GitHub Desktop.
This puts a file named 'const' in your world file, it has all the constants values and array definition for AIDE Web
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This file is made by Me, Manasseh Pierce | |
//Twitter: @pierce_manasseh | |
//Use this in AIDE Web in a JavaScript project for auto complete features | |
var addItemInventory = function(par1int, par2int, par3int){return;}; | |
var bl_setMobSkin = function(par1Object, par2String){return;}; | |
var bl_spawnMob = function(par1double, par2double, par3double, par4int, par5String){return;}; | |
var clientMessage = function(par1String){return;}; | |
var explode = function(par1double, par2double, par3double, par4double, par5boolean){return;}; | |
var getCarriedItem = function() {return;}; | |
var getLevel = function() {return;}; | |
var getPitch = function(par1Object){return;}; | |
var getPlayerEnt = function() {return;}; | |
var getPlayerX = function() {return;}; | |
var getPlayerY = function() {return;}; | |
var getPlayerZ = function() {return;}; | |
var getTile = function(par1int, par2int, par3int){return;}; | |
var getYaw = function(par1Object){return;}; | |
var preventDefault = function() {return;}; | |
var print = function(par1String){return;}; | |
var rideAnimal = function(par1Object, par2Object){return;}; | |
var setNightMode = function(par1boolean){return;}; | |
var setPosition = function(par1Object, par2double, par3double, par4double){return;}; | |
var setPositionRelative = function(par1Object, par2double, par3double, par4double){return;}; | |
var setRot = function(par1Object, par2double, par3double){return;}; | |
var setTile = function(par1int, par2int, par3int, par4int, par5int){return;}; | |
var setVelX = function(par1Object, par2double){return;}; | |
var setVelY = function(par1Object, par2double){return;}; | |
var setVelZ = function(par1Object, par2double){return;}; | |
var spawnChicken = function(par1double, par2double, par3double, par4String){return;}; | |
var spawnCow = function(par1double, par2double, par3double, par4String){return;}; | |
var spawnPigZombie = function(par1double, par2double, par3double, par4int, par5String){return;}; | |
var ModPE = {}; | |
ModPE.dumpVtable = function(par1String, par2int){return;}; | |
ModPE.getBytesFromTexturePack = function(par1String){return;}; | |
ModPE.getI18n = function(par1String){return;}; | |
ModPE.getLanguage = function() {return;}; | |
ModPE.getMinecraftVersion = function() {return;}; | |
ModPE.langEdit = function(par1String, par2String){return;}; | |
ModPE.leaveGame = function() {return;}; | |
ModPE.log = function(par1String){return;}; | |
ModPE.openInputStreamFromTexturePack = function(par1String){return;}; | |
ModPE.overrideTexture = function(par1String, par2String){return;}; | |
ModPE.readData = function(par1String){return;}; | |
ModPE.removeData = function(par1String){return;}; | |
ModPE.resetFov = function() {return;}; | |
ModPE.resetImages = function() {return;}; | |
ModPE.saveData = function(par1String, par2String){return;}; | |
ModPE.selectLevel = function(par1String){return;}; | |
ModPE.setCamera = function(par1Object){return;}; | |
ModPE.setFoodItem = function(par1int, par2String, par3int, par4int, par5String, par6int){return;}; | |
ModPE.setFov = function(par1double){return;}; | |
ModPE.setGameSpeed = function(par1double){return;}; | |
ModPE.setGuiBlocks = function(par1String){return;}; | |
ModPE.setItem = function(par1int, par2String, par3int, par4String, par5int){return;}; | |
ModPE.setItems = function(par1String){return;}; | |
ModPE.setTerrain = function(par1String){return;}; | |
ModPE.showTipMessage = function(par1String){return;}; | |
ModPE.takeScreenshot = function(par1String){return;}; | |
var Level = {}; | |
Level.addParticle = function(par1int, par2double, par3double, par4double, par5double, par6double, par7double, par8int){return;}; | |
Level.biomeIdToName = function(par1int){return;}; | |
Level.canSeeSky = function(par1int, par2int, par3int){return;}; | |
Level.destroyBlock = function(par1int, par2int, par3int, par4boolean){return;}; | |
Level.dropItem = function(par1double, par2double, par3double, par4double, par5int, par6int, par7int){return;}; | |
Level.explode = function(par1double, par2double, par3double, par4double, par5boolean){return;}; | |
Level.getAddress = function() {return;}; | |
Level.getBiome = function(par1int, par2int){return;}; | |
Level.getBiomeName = function(par1int, par2int){return;}; | |
Level.getBrightness = function(par1int, par2int, par3int){return;}; | |
Level.getChestSlot = function(par1int, par2int, par3int, par4int){return;}; | |
Level.getChestSlotCount = function(par1int, par2int, par3int, par4int){return;}; | |
Level.getChestSlotData = function(par1int, par2int, par3int, par4int){return;}; | |
Level.getData = function(par1int, par2int, par3int){return;}; | |
Level.getFurnaceSlot = function(par1int, par2int, par3int, par4int){return;}; | |
Level.getFurnaceSlotCount = function(par1int, par2int, par3int, par4int){return;}; | |
Level.getFurnaceSlotData = function(par1int, par2int, par3int, par4int){return;}; | |
Level.getGameMode = function() {return;}; | |
Level.getGrassColor = function(par1int, par2int){return;}; | |
Level.getLightningLevel = function() {return;}; | |
Level.getRainLevel = function() {return;}; | |
Level.getSignText = function(par1int, par2int, par3int, par4int){return;}; | |
Level.getSpawnerEntityType = function(par1int, par2int, par3int){return;}; | |
Level.getTile = function(par1int, par2int, par3int){return;}; | |
Level.getTime = function() {return;}; | |
Level.getWorldDir = function() {return;}; | |
Level.getWorldName = function() {return;}; | |
Level.playSound = function(par1double, par2double, par3double, par4String, par5double, par6double){return;}; | |
Level.playSoundEnt = function(par1Object, par2String, par3double, par4double){return;}; | |
Level.setChestSlot = function(par1int, par2int, par3int, par4int, par5int, par6int, par7int){return;}; | |
Level.setFurnaceSlot = function(par1int, par2int, par3int, par4int, par5int, par6int, par7int){return;}; | |
Level.setGameMode = function(par1int){return;}; | |
Level.setGrassColor = function(par1int, par2int, par3int){return;}; | |
Level.setLightningLevel = function(par1double){return;}; | |
Level.setNightMode = function(par1boolean){return;}; | |
Level.setRainLevel = function(par1double){return;}; | |
Level.setSignText = function(par1int, par2int, par3int, par4int, par5String){return;}; | |
Level.setSpawn = function(par1int, par2int, par3int){return;}; | |
Level.setSpawnerEntityType = function(par1int, par2int, par3int, par4int){return;}; | |
Level.setTile = function(par1int, par2int, par3int, par4int, par5int){return;}; | |
Level.setTime = function(par1int){return;}; | |
Level.spawnChicken = function(par1double, par2double, par3double, par4String){return;}; | |
Level.spawnCow = function(par1double, par2double, par3double, par4String){return;}; | |
Level.spawnMob = function(par1double, par2double, par3double, par4int, par5String){return;}; | |
var Player = {}; | |
Player.addExp = function(par1int){return;}; | |
Player.addItemCreativeInv = function(par1int, par2int, par3int){return;}; | |
Player.addItemInventory = function(par1int, par2int, par3int){return;}; | |
Player.canFly = function() {return;}; | |
Player.clearInventorySlot = function(par1int){return;}; | |
Player.enchant = function(par1int, par2int, par3int){return;}; | |
Player.getArmorSlot = function(par1int){return;}; | |
Player.getArmorSlotDamage = function(par1int){return;}; | |
Player.getCarriedItem = function() {return;}; | |
Player.getCarriedItemCount = function() {return;}; | |
Player.getCarriedItemData = function() {return;}; | |
Player.getDimension = function() {return;}; | |
Player.getEnchantments = function(par1int){return;}; | |
Player.getEntity = function() {return;}; | |
Player.getExhaustion = function() {return;}; | |
Player.getExp = function() {return;}; | |
Player.getHunger = function() {return;}; | |
Player.getInventorySlot = function(par1int){return;}; | |
Player.getInventorySlotCount = function(par1int){return;}; | |
Player.getInventorySlotData = function(par1int){return;}; | |
Player.getItemCustomName = function(par1int){return;}; | |
Player.getLevel = function() {return;}; | |
Player.getName = function(par1Object){return;}; | |
Player.getPointedBlockData = function() {return;}; | |
Player.getPointedBlockId = function() {return;}; | |
Player.getPointedBlockSide = function() {return;}; | |
Player.getPointedBlockX = function() {return;}; | |
Player.getPointedBlockY = function() {return;}; | |
Player.getPointedBlockZ = function() {return;}; | |
Player.getPointedEntity = function() {return;}; | |
Player.getPointedVecX = function() {return;}; | |
Player.getPointedVecY = function() {return;}; | |
Player.getPointedVecZ = function() {return;}; | |
Player.getSaturation = function() {return;}; | |
Player.getSelectedSlotId = function() {return;}; | |
Player.getX = function() {return;}; | |
Player.getY = function() {return;}; | |
Player.getZ = function() {return;}; | |
Player.isFlying = function() {return;}; | |
Player.isPlayer = function(par1Object){return;}; | |
Player.setArmorSlot = function(par1int, par2int, par3int){return;}; | |
Player.setCanFly = function(par1boolean){return;}; | |
Player.setExhaustion = function(par1double){return;}; | |
Player.setExp = function(par1double){return;}; | |
Player.setFlying = function(par1boolean){return;}; | |
Player.setHealth = function(par1int){return;}; | |
Player.setHunger = function(par1double){return;}; | |
Player.setInventorySlot = function(par1int, par2int, par3int, par4int){return;}; | |
Player.setItemCustomName = function(par1int, par2String){return;}; | |
Player.setLevel = function(par1int){return;}; | |
Player.setSaturation = function(par1double){return;}; | |
Player.setSelectedSlotId = function(par1int){return;}; | |
var Entity = {}; | |
Entity.addEffect = function(par1Object, par2int, par3int, par4int, par5boolean, par6boolean){return;}; | |
Entity.getAll = function() {return;}; | |
Entity.getAnimalAge = function(par1Object){return;}; | |
Entity.getArmor = function(par1Object, par2int){return;}; | |
Entity.getArmorDamage = function(par1Object, par2int){return;}; | |
Entity.getEntityTypeId = function(par1Object){return;}; | |
Entity.getHealth = function(par1Object){return;}; | |
Entity.getItemEntityCount = function(par1Object){return;}; | |
Entity.getItemEntityData = function(par1Object){return;}; | |
Entity.getItemEntityId = function(par1Object){return;}; | |
Entity.getMaxHealth = function(par1Object){return;}; | |
Entity.getMobSkin = function(par1Object){return;}; | |
Entity.getNameTag = function(par1Object){return;}; | |
Entity.getPitch = function(par1Object){return;}; | |
Entity.getRenderType = function(par1Object){return;}; | |
Entity.getRider = function(par1Object){return;}; | |
Entity.getRiding = function(par1Object){return;}; | |
Entity.getUniqueId = function(par1Object){return;}; | |
Entity.getVelX = function(par1Object){return;}; | |
Entity.getVelY = function(par1Object){return;}; | |
Entity.getVelZ = function(par1Object){return;}; | |
Entity.getX = function(par1Object){return;}; | |
Entity.getY = function(par1Object){return;}; | |
Entity.getYaw = function(par1Object){return;}; | |
Entity.getZ = function(par1Object){return;}; | |
Entity.isSneaking = function(par1Object){return;}; | |
Entity.remove = function(par1Object){return;}; | |
Entity.removeAllEffects = function(par1Object){return;}; | |
Entity.removeEffect = function(par1Object, par2int){return;}; | |
Entity.rideAnimal = function(par1Object, par2Object){return;}; | |
Entity.setAnimalAge = function(par1Object, par2int){return;}; | |
Entity.setArmor = function(par1Object, par2int, par3int, par4int){return;}; | |
Entity.setCape = function(par1Object, par2String){return;}; | |
Entity.setCarriedItem = function(par1Object, par2int, par3int, par4int){return;}; | |
Entity.setCollisionSize = function(par1Object, par2double, par3double){return;}; | |
Entity.setFireTicks = function(par1Object, par2int){return;}; | |
Entity.setHealth = function(par1Object, par2int){return;}; | |
Entity.setMaxHealth = function(par1Object, par2int){return;}; | |
Entity.setMobSkin = function(par1Object, par2String){return;}; | |
Entity.setNameTag = function(par1Object, par2String){return;}; | |
Entity.setPosition = function(par1Object, par2double, par3double, par4double){return;}; | |
Entity.setPositionRelative = function(par1Object, par2double, par3double, par4double){return;}; | |
Entity.setRenderType = function(par1Object, par2int){return;}; | |
Entity.setRot = function(par1Object, par2double, par3double){return;}; | |
Entity.setSneaking = function(par1Object, par2boolean){return;}; | |
Entity.setVelX = function(par1Object, par2double){return;}; | |
Entity.setVelY = function(par1Object, par2double){return;}; | |
Entity.setVelZ = function(par1Object, par2double){return;}; | |
Entity.spawnMob = function(par1double, par2double, par3double, par4int, par5String){return;}; | |
var Item = {}; | |
Item.addCraftRecipe = function(par1int, par2int, par3int, par4Scriptable){return;}; | |
Item.addFurnaceRecipe = function(par1int, par2int, par3int){return;}; | |
Item.addShapedRecipe = function(par1int, par2int, par3int, par4Scriptable, par5Scriptable){return;}; | |
Item.defineArmor = function(par1int, par2String, par3int, par4String, par5String, par6int, par7int, par8int){return;}; | |
Item.getName = function(par1int, par2int, par3boolean){return;}; | |
Item.getUseAnimation = function(par1int){return;}; | |
Item.isValidItem = function(par1int){return;}; | |
Item.setCategory = function(par1int, par2int){return;}; | |
Item.setHandEquipped = function(par1int, par2boolean){return;}; | |
Item.setMaxDamage = function(par1int, par2int){return;}; | |
Item.setProperties = function(par1int, par2Object){return;}; | |
Item.setStackedByData = function(par1int, par2boolean){return;}; | |
Item.setEnchantType = function(par1int, par2int, par3int){return;}; | |
Item.setUseAnimation = function(par1int, par2int){return;}; | |
var Block = {}; | |
Block.defineBlock = function(par1int, par2String, par3Object, par4Object, par5Object, par6Object){return;}; | |
Block.defineLiquidBlock = function(par1int, par2String, par3Object, par4Object){return;}; | |
Block.getAllBlockIds = function() {return;}; | |
Block.getDestroyTime = function(par1int, par2int){return;}; | |
Block.getFriction = function(par1int, par2int){return;}; | |
Block.getRenderType = function(par1int){return;}; | |
Block.setColor = function(par1int, par2Scriptable){return;}; | |
Block.setDestroyTime = function(par1int, par2double){return;}; | |
Block.setExplosionResistance = function(par1int, par2double){return;}; | |
Block.setFriction = function(par1int, par2double){return;}; | |
Block.setLightLevel = function(par1int, par2int){return;}; | |
Block.setLightOpacity = function(par1int, par2int){return;}; | |
Block.setRedstoneConsumer = function(par1int, par2boolean){return;}; | |
Block.setRenderLayer = function(par1int, par2int){return;}; | |
Block.setRenderType = function(par1int, par2int){return;}; | |
Block.setShape = function(par1int, par2double, par3double, par4double, par5double, par6double, par7double, par8int){return;}; | |
var Server = {}; | |
Server.getAddress = function() {return;}; | |
Server.getAllPlayerNames = function() {return;}; | |
Server.getAllPlayers = function() {return;}; | |
Server.getPort = function() {return;}; | |
Server.joinServer = function(par1String, par2int){return;}; | |
Server.sendChat = function(par1String){return;}; | |
function attackHook(attacker, victim){} | |
function chatHook(str){} | |
function destroyBlock(x, y, z, side){} | |
function projectileHitEntityHook(projectile, targetEntity){} | |
function eatHook(hearts, saturationRatio){} | |
function entityAddedHook(entity){} | |
function entityRemovedHook(entity){} | |
function explodeHook(entity, x, y, z, power, onFire){} | |
function serverMessageReceiveHook(str){} | |
function chatReceiveHook(str, sender){} | |
function leaveGame(){} | |
function deathHook(attacker, victim){} | |
function redstoneUpdateHook(x, y, z, newCurrent, someBooleanIDontKnow, blockId, blockData){} | |
function selectLevelHook(){} | |
function newLevel(){} | |
function startDestroyBlock(x, y, z, side){} | |
function projectileHitBlockHook(projectile, blockX, blockY, blockZ, side){} | |
function modTick(){} | |
function useItem(x, y, z, itemid, blockid, side, itemDamage, blockDamage){} | |
var ChatColor = {}; | |
ChatColor.AQUA = "§b"; | |
ChatColor.BEGIN = "§"; | |
ChatColor.BLACK = "§0"; | |
ChatColor.BLUE = "§9"; | |
ChatColor.BOLD = "§l"; | |
ChatColor.DARK_AQUA = "§3"; | |
ChatColor.DARK_BLUE = "§1"; | |
ChatColor.DARK_GRAY = "§8"; | |
ChatColor.DARK_GREEN = "§2"; | |
ChatColor.DARK_PURPLE = "§5"; | |
ChatColor.DARK_RED = "§4"; | |
ChatColor.GOLD = "§6"; | |
ChatColor.GRAY = "§7"; | |
ChatColor.GREEN = "§a"; | |
ChatColor.LIGHT_PURPLE = "§d"; | |
ChatColor.RED = "§c"; | |
ChatColor.RESET = "§r"; | |
ChatColor.WHITE = "§f"; | |
ChatColor.YELLOW = "§e"; | |
var ItemCategory = {}; | |
ItemCategory.DECORATION = 2; | |
ItemCategory.FOOD = 4; | |
ItemCategory.INTERNAL = 0; | |
ItemCategory.MATERIAL = 1; | |
ItemCategory.TOOL = 3; | |
var ParticleType = {}; | |
ParticleType.angryVillager = 30; | |
ParticleType.bubble = 1; | |
ParticleType.cloud = 4; | |
ParticleType.crit = 2; | |
ParticleType.dripLava = 22; | |
ParticleType.dripWater = 21; | |
ParticleType.enchantmenttable = 32; | |
ParticleType.fallingDust = 23; | |
ParticleType.flame = 6; | |
ParticleType.happyVillager = 31; | |
ParticleType.heart = 15; | |
ParticleType.hugeexplosion = 13; | |
ParticleType.hugeexplosionSeed = 12; | |
ParticleType.ink = 27; | |
ParticleType.itemBreak = 10; | |
ParticleType.largeexplode = 5; | |
ParticleType.lava = 7; | |
ParticleType.mobFlame = 14; | |
ParticleType.note = 34; | |
ParticleType.portal = 18; | |
ParticleType.rainSplash = 29; | |
ParticleType.redstone = 9; | |
ParticleType.slime = 28; | |
ParticleType.smoke = 3; | |
ParticleType.smoke2 = 8; | |
ParticleType.snowballpoof = 11; | |
ParticleType.spell = 24; | |
ParticleType.spell2 = 25; | |
ParticleType.spell3 = 26; | |
ParticleType.splash = 19; | |
ParticleType.suspendedTown = 17; | |
ParticleType.terrain = 16; | |
ParticleType.waterWake = 20; | |
var EntityType = {}; | |
EntityType.ARROW = 80; | |
EntityType.BAT = 19; | |
EntityType.BLAZE = 43; | |
EntityType.BOAT = 90; | |
EntityType.CAVE_SPIDER = 40; | |
EntityType.CHICKEN = 10; | |
EntityType.COW = 11; | |
EntityType.CREEPER = 33; | |
EntityType.EGG = 82; | |
EntityType.ENDERMAN = 38; | |
EntityType.EXPERIENCE_ORB = 69; | |
EntityType.EXPERIENCE_POTION = 68; | |
EntityType.FALLING_BLOCK = 66; | |
EntityType.FIREBALL = 85; | |
EntityType.FISHING_HOOK = 77; | |
EntityType.GHAST = 41; | |
EntityType.IRON_GOLEM = 20; | |
EntityType.ITEM = 64; | |
EntityType.LAVA_SLIME = 42; | |
EntityType.LIGHTNING_BOLT = 93; | |
EntityType.MINECART = 84; | |
EntityType.MUSHROOM_COW = 16; | |
EntityType.OCELOT = 22; | |
EntityType.PAINTING = 83; | |
EntityType.PIG = 12; | |
EntityType.PIG_ZOMBIE = 36; | |
EntityType.PLAYER = 63; | |
EntityType.PRIMED_TNT = 65; | |
EntityType.RABBIT = 18; | |
EntityType.SHEEP = 13; | |
EntityType.SILVERFISH = 39; | |
EntityType.SKELETON = 34; | |
EntityType.SLIME = 37; | |
EntityType.SMALL_FIREBALL = 94; | |
EntityType.SNOWBALL = 81; | |
EntityType.SNOW_GOLEM = 21; | |
EntityType.SPIDER = 35; | |
EntityType.SQUID = 17; | |
EntityType.THROWN_POTION = 86; | |
EntityType.VILLAGER = 15; | |
EntityType.WOLF = 14; | |
EntityType.ZOMBIE = 32; | |
EntityType.ZOMBIE_VILLAGER = 44; | |
var EntityRenderType = {}; | |
EntityRenderType.arrow = 32; | |
EntityRenderType.bat = 10; | |
EntityRenderType.blaze = 18; | |
EntityRenderType.boat = 35; | |
EntityRenderType.chicken = 5; | |
EntityRenderType.cow = 6; | |
EntityRenderType.creeper = 22; | |
EntityRenderType.egg = 30; | |
EntityRenderType.enderman = 24; | |
EntityRenderType.expPotion = 45; | |
EntityRenderType.experienceOrb = 40; | |
EntityRenderType.fallingTile = 33; | |
EntityRenderType.fireball = 37; | |
EntityRenderType.fishHook = 26; | |
EntityRenderType.ghast = 17; | |
EntityRenderType.human = 3; | |
EntityRenderType.ironGolem = 42; | |
EntityRenderType.item = 4; | |
EntityRenderType.lavaSlime = 16; | |
EntityRenderType.lightningBolt = 41; | |
EntityRenderType.minecart = 34; | |
EntityRenderType.mushroomCow = 7; | |
EntityRenderType.ocelot = 43; | |
EntityRenderType.pig = 8; | |
EntityRenderType.player = 27; | |
EntityRenderType.player2 = 28; | |
EntityRenderType.sheep = 9; | |
EntityRenderType.silverfish = 21; | |
EntityRenderType.skeleton = 19; | |
EntityRenderType.slime = 23; | |
EntityRenderType.smallFireball = 38; | |
EntityRenderType.snowGolem = 44; | |
EntityRenderType.snowball = 29; | |
EntityRenderType.spider = 20; | |
EntityRenderType.squid = 36; | |
EntityRenderType.thrownPotion = 31; | |
EntityRenderType.tnt = 2; | |
EntityRenderType.unknown1 = 25; | |
EntityRenderType.villager = 12; | |
EntityRenderType.villagerZombie = 39; | |
EntityRenderType.wolf = 11; | |
EntityRenderType.zombie = 14; | |
EntityRenderType.zombiePigman = 15; | |
var ArmorType = {}; | |
ArmorType.boots = 3; | |
ArmorType.chestplate = 1; | |
ArmorType.helmet = 0; | |
ArmorType.leggings = 2; | |
var MobEffect = {}; | |
MobEffect.absorption = 22; | |
MobEffect.blindness = 15; | |
MobEffect.confusion = 9; | |
MobEffect.damageBoost = 5; | |
MobEffect.damageResistance = 11; | |
MobEffect.digSlowdown = 4; | |
MobEffect.digSpeed = 3; | |
MobEffect.effectIds = {8=jump, 11=damageResistance, 13=waterBreathing, 19=poison, 22=absorption, 5=damageBoost, 3=digSpeed, 4=digSlowdown, 1=movementSpeed, 6=heal, 15=blindness, 18=weakness, 23=saturation, 9=confusion, 12=fireResistance, 17=hunger, 10=regeneration, 14=invisibility, 21=healthBoost, 7=harm, 16=nightVision, 2=movementSlowdown, 20=wither}; | |
MobEffect.fireResistance = 12; | |
MobEffect.harm = 7; | |
MobEffect.heal = 6; | |
MobEffect.healthBoost = 21; | |
MobEffect.hunger = 17; | |
MobEffect.invisibility = 14; | |
MobEffect.jump = 8; | |
MobEffect.movementSlowdown = 2; | |
MobEffect.movementSpeed = 1; | |
MobEffect.nightVision = 16; | |
MobEffect.poison = 19; | |
MobEffect.regeneration = 10; | |
MobEffect.saturation = 23; | |
MobEffect.waterBreathing = 13; | |
MobEffect.weakness = 18; | |
MobEffect.wither = 20; | |
var DimensionId = {}; | |
DimensionId.NETHER = 1; | |
DimensionId.NORMAL = 0; | |
var BlockFace = {}; | |
BlockFace.DOWN = 0; | |
BlockFace.EAST = 5; | |
BlockFace.NORTH = 2; | |
BlockFace.SOUTH = 3; | |
BlockFace.UP = 1; | |
BlockFace.WEST = 4; | |
var UseAnimation = {}; | |
UseAnimation.bow = 4; | |
UseAnimation.normal = 0; | |
var Enchantment = {}; | |
Enchantment.AQUA_AFFINITY = 7; | |
Enchantment.BANE_OF_ARTHROPODS = 11; | |
Enchantment.BLAST_PROTECTION = 3; | |
Enchantment.DEPTH_STRIDER = 8; | |
Enchantment.EFFICIENCY = 15; | |
Enchantment.FEATHER_FALLING = 2; | |
Enchantment.FIRE_ASPECT = 13; | |
Enchantment.FIRE_PROTECTION = 1; | |
Enchantment.FLAME = 21; | |
Enchantment.FORTUNE = 18; | |
Enchantment.INFINITY = 22; | |
Enchantment.KNOCKBACK = 12; | |
Enchantment.LOOTING = 14; | |
Enchantment.LUCK_OF_THE_SEA = 23; | |
Enchantment.LURE = 24; | |
Enchantment.POWER = 19; | |
Enchantment.PROJECTILE_PROTECTION = 4; | |
Enchantment.PROTECTION = 0; | |
Enchantment.PUNCH = 20; | |
Enchantment.RESPIRATION = 6; | |
Enchantment.SHARPNESS = 9; | |
Enchantment.SILK_TOUCH = 16; | |
Enchantment.SMITE = 10; | |
Enchantment.THORNS = 5; | |
Enchantment.UNBREAKING = 17; | |
EnchantType = {}; | |
EnchantType.all = 16383; | |
EnchantType.axe = 512; | |
EnchantType.book = 16383; | |
EnchantType.bow = 32; | |
EnchantType.fishingRod = 4096; | |
EnchantType.flintAndSteel = 256; | |
EnchantType.hoe = 64; | |
EnchantType.pickaxe = 1024; | |
EnchantType.shears = 128; | |
EnchantType.shovel = 2048; | |
EnchantType.weapon = 16; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ModPE.saveWorldFile = function(filename, content) { | |
java.io.File(android.os.Environment.getExternalStorageDirectory().getPath() + "/games/com.mojang/minecraftWorlds/" + Level.getWorldDir() + "/").mkdirs(); | |
var newFile = new java.io.File(android.os.Environment.getExternalStorageDirectory().getPath() + "/games/com.mojang/minecraftWorlds/" + Level.getWorldDir() + "/", filename); | |
newFile.createNewFile(); | |
var outWrite = new java.io.OutputStreamWriter(new java.io.FileOutputStream(newFile)); | |
outWrite.append(content); | |
outWrite.close(); | |
}; | |
var file = []; | |
function newLevel() { | |
constantValues(); | |
ModPE.saveWorldFile("const",file.join(";\n")); | |
} | |
function constantValues() { | |
file.push("\nChatColor = {}"); | |
for(let i in ChatColor) { | |
file.push("ChatColor."+i+" = "+ChatColor[i]); | |
} | |
file.push("\nItemCategory = {}"); | |
for(let i in ItemCategory) { | |
file.push("ItemCategory."+i+" = "+ItemCategory[i]); | |
} | |
file.push("\nParticleType = {}"); | |
for(let i in ParticleType) { | |
file.push("ParticleType."+i+" = "+ParticleType[i]); | |
} | |
file.push("\nEntityType = {}"); | |
for(let i in EntityType) { | |
file.push("EntityType."+i+" = "+EntityType[i]); | |
} | |
file.push("\nEntityRenderType = {}"); | |
for(let i in EntityRenderType) { | |
file.push("EntityRenderType."+i+" = "+EntityRenderType[i]); | |
} | |
file.push("\nArmorType = {}"); | |
for(let i in ArmorType) { | |
file.push("ArmorType."+i+" = "+ArmorType[i]); | |
} | |
file.push("\nMobEffect = {}"); | |
for(let i in MobEffect) { | |
file.push("MobEffect."+i+" = "+MobEffect[i]); | |
} | |
file.push("\nDimensionId = {}"); | |
for(let i in DimensionId) { | |
file.push("DimensionId."+i+" = "+DimensionId[i]); | |
} | |
file.push("\nBlockFace = {}"); | |
for(let i in BlockFace) { | |
file.push("BlockFace."+i+" = "+BlockFace[i]); | |
} | |
file.push("\nUseAnimation = {}"); | |
for(let i in UseAnimation) { | |
file.push("UseAnimation."+i+" = "+UseAnimation[i]); | |
} | |
file.push("\nEnchantment = {}"); | |
for(let i in Enchantment) { | |
file.push("Enchantment."+i+" = "+Enchantment[i]); | |
} | |
file.push("\nEnchantType = {}"); | |
for(let i in EnchantType) { | |
file.push("EnchantType."+i+" = "+EnchantType[i]); | |
} | |
file.push("\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment