maxEnergy = 100; maxSpeed = 0.15; maxHunger = 100; eating = 0; blind = 0; pathing = true;
player.setMaxHealth(40); player.setHealth(player.getMaxHealth()); jumped = 20;
energy = maxEnergy; energyGenerate = 0.025; healthCheck = 0;
hunger = 0; hungerGenerate = 0.01; hungerTime = 0; help = true; itemize = 0; itemize2 = 0;
moveXby = 0; rotCheck = player.getRotation(); rot = player.getRotation();
houseUP = 0; libraryUP = 0; armoryUP = 0; kitchenUP = 0; shopUP = 0; areaUP = 1;
able_effect = false; statusShow = false; usingTool = 0; cPower = 0; death = 0;
time.setTime(10); godMode = false; checkMain = 0; handfull = 0; lostHandItem = false;
schem_over = false; recipe_over = false; build_over = false; repairReduce = false;
sleeping = 0.1; slept = 0; handFix = 0; offHandFix = 0; intence_repair = 0;
fireHP = 1; fireMaxHP = 1; firepower = 0; fireburn = ""; chatText = ""; hasSchemBook = false; hasRecipeBook = false;
fireArray = [[false, [0, 0, 0], 0, 0, 0, 0, "0", 0, 0, 0, 0, 1]];
fireSave = "" + fireArray; fireOrder = "seeeoooosooooo";
//Array(fireWork [0], firePos [1], fireHP [2], fireMaxHP [3], firepower [4], 
//fireleft [5], fireShow [6], cookedID [7], rawID [8], oven || furnace [9], cooking MaxHeat [10], drop count [11])
waterpower = 0; sunpower = 0; time.rate = 0.5; chatText = ""; face = "unknown";
coins = 0; consumeMoney = false; giveMoney = false; itemUsed = false; lookBlockID = 0; lookBlockMD = 0;
antiWoodx = 96; antiWoody = 78; antiWoodz = -126; antiWoodx2 = 27; antiWoody2 = 63; antiWoodz2 = -57;
collumnShow = 1; activeCraftPG = 1; activePG = 1; craftMaxPG = 22; ctmpg = cookMaxPG; craftSpeech = ""; 
activeCookPG = 1; cookMaxPG = 2; cmpg = cookMaxPG; mainSkill = 1; craftingLevel = 0;
buildShow = 1; erazerP = 3; erazerM = 12; poison = 0; poisonP = 1; burden = 0; maxBurden = 30;
helmetA = 0; chestA = 0; leggingsA = 0; bootsA = 0; wholeA = 0; healthCheck = 40;
superGarden = [[false, 0, 0, 0, 0, 0, 0, ""]]; gardSave = "" + superGarden; gardOrder = "seeeooooos";
shop_over = false; traderMoney = 0; shopActive = 0; shopInvestment = 0;
shopValues = 0; shopState = "Buy"; actArray = [0, 0, 0, 0]; actSave = "" + actArray; cheated = 0;
blockArray = []; blockSave = "" + blockArray; blockOrder = "oooo"; realTiming = 0; waitingValue = 0; 
dailyEnergy = 100; waitingTime = 0; startTime = 0; gameTiming = 0; eCheck = 100; pHealth = 40; eatMeter = 0;
torchArray = [[false, [0, 0, 0], 0, 0]]; torchSave = "" + torchArray; torchOrder = "seeeoo"; gameRestore = 0;
cactusArray = [[false, [0, 0, 0], 0, 0]]; cactusSave = "" + cactusArray; cactusOrder = "seeeoo";
repairArray = [[false, [0, 0, 0], 0, 0, 0, 0, 0, 0, 0, 0]]; repairSave = "" + repairArray; repairOrder = "seeeoooooooo";
messageVal = []; for (i = 0; i < 30; i++) {messageVal [i] = false;} messageSave = "" + messageVal; messageTrig = 0;
dialogueChoice = [false, 0, 1]; dialogueSave = "" + dialogueChoice; throwingValue = 0; LVLup = false;
world.triggerArea(55, 69, -89, 56, 69, -89); playerFirstTeleport = false; shopActiveIcon = 0;
achievSet = []; for (i = 0; i < 30; i++) {achievSet [i] = 0;} achievSave = "" + achievSet;
blocksDestroyed = 0; investment = 0; complAchievCount = 0; blockDestroyed = 0; 
for (i = 0; i < 36; i++) {player.getInventory().emptySlot(i);} dead = 0; 
entities = [[0, 0, 0, 0]]; entityOrder = "ooo"; entitySave = "" + entities;
chat.print("To avoid lag press 'f' or restart the game");
//[0] entityID, [1] created, [2] name, [3] healthCheck

mS = 15; 
skillVar = [[0, 1, 0, false, "Fishing"], [0, 1, 0, false, "Sword"], [0, 1, 0, false, "Blunt"], 
[0, 1, 0, false, "Harvesting"], [0, 1, 0, false, "Gardening"], [0, 1, 0, false, "Cooking"], 
[0, 1, 0, false, "Smithing"], [0, 1, 0, false, "Mining"], [0, 1, 0, false, "Woodcutting"], 
[0, 1, 0, false, "Crafting"], [0, 1, 0, false, "Light armor"], [0, 1, 0, false, "Heavy armor"], 
[0, 1, 0, false, "Digging"], [0, 1, 0, false, "Unarmed"], [0, 1, 0, false, "Range"], 
[0, 1, 0, false, "Main"]];
for (i = 0; i < mS; i++) {skillVar [i] [2] = Math.floor(Math.pow(skillVar [i] [1]*1.2, 1.5) + 1)*5;}
skillVar [mS] [2] = Math.floor(Math.pow(skillVar [mS] [1] * mS, 1.1))*10;
//[0] Fishing/[1] Sword/[2] Blunt/[3] Harvesting/[4] Gardening/[5] Cooking/[6] Smithing/
//[7] Mining/[8] Woodcut/[9] Crafting/[10] Light/[11] Heavy/[mS] Main/
skillSave = "" + skillVar; skillOrder = "oooss";

fishing_xp = 0; fishing_lvl = 1; sword_xp = 0; sword_lvl = 1; blunt_xp = 0; blunt_lvl = 1;
harvesting_xp = 0; harvesting_lvl = 1; gardening_xp = 0; gardening_lvl = 1;
cooking_xp = 0; cooking_lvl = 1; smithing_xp = 0; smithing_lvl = 1;
mining_xp = 0; mining_lvl = 1; woodcut_xp = 0; woodcut_lvl = 1; main_xp = 0; main_lvl = 1;
crafting_xp = 0; crafting_lvl = 1; light_xp = 0; light_lvl = 1; heavy_xp = 0; heavy_lvl = 1;
digging_xp = 0; digging_lvl = 1; unarmed_xp = 0; unarmed_lvl = 1; range_xp = 0; range_lvl = 1;

function everyTick() {}; function drop() {};

// SHOP VALUES //
shopOrder = "oooooosoo"; 
shop1Var = [13, 0, 0, 0, 0, 0, 0, 0]; shop1Sav = "" + shop1Var; shop1 = [[5, 0, 0, 7, 0, 0, "", 0, 7],
[4, 0, 0, 5, 0, 0, "", 0, 5],[2001, 0, 0, 8, 0, 0, "", 0, 8],[295, 0, 0, 5, 0, 0, "", 0, 5]]; shop1Save = "" + shop1; 