private void tabSumosType_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     allVisInit();
     AllSelData asd = new AllSelData();
     if (asd.getAt(tabSumosType.SelectedIndex) == "Villager" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:villager")
     {
         SummonVHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "ArmorStand" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:armor_stand")
     {
         SummonArmorStandHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Item" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:item")
     {
         SummonSHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Enderman" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:enderman")
     {
         tabSumosEEnderman.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Ozelot" || asd.getAt(tabSumosType.SelectedIndex) == "Wolf" || asd.getAt(tabSumosType.SelectedIndex) == "EntityHorse" || asd.getAt(tabSumosType.SelectedIndex) == "PigZombie" || asd.getAt(tabSumosType.SelectedIndex) == "Snowball" || asd.getAt(tabSumosType.SelectedIndex) == "ThrownEgg" || asd.getAt(tabSumosType.SelectedIndex) == "ThrownEnderpearl" || asd.getAt(tabSumosType.SelectedIndex) == "ThrownExpBottle" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ocelot" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:wolf" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:skeleton_horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:mule" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:donkey" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_pigman" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:snowball" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:egg" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ender_pearl" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:xp_bottle")
     {
         tabSumosEUUID.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Wolf" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:wolf")
     {
         tabSumosEWoolColor.IsEnabled = true;
         tabSumosEWoolColor.Items.Clear();
         for (int i = 0; i < asd.getBannerColorCount(); i++)
         {
             tabSumosEWoolColor.Items.Add(asd.getBannerColorStr(i));
         }
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Creeper" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:creeper")
     {
         tabSumosEExplosionRadius.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "EnderDragon" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ender_dragon")
     {
         tabSumosEDragon.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Slime" || asd.getAt(tabSumosType.SelectedIndex) == "LavaSlime" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:slime" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:magma_cube")
     {
         tabSumosESize.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Shulker" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:shulker")
     {
         tabSumosEShulkerPeek.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Creeper" || asd.getAt(tabSumosType.SelectedIndex) == "PrimedTnt" || asd.getAt(tabSumosType.SelectedIndex) == "MinecartTNT" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:creeper" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:tnt" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:tnt_minecart")
     {
         tabSumosEFuse.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Ghast" || asd.getAt(tabSumosType.SelectedIndex) == "Fireball" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ghast" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:fireball")
     {
         tabSumosEExplosionPower.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Ozelot" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ocelot")
     {
         tabSumosECatType.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Rabbit" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:rabbit")
     {
         tabSumosERabbitType.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "WitherBoss" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:wither")
     {
         tabSumosEInvul.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Creeper" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:creeper")
     {
         tabSumosEPowered.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Endermite" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:endermite")
     {
         tabSumosEAtkByEnderman.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Zombie" || asd.getAt(tabSumosType.SelectedIndex) == "PigZombie" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:husk" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_villager" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_pigman")
     {
         tabSumosECanBreakDoor.IsEnabled = true;
         SummonVHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Zombie")
     {
         tabSumosEZombieType.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Sheep" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:sheep")
     {
         tabSumosEWoolColor.IsEnabled = true;
         tabSumosESheared.IsEnabled = true;
         tabSumosEWoolColor.Items.Clear();
         for (int i = 0; i < asd.getWoolColorCount(); i++)
         {
             tabSumosEWoolColor.Items.Add(asd.getWoolColor(i));
         }
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "VillagerGolem" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:villager_golem")
     {
         tabSumosEPlayerCreated.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Guardian")
     {
         tabSumosEElder.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Pig" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:pig")
     {
         tabSumosESaddle.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Skeleton")
     {
         tabSumosEZombieType.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "PigZombie" || asd.getAt(tabSumosType.SelectedIndex) == "Wolf" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_pigman" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:wolf")
     {
         tabSumosEAngry.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Arrow" || asd.getAt(tabSumosType.SelectedIndex) == "TippedArrow" || asd.getAt(tabSumosType.SelectedIndex) == "SpectralArrow" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:arrow" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:spectral_arrow")
     {
         tabSumosEpickup.IsEnabled = true;
         tabSumosEdamage.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "EntityHorse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:skeleton_horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:mule" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:donkey")
     {
         SummonHorseHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Item" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:item")
     {
         tabSumosEOwner.IsEnabled = true;
         tabSumosEThrower.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "XPOrb" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:xp_orb")
     {
         tabSumosEExp.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "AreaEffectCloud" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:area_effect_cloud")
     {
         tabSumosEDuration.IsEnabled = true;
         tabSumosERadius.IsEnabled = true;
         tabSumosEParticle.IsEnabled = true;
         tabSumosEParticleColor.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "FallingSand" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:falling_block")
     {
         SummonSand.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "ItemFrame" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:item_frame")
     {
         SummonFrame.Visibility = Visibility.Visible;
     }
 }
 public Summon()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getAtListCount(); i++)
     {
         tabSumosType.Items.Add(asd.getAtNameList(i));
         tabSpawnerShowType.Items.Add(asd.getAtNameList(i));
         tabSpawner1Type.Items.Add(asd.getAtNameList(i));
         tabSpawner2Type.Items.Add(asd.getAtNameList(i));
         tabSpawner3Type.Items.Add(asd.getAtNameList(i));
         tabSpawner4Type.Items.Add(asd.getAtNameList(i));
     }
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         tabSummonItem.Items.Add(asd.getItemNameList(i));
         tabSumosLHand.Items.Add(asd.getItemNameList(i));
         tabSumosHand.Items.Add(asd.getItemNameList(i));
         tabSumosBoot.Items.Add(asd.getItemNameList(i));
         tabSumosLeg.Items.Add(asd.getItemNameList(i));
         tabSumosChest.Items.Add(asd.getItemNameList(i));
         tabSumosHead.Items.Add(asd.getItemNameList(i));
         tabVillagerA.Items.Add(asd.getItemNameList(i));
         tabVillagerB.Items.Add(asd.getItemNameList(i));
         tabVillagerC.Items.Add(asd.getItemNameList(i));
         FallingSandItemSel.Items.Add(asd.getItemNameList(i));
     }
     for (int i = 0; i < asd.getHideListCount(); i++)
     {
         tabSummonHide.Items.Add(asd.getHideList(i));
     }
     for (int i = 0; i < asd.getVillagerTypeCount(); i++)
     {
         tabVillagerType.Items.Add(asd.getVillagerType(i));
     }
     for (int i = 0; i < ridingIndex.Length; i++)
     {
         for (int b = 0; b < ridingIndex.Length; b++)
         {
             ridingList[i,b] = "";
         }
     }
     for (int i = 0; i < ridingIndex.Length; i++)
     {
         ridingIndex[i] = 0;
     }
     for (int i = 0; i < asd.getWoolColorCount(); i++)
     {
         tabSumosEWoolColor.Items.Add(asd.getWoolColor(i));
     }
     for (int i = 0; i < HorseChestList.Length; i++)
     {
         HorseChestList[i] = "";
     }
     clear();
     allVisInit();
     Config config = new Config();
     mcVersion = config.getSetting("[Personalize]", "MCVersion");
     if (mcVersion == "1.8")
     {
         tabSumosLHandBtn.IsEnabled = false;
         tabSumosLeftHand.IsEnabled = false;
         tabSumosDCLHand.IsEnabled = false;
         tabSumosGlowing.IsEnabled = false;
         tabSumosTagsCheck.IsEnabled = false;
         tabSumosRidingV1.IsEnabled = false;
         tabSumosRidingClear.IsEnabled = false;
         tabSumosElytra.IsEnabled = false;
     }
     else if (mcVersion == "latest")
     {
         HorseType.IsEnabled = false;
         HorseSaddle.IsEnabled = false;
     }
 }