public override void Start(ICoreAPI api)
        {
            api.RegisterBlockClass("BlockTeleport", typeof(BlockTeleport));
            api.RegisterBlockEntityClass("BETeleport", typeof(BlockEntityTeleport));

            TreeAttribute.RegisterAttribute(Constants.ATTRIBUTES_ID + 1, typeof(BlockPosArrayAttribute));

            Config.Current = api.LoadOrCreateConfig <Config>(ConstantsCore.ModId + ".json");
        }
Beispiel #2
0
        }                                                                 // Interact ring

        public override void Start(ICoreAPI api)
        {
            Config.Current = api.LoadOrCreateConfig <Config>(ConstantsCore.ModId + ".json");
            if (Config.Current.CreateWaypoint.Val == "auto")
            {
                Config.Current.CreateWaypoint.Val = api.ModLoader.IsModEnabled("streamdc") ? "none" : "always";
            }
            api.RegisterEntityBehaviorClass("playercorpseondeath", typeof(EntityBehaviorPlayerCorpseOnDeath));
            api.RegisterEntity("EntityPlayerCorpse", typeof(EntityPlayerCorpse));
        }
Beispiel #3
0
        public override void Start(ICoreAPI api)
        {
            Config.Current = api.LoadOrCreateConfig <Config>(Mod.Info.ModID + ".json");

            api.World.Config.SetBool(Mod.Info.ModID + ":CorpseCompassEnabled", Config.Current.CorpseCompassEnabled.Value);

            api.RegisterEntityBehaviorClass("playercorpseondeath", typeof(EntityBehaviorPlayerCorpseOnDeath));
            api.RegisterEntity("EntityPlayerCorpse", typeof(EntityPlayerCorpse));
            api.RegisterItemClass("ItemCorpseCompass", typeof(ItemCorpseCompass));
        }
Beispiel #4
0
        public override void Start(ICoreAPI api)
        {
            this.api = api;

            Config.Current = api.LoadOrCreateConfig <Config>(ConstantsCore.ModId + ".json");
        }
Beispiel #5
0
 public override void StartPre(ICoreAPI api)
 {
     GraveModConfig.Current = api.LoadOrCreateConfig <GraveModConfig>("GraveModConfig.json");
 }