Пример #1
0
        private void tabOther1RideHide_Click(object sender, RoutedEventArgs e)
        {
            if (mcVersion == "1.8" || mcVersion == "1.9/1.10")
            {
                string finalStr = OtherHelpSofaHelp1 + "\r\n/scoreboard objectives add MCHSofa dummy\r\n\r\n";
                finalStr += OtherHelpSofaHelp2 + "\r\n/scoreboard players set @e[type=EntityHorse] MCHSofa 1 {CustomName:\"" + OtherHelpSofa1 + "\"}\r\n" + OtherHelpSofaOR + "\r\n/scoreboard players set @e[type=EntityHorse] MCHSofa 1 {CustomName:\"" + OtherHelpSofa2 + "\"}";
                if (tabOther1RideName.Text != OtherHelpSofa1 && tabOther1RideName.Text != OtherHelpSofa2)
                {
                    finalStr += "\r\n" + OtherHelpSofaOR + "\r\n/scoreboard players set @e[type=EntityHorse] MCHSofa 1 {CustomName:\"" + tabOther1RideName.Text + "\"}";
                }
                finalStr += "\r\n\r\n" + OtherHelpSofaHelp3 + "\r\n/effect @e[type=EntityHorse,score_MCHSofa_min=1] minecraft:invisibility 1000000 1 true";
                finalStr += "\r\n\r\n" + OtherHelpSofaHelp4;
            }
            else
            {
                string finalStr = OtherHelpSofaHelp1 + "\r\n/scoreboard objectives add MCHSofa dummy\r\n\r\n";
                finalStr += OtherHelpSofaHelp2 + "\r\n/scoreboard players set @e[type=minecraft:horse] MCHSofa 1 {CustomName:\"" + OtherHelpSofa1 + "\"}\r\n" + OtherHelpSofaOR + "\r\n/scoreboard players set @e[type=minecraft:horse] MCHSofa 1 {CustomName:\"" + OtherHelpSofa2 + "\"}";
                if (tabOther1RideName.Text != OtherHelpSofa1 && tabOther1RideName.Text != OtherHelpSofa2)
                {
                    finalStr += "\r\n" + OtherHelpSofaOR + "\r\n/scoreboard players set @e[type=minecraft:horse] MCHSofa 1 {CustomName:\"" + tabOther1RideName.Text + "\"}";
                }
                finalStr += "\r\n\r\n" + OtherHelpSofaHelp3 + "\r\n/effect @e[type=minecraft:horse,score_MCHSofa_min=1] minecraft:invisibility 1000000 1 true";
                finalStr += "\r\n\r\n" + OtherHelpSofaHelp4;
            }
            Check checkbox = new Check();

            checkbox.showText(finalStr);
            checkbox.ShowDialog();
        }
Пример #2
0
        private void tabOther1RideCreate_Click(object sender, RoutedEventArgs e)
        {
            string finalStr = "";

            if (mcVersion == "1.8" || mcVersion == "1.9/1.10")
            {
                finalStr = "/summon EntityHorse ";
            }
            else
            {
                finalStr = "/summon minecraft:horse ";
            }
            string pos = "~ ~-2.5 ~";

            if (tabOther1RideSel.SelectedIndex == 0)
            {
                pos = "~ ~-2.5 ~-0.15";
            }
            else if (tabOther1RideSel.SelectedIndex == 1)
            {
                pos = "~ ~-2.5 ~0.15";
            }
            else if (tabOther1RideSel.SelectedIndex == 2)
            {
                pos = "~-0.15 ~-2.5 ~";
            }
            else
            {
                pos = "~0.15 ~-2.5 ~";
            }
            finalStr += pos + " {ActiveEffects:[{Id:14,Amplifier:1,Duration:99999999,ShowParticles:0b}],Invulnerable:1,Silent:1,NoAI:1,Tame:1b";
            if (tabOther1RideRi.IsChecked.Value)
            {
                finalStr += ",Saddle:1b";
            }
            else
            {
                finalStr += ",Saddle:0b";
            }
            if (tabOther1RideChest.IsChecked.Value)
            {
                finalStr += ",CustomName:\"" + tabOther1RideName.Text + "\",Type:1,ChestedHorse:1b";
            }
            else
            {
                finalStr += ",CustomName:\"" + tabOther1RideName.Text + "\",Type:0";
            }
            finalStr += "}";
            Check checkbox = new Check();

            checkbox.showText(finalStr);
            checkbox.ShowDialog();
        }
Пример #3
0
        private void tabOther1GatewayBtn_Click(object sender, RoutedEventArgs e)
        {
            string finalStr = "/setblock ~ ~-2 ~ minecraft:end_gateway 0 replace {ExitPortal:{X:" + tabOther1GatewayX.Value.Value + ",Y:" + tabOther1GatewayY.Value.Value + ",Z:" + tabOther1GatewayZ.Value.Value + "}";

            if (tabOther1GatewayIsExact.IsChecked.Value)
            {
                finalStr += ",ExactTeleport:1b}";
            }
            else
            {
                finalStr += "}";
            }
            Check checkbox = new Check();

            checkbox.showText(finalStr);
            checkbox.ShowDialog();
        }