chore(template): init

This commit is contained in:
omo50
2026-04-14 21:58:41 -06:00
parent cd0bd12c8a
commit 4dc7d2e260
2 changed files with 67 additions and 0 deletions

View File

@@ -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)

View File

@@ -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"
}