CFPAOrg / CFPAOrg/Minecraft-Mod-Language-Package

packer & mod feat:小版本资源隔离支持

Open
#5,743 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.2k
Forks
1.1k
Avg merge
6d 8h
Merged PRs (30d)
4

Description

目录结构约定

默认(无小版本区分)

projects/1.19/assets/[ProjectID]/[Namespace]

需要区分小版本时,可选增加小版本目录

projects/1.19/assets/[ProjectID]/(1.19.2)/[Namespace]
  • (1.19.2) 为小版本标识,格式与游戏版本一致
  • 小版本目录为可选项
  • 未添加小版本目录时,行为与现有逻辑完全一致

packer 行为

  1. 若不存在小版本目录:

    • 按现有逻辑生成单一资源包
  2. 若存在小版本目录:

    • 为每个小版本独立生成资源包(如 Package-1.19.2
    • 小版本资源包仅包含位于对应小版本目录下的资源
    • 未标注小版本的资源仍归入通用资源包,大版本资源包。

mod 行为

  • 根据当前运行的小版本:

    • 自动合并通用资源包与对应小版本资源包
  • 小版本资源包中的资源对同路径资源具有覆盖优先级


适用范围

  • 本 feat 仅适用于同一大版本下同时维护两个及以上小版本的场景
  • 对无小版本区分需求的项目无影响

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the packer and mod entry points responsible for resource-pack generation and runtime selection. Done means optional small-version directories produce separate packages, while the mod combines the general and matching version packages with version-specific resources taking precedence.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.