private string[] globalFrameItem = { "", "", "", "" };//count damage id tag

        private void tabSumosPotionGetBtn_Click(object sender, RoutedEventArgs e)
        {
            Potion pbox = new Potion();
            pbox.ShowDialog();
            string[] temp = pbox.returnStr();
            if (temp[0] != "")
            {
                globalPotionString = temp[0];
            }
            globalPotionDamage = int.Parse(temp[2]);
            if (mcVersion == "1.8")
            {
                globalSumosPotion = "{Potion:{id:\"minecraft:splash_potion\",Damage:" + globalPotionDamage + "s,Count:1b,tag:{CustomPotionEffects:[" + globalPotionString + "]}}}";
            }
            else
            {
                globalSumosPotion = "{Potion:{id:\"minecraft:splash_potion\",Damage:0s,Count:1b,tag:{CustomPotionEffects:[" + globalPotionString + "]}}}";
            }
        }
 private string[] tabVillagerGetPotion()
 {
     globalPotionString = "";
     globalPotionNBT = "";
     globalPotionDamage = 0;
     Potion pbox = new Potion();
     pbox.ShowDialog();
     string[] temp = pbox.returnStr();
     if (temp[0] != "")
     {
         globalPotionString = temp[0];
     }
     if (temp[1] != "")
     {
         globalPotionNBT = "," + temp[1];
     }
     globalPotionDamage = int.Parse(temp[2]);
     string[] remeta = { temp[4], temp[3], temp[2] };
     return remeta;
 }
 private void tabSpawnerPotionGetBtn_Click(object sender, RoutedEventArgs e)
 {
     Potion pbox = new Potion();
     pbox.ShowDialog();
     string[] temp = pbox.returnStr();
     if (temp[0] != "")
     {
         globalPotionString = temp[0];
     }
 }
 private void potionBtn_Click(object sender, RoutedEventArgs e)
 {
     this.Hide();
     Potion potionbox = new Potion();
     potionbox.ShowDialog();
     this.Show();
 }