Example #1
0
        public override void OnStart()
        {
            var macro = new MacroSync();

            RegisterTask(new Tunnel(Setting[0].Get <int>(), PATTERNS[Setting[1].Get <int>()],
                                    Setting[3].Get <bool>(), Setting[4].Get <bool>(), Setting[5].Get <bool>(), Setting[6].Get <bool>(),
                                    Setting[7].Get <bool>(), Setting[8].Get <bool>(), Setting[9].Get <bool>(), macro));
            RegisterTask(new InventoryMonitor(Setting[2].Get <string>(), macro));
        }
        public override void OnStart()
        {
            var group = (IParentSetting)Setting.Get("Ore");
            var macro = new MacroSync();

            RegisterTask(new Tunnel(Setting.At(0).Get <int>(), PATTERNS[Setting.At(1).Get <int>()],
                                    group.GetValue <bool>("Diamond ore"), group.GetValue <bool>("Emerald ore"), group.GetValue <bool>("Iron ore"), group.GetValue <bool>("Gold ore"),
                                    group.GetValue <bool>("Redstone ore"), group.GetValue <bool>("Lapis Lazuli ore"), group.GetValue <bool>("Coal ore"), macro));
            RegisterTask(new InventoryMonitor(Setting.At(2).Get <string>(), macro));
        }