mirror of
https://github.com/Nostalgica-Reverie/Content-Monorepo.git
synced 2026-05-09 00:24:15 +00:00
chore(template): init
This commit is contained in:
46
tools/templates/manifest.rb
Normal file
46
tools/templates/manifest.rb
Normal 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)
|
||||
21
tools/templates/template-unfinished.rb
Normal file
21
tools/templates/template-unfinished.rb
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user