diff --git a/tools/templates/manifest.rb b/tools/templates/manifest.rb new file mode 100644 index 000000000..a4ea37e73 --- /dev/null +++ b/tools/templates/manifest.rb @@ -0,0 +1,46 @@ +require 'json' + +class Project + attr_accessor :id, :name, :type, :version, :mc_versions, :modrinth_id, :curseforge_id, :author, :license + + def initialize + @mc_versions = [] + yield(self) if block_given? + end + + def to_h + { + id: @id, + name: @name, + type: @type, + version: @version, + mc_versions: @mc_versions, + modrinth_id: @modrinth_id, + curseforge_id: @curseforge_id, + author: @author, + license: @license + } + end +end + +rc_plus = Project.new do |p| + p.id = "rc-plus" + p.name = "Re-Console Plus" + p.type = "modpack" # choices: modpack, datapack, resourcepack + p.version = "26.04.1" + + # ordered by publish priority + p.mc_versions = [ + "1.21.11-mr", + "1.21.11-cf", + "1.21.10-mr", + "1.21.10-cf" + ] + + p.modrinth_id = "legacy-minecraft" + p.curseforge_id = "re-console" + p.author = "omo50, Cjnator38, Technocality" + p.license = "GPL-3.0" +end + +puts JSON.pretty_generate(rc_plus.to_h) diff --git a/tools/templates/template-unfinished.rb b/tools/templates/template-unfinished.rb new file mode 100644 index 000000000..9efb76a38 --- /dev/null +++ b/tools/templates/template-unfinished.rb @@ -0,0 +1,21 @@ +{ + id: "rc-plus", # project folder + name: "Re-Console Plus", # project name + type: "modpack", # this could be resourcepack, datapack, or modpack + + version: "26.04.1", + +# this will be the order versions are published in, so set it up properly. version is equal to folder name + mc_versions: [ + "1.21.11-mr", + "1.21.11-cf", + "1.21.10-mr", + "1.21.10-cf" + ], +# your page ids on mr and cf + modrinth_id: "legacy-minecraft", + curseforge_id: "re-console", + + author: "omo50, Cjnator38, Technocality", + license: "GPL-3.0" +} \ No newline at end of file