Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes (TBD)
實做 1.20.3 以上的多重伺服器資源包功能,以減少資源包開發成本(一個基底變更將不需套用到所有資源包)。
派送資源包邏輯將不同,同時也改動設定檔。
改動如下:
config/resoruce_packs.json
在此統一管理資源包,以 Key-Value 的方式設定,Value 為資源包的 url。
和之前一樣,伺服器會依據 Url 自動計算 hash 與 UUID。
範例如下:
config/galaxies/*.json
移除原
ResourcePack
選項,更改為ResourcePacks
,型態改為陣列,並依照config/resoruce_packs.json
定義之資源包 Key 依序套用。清單中,第一個資源包會最先套用,接著套用第二個資源包,依此類推,若出現重複的資源包 Key,則以第一個出現的位置為主。
範例
config/resoruce_packs.json
定義之資源包如下base
lobby
在
config/galaxies/lobby.json
中,設定的ResourcePacks
為則最終套用之伺服器資源包與順序如下: