public Namespace(Datapack dp, string name) { this.Name = name; this.Datapack = dp; this.Path = dp.DataFolder.FullName + "/" + name; Directory.CreateDirectory(Path); Namespaces.Add(this); }
public void AddLoadObjective(Objective objective, string criteria) { if (LoadFunction == null) { LoadFunction = new MCFunction(new ResourceLocation(this, "init")); Datapack.CreateLoadTag(LoadFunction.Id); } LoadFunction.AddScoreCreation(objective, criteria); }