# lanlan3292/lrp architecture

> Architecture diagram of the GitHub repository lanlan3292/lrp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lanlan3292/lrp
- Repository: https://github.com/lanlan3292/lrp

## Overview

1. This repository is a Minecraft resource pack, not an application. The root-level `pack.mcmeta` is the pack entrypoint, and the content is almost entirely assets: models, textures, fonts, language files, and OptiFine-style custom item/connected-texture definitions.

2. The pack is organized as a layered asset system. `global/` contains the shared baseline assets that apply across supported Minecraft versions and mod integrations. The versioned folders (`v16_19`, `v16_47`, `v16_52`, `v53_now`, plus `cit_v16_47`, `cit_v48_now`) act as compatibility overlays for different Minecraft/resource-pack generations.

3. `global/assets/minecraft/...` is the main vanilla override layer. It includes blockstates, block models, item models, fonts, GUI sprites, and many texture replacements for vanilla blocks/items. This is the “core skin” of the pack that changes how the base game looks everywhere else.

4. The pack heavily targets mod compatibility. Under `global/assets/*` there are asset namespaces for mods such as Create, JEI, Curios, Exposure, Farmer’s Delight, Supplementaries, Xaero’s minimap/better PvP, AE2, Better Advancements, and others. These folders indicate the pack supplies matching GUI textures, sprites, models, and item visuals for modded interfaces and items.

5. Custom-item rendering is split into two pipelines. The `cit/` and `cit_v16_47/` trees contain OptiFine CIT definitions: legacy `.properties` rules under `assets/minecraft/optifine/cit/...` plus corresponding custom item models/textures. In parallel, `cit_v48_now/` uses modern vanilla-style item model JSONs under `assets/minecraft/items/...`, which suggests a newer pack format path for clients that support the post-1.20.5 item model system.

6. The custom content itself is thematic and item-centric. Notable groups include alternate breads, sticks, totems of undying, paintings, figurines, maces, spawn eggs, and special items like `player_of_undying` and `moon_cow_spawn_egg`. These are backed by dedicated model trees and texture directories, often with multiple variants per item or language-specific variants.

7. `art_card/` is a separate font/resource subsystem. It contains Minecraft font include JSON and Photoshop source files, implying a custom typographic or card-like UI element rendered through the game font system rather than through normal item/block textures.

8. `backport/` is a compatibility shim. The presence of a `happy_ghast_spawn_egg` model suggests this directory exists to backfill newer content or visual behavior into older environments, rather than being part of the main shared asset set.

9. The repository also maintains explicit version snapshots for changing Minecraft content. For example, `v16_19/assets/minecraft/texts/splashes.txt` and `v16_52/assets/minecraft/models/item/*.json` show that some asset definitions are pinned to specific game versions when the vanilla item/block set changes.

10. `global/assets/minecraft/optifine/ctm/...` is a large connected-texture subsystem. It defines CTM rules for glass, ores, grates, powder snow, and similar blocks, meaning visual adjacency logic is externalized into resource-pack config files rather than code.

11. Localization is built into the pack. `global/assets/minecraft/lang/` contains `en_us`, `ru_ru`, `zh_cn`, and `zh_tw`, and some mod namespaces also include localized strings. This means the pack is intended for multilingual distribution, not just texture replacement.

12. The repo includes design and source-art artifacts alongside final assets. `pack.psd`, the PSD files under `art_card`, and references like `.bbmodel` and `.gpl` files show a source-to-asset workflow where editable originals are stored with the exported resource-pack files.

13. Release automation is handled through GitHub Actions. `.github/workflows/modrinth.yml` and `monthly-pre-release.yml` indicate the pack is packaged and published automatically, likely to Modrinth and GitHub releases, with a recurring pre-release channel.

14. For architecture diagrams, the key boundary is: source art and version-specific definitions feed into a shared pack layout, which then fans out into vanilla overrides, mod integrations, custom-item rendering definitions, and compatibility overlays. The final output is a distributable Minecraft resource pack artifact, not a runtime service.

Main entry points: [`global/assets/minecraft`](https://github.com/lanlan3292/lrp/tree/main/global/assets/minecraft) (Vanilla overrides), [`pack.mcmeta`](https://github.com/lanlan3292/lrp/blob/main/pack.mcmeta) (pack.mcmeta), [`v16_52/assets/minecraft/models/item/moon_cow_spawn_egg.json`](https://github.com/lanlan3292/lrp/blob/main/v16_52/assets/minecraft/models/item/moon_cow_spawn_egg.json) (v16_52), [`cit/assets/minecraft/models/item`](https://github.com/lanlan3292/lrp/tree/main/cit/assets/minecraft/models/item) (CIT models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry & build"]
  node_pack_mcmeta["pack.mcmeta<br/>pack entry<br/>[pack.mcmeta]"]
  node_workflow_modrinth["Modrinth CI<br/>release workflow<br/>[modrinth.yml]"]
  node_workflow_monthly["Monthly prerelease<br/>release workflow"]
end

subgraph group_core["Core assets"]
  node_global_pack["Global layer<br/>shared assets"]
  node_minecraft_vanilla["Vanilla overrides<br/>minecraft assets"]
  node_ctm_system["CTM rules<br/>optifine ctm"]
  node_lang_system["Localizations<br/>language assets"]
  node_font_system["Fonts<br/>font assets"]
end

subgraph group_compat["Compatibility layers"]
  node_backport_layer["Backport<br/>compat shim"]
  node_version_v16_19["v16_19<br/>version overlay<br/>[splashes.txt]"]
  node_version_v16_52["v16_52<br/>version overlay"]
  node_version_v53_now["v53_now<br/>version overlay"]
end

subgraph group_cit["Custom items"]
  node_cit_legacy["Legacy CIT<br/>optifine cit"]
  node_cit_modern["Modern items<br/>vanilla item models"]
  node_cit_models["CIT models<br/>custom item models"]
end

subgraph group_mods["Mod integrations"]
  node_create_assets["Create<br/>mod assets"]
  node_ae2_assets["AE2<br/>mod gui assets"]
  node_curios_assets["Curios<br/>mod slot assets"]
  node_exposure_assets["Exposure<br/>mod gui assets"]
  node_farmersdelight_assets["Farmer's Delight<br/>mod gui assets"]
  node_jei_assets["JEI<br/>mod gui assets"]
  node_xaero_assets["Xaero UI<br/>mod ui assets"]
end

subgraph group_art["Source art"]
  node_art_card_font["Art card<br/>font subsystem<br/>[art_card.json]"]
  node_art_card_psd["Card PSDs<br/>source art"]
  node_pack_source["Source art<br/>editable sources<br/>[pack.psd]"]
end

node_pack_mcmeta -->|"loads"| node_global_pack
node_pack_mcmeta -->|"layers"| node_version_v16_19
node_pack_mcmeta -->|"layers"| node_version_v16_52
node_pack_mcmeta -->|"layers"| node_version_v53_now
node_pack_mcmeta -->|"enables"| node_cit_legacy
node_pack_mcmeta -->|"enables"| node_cit_modern
node_global_pack -->|"contains"| node_minecraft_vanilla
node_minecraft_vanilla -->|"includes"| node_ctm_system
node_minecraft_vanilla -->|"includes"| node_lang_system
node_minecraft_vanilla -->|"includes"| node_font_system
node_minecraft_vanilla -->|"integrates"| node_create_assets
node_minecraft_vanilla -->|"integrates"| node_ae2_assets
node_minecraft_vanilla -->|"integrates"| node_curios_assets
node_minecraft_vanilla -->|"integrates"| node_exposure_assets
node_minecraft_vanilla -->|"integrates"| node_farmersdelight_assets
node_minecraft_vanilla -->|"integrates"| node_jei_assets
node_minecraft_vanilla -->|"integrates"| node_xaero_assets
node_cit_legacy -->|"maps to"| node_cit_models
node_cit_modern -->|"maps to"| node_cit_models
node_cit_models -->|"extends"| node_art_card_font
node_art_card_font -->|"sources"| node_art_card_psd
node_pack_source -->|"sources"| node_art_card_psd
node_version_v16_52 -->|"backfills"| node_backport_layer
node_version_v16_19 -->|"specializes"| node_minecraft_vanilla
node_version_v16_52 -->|"specializes"| node_minecraft_vanilla
node_version_v53_now -->|"specializes"| node_minecraft_vanilla
node_workflow_modrinth -->|"packages"| node_pack_mcmeta
node_workflow_monthly -->|"packages"| node_pack_mcmeta

click node_pack_mcmeta "https://github.com/lanlan3292/lrp/blob/main/pack.mcmeta"
click node_workflow_modrinth "https://github.com/lanlan3292/lrp/blob/main/.github/workflows/modrinth.yml"
click node_workflow_monthly "https://github.com/lanlan3292/lrp/blob/main/.github/workflows/monthly-pre-release.yml"
click node_global_pack "https://github.com/lanlan3292/lrp/tree/main/global"
click node_minecraft_vanilla "https://github.com/lanlan3292/lrp/tree/main/global/assets/minecraft"
click node_ctm_system "https://github.com/lanlan3292/lrp/tree/main/global/assets/minecraft/optifine/ctm"
click node_lang_system "https://github.com/lanlan3292/lrp/tree/main/global/assets/minecraft/lang"
click node_font_system "https://github.com/lanlan3292/lrp/tree/main/global/assets/minecraft/font"
click node_create_assets "https://github.com/lanlan3292/lrp/tree/main/global/assets/create"
click node_ae2_assets "https://github.com/lanlan3292/lrp/tree/main/global/assets/ae2"
click node_curios_assets "https://github.com/lanlan3292/lrp/tree/main/global/assets/curios"
click node_exposure_assets "https://github.com/lanlan3292/lrp/tree/main/global/assets/exposure"
click node_farmersdelight_assets "https://github.com/lanlan3292/lrp/tree/main/global/assets/farmersdelight"
click node_jei_assets "https://github.com/lanlan3292/lrp/tree/main/global/assets/jei"
click node_xaero_assets "https://github.com/lanlan3292/lrp/tree/main/global/assets/xaerominimap"
click node_cit_legacy "https://github.com/lanlan3292/lrp/tree/main/cit_v16_47/assets/minecraft/optifine/cit"
click node_cit_modern "https://github.com/lanlan3292/lrp/tree/main/cit_v48_now/assets/minecraft/items"
click node_cit_models "https://github.com/lanlan3292/lrp/tree/main/cit/assets/minecraft/models/item"
click node_art_card_font "https://github.com/lanlan3292/lrp/blob/main/art_card/assets/minecraft/font/include/art_card.json"
click node_art_card_psd "https://github.com/lanlan3292/lrp/tree/main/art_card/assets/minecraft/textures/font/art_card"
click node_pack_source "https://github.com/lanlan3292/lrp/blob/main/pack.psd"
click node_backport_layer "https://github.com/lanlan3292/lrp/blob/main/backport/assets/minecraft/models/item/happy_ghast_spawn_egg.json"
click node_version_v16_19 "https://github.com/lanlan3292/lrp/blob/main/v16_19/assets/minecraft/texts/splashes.txt"
click node_version_v16_52 "https://github.com/lanlan3292/lrp/blob/main/v16_52/assets/minecraft/models/item/moon_cow_spawn_egg.json"
click node_version_v53_now "https://github.com/lanlan3292/lrp/blob/main/v53_now/assets/minecraft/models/item/moon_cow_spawn_egg.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pack_mcmeta,node_workflow_modrinth,node_workflow_monthly toneBlue
class node_global_pack,node_minecraft_vanilla,node_ctm_system,node_lang_system,node_font_system toneAmber
class node_backport_layer,node_version_v16_19,node_version_v16_52,node_version_v53_now toneMint
class node_cit_legacy,node_cit_modern,node_cit_models toneRose
class node_create_assets,node_ae2_assets,node_curios_assets,node_exposure_assets,node_farmersdelight_assets,node_jei_assets,node_xaero_assets toneIndigo
class node_art_card_font,node_art_card_psd,node_pack_source toneTeal
```

## Components

### Entry & build

Pack entrypoint and release automation

- [pack.mcmeta](https://github.com/lanlan3292/lrp/blob/main/pack.mcmeta): pack entry · Resource pack manifest and version gate · `pack.mcmeta`
- [Modrinth CI](https://github.com/lanlan3292/lrp/blob/main/.github/workflows/modrinth.yml): release workflow · Automated packaging and publishing pipeline · `.github/workflows/modrinth.yml`
- [Monthly prerelease](https://github.com/lanlan3292/lrp/blob/main/.github/workflows/monthly-pre-release.yml): release workflow · Recurring prerelease automation · `.github/workflows/monthly-pre-release.yml`

### Core assets

Shared baseline pack content

- [Global layer](https://github.com/lanlan3292/lrp/tree/main/global): shared assets · Baseline assets shared across versions and integrations · `global`
- [Vanilla overrides](https://github.com/lanlan3292/lrp/tree/main/global/assets/minecraft): minecraft assets · Core block, item, GUI, font, language, and texture overrides · `global/assets/minecraft`
- [CTM rules](https://github.com/lanlan3292/lrp/tree/main/global/assets/minecraft/optifine/ctm): optifine ctm · Connected-texture definitions for glass, ores, grates, and powder snow · `global/assets/minecraft/optifine/ctm`
- [Localizations](https://github.com/lanlan3292/lrp/tree/main/global/assets/minecraft/lang): language assets · Multilingual pack strings and bundled translations · `global/assets/minecraft/lang`
- [Fonts](https://github.com/lanlan3292/lrp/tree/main/global/assets/minecraft/font): font assets · In-game font definitions and includes · `global/assets/minecraft/font`

### Compatibility layers

Versioned overlays and backfills

- [Backport](https://github.com/lanlan3292/lrp/blob/main/backport/assets/minecraft/models/item/happy_ghast_spawn_egg.json): compat shim · Compatibility assets for backfilled newer content · `backport/assets/minecraft/models/item/happy_ghast_spawn_egg.json`
- [v16_19](https://github.com/lanlan3292/lrp/blob/main/v16_19/assets/minecraft/texts/splashes.txt): version overlay · Older-game snapshot for version-specific assets · `v16_19/assets/minecraft/texts/splashes.txt`
- [v16_52](https://github.com/lanlan3292/lrp/blob/main/v16_52/assets/minecraft/models/item/moon_cow_spawn_egg.json): version overlay · Version-pinned item model snapshot for newer content changes · `v16_52/assets/minecraft/models/item/moon_cow_spawn_egg.json`
- [v53_now](https://github.com/lanlan3292/lrp/blob/main/v53_now/assets/minecraft/models/item/moon_cow_spawn_egg.json): version overlay · Current-era item model snapshot · `v53_now/assets/minecraft/models/item/moon_cow_spawn_egg.json`

### Custom items

Legacy and modern item customization pipelines

- [Legacy CIT](https://github.com/lanlan3292/lrp/tree/main/cit_v16_47/assets/minecraft/optifine/cit): optifine cit · OptiFine property-driven custom item rules · `cit_v16_47/assets/minecraft/optifine/cit`
- [Modern items](https://github.com/lanlan3292/lrp/tree/main/cit_v48_now/assets/minecraft/items): vanilla item models · Post-1.20.5 item model definitions for custom items · `cit_v48_now/assets/minecraft/items`
- [CIT models](https://github.com/lanlan3292/lrp/tree/main/cit/assets/minecraft/models/item): custom item models · Custom models for breads, maces, totems, paintings, figurines, and spawn eggs · `cit/assets/minecraft/models/item`

### Mod integrations

Namespace-specific overrides for modded content

- [Create](https://github.com/lanlan3292/lrp/tree/main/global/assets/create): mod assets · Create block models, CTM, textures, and GUI sprites · `global/assets/create`
- [AE2](https://github.com/lanlan3292/lrp/tree/main/global/assets/ae2): mod gui assets · Applied Energistics 2 GUI and sprite overrides · `global/assets/ae2`
- [Curios](https://github.com/lanlan3292/lrp/tree/main/global/assets/curios): mod slot assets · Curios slot and GUI textures · `global/assets/curios`
- [Exposure](https://github.com/lanlan3292/lrp/tree/main/global/assets/exposure): mod gui assets · Exposure camera and interface textures · `global/assets/exposure`
- [Farmer's Delight](https://github.com/lanlan3292/lrp/tree/main/global/assets/farmersdelight): mod gui assets · Recipe book and GUI textures · `global/assets/farmersdelight`
- [JEI](https://github.com/lanlan3292/lrp/tree/main/global/assets/jei): mod gui assets · Just Enough Items GUI and atlas textures · `global/assets/jei`
- [Xaero UI](https://github.com/lanlan3292/lrp/tree/main/global/assets/xaerominimap): mod ui assets · Minimap and Better PvP language or GUI assets · `global/assets/xaerominimap`

### Source art

Editable source artifacts used to produce exported assets

- [Art card](https://github.com/lanlan3292/lrp/blob/main/art_card/assets/minecraft/font/include/art_card.json): font subsystem · Custom font include for card-like UI elements · `art_card/assets/minecraft/font/include/art_card.json`
- [Card PSDs](https://github.com/lanlan3292/lrp/tree/main/art_card/assets/minecraft/textures/font/art_card): source art · Editable Photoshop sources for the art card system · `art_card/assets/minecraft/textures/font/art_card`
- [Source art](https://github.com/lanlan3292/lrp/blob/main/pack.psd): editable sources · Pack PSD and model source artifacts · `pack.psd`

## Connections

- pack.mcmeta → Global layer: loads · Pack manifest points at the shared asset tree
- pack.mcmeta → v16_19: layers · Older version-specific assets are layered in
- pack.mcmeta → v16_52: layers · Version-specific assets are layered in
- pack.mcmeta → v53_now: layers · Current version-specific assets are layered in
- pack.mcmeta → Legacy CIT: enables · Legacy custom item rendering is part of the pack
- pack.mcmeta → Modern items: enables · Modern custom item rendering is part of the pack
- Global layer → Vanilla overrides: contains · Shared vanilla override layer
- Vanilla overrides → CTM rules: includes · Connected-texture behavior lives under vanilla overrides
- Vanilla overrides → Localizations: includes · Localized strings are bundled with the core pack
- Vanilla overrides → Fonts: includes · Font definitions are bundled with the core pack
- Vanilla overrides → Create: integrates · Create gets shared textures, models, and CTM rules
- Vanilla overrides → AE2: integrates · AE2 GUI assets are supplied by the pack
- Vanilla overrides → Curios: integrates · Curios slot and UI assets are supplied by the pack
- Vanilla overrides → Exposure: integrates · Exposure camera and GUI assets are supplied by the pack
- Vanilla overrides → Farmer's Delight: integrates · Farmer's Delight UI assets are supplied by the pack
- Vanilla overrides → JEI: integrates · JEI GUI assets are supplied by the pack
- Vanilla overrides → Xaero UI: integrates · Xaero UI assets are supplied by the pack
- Legacy CIT → CIT models: maps to · OptiFine rules resolve into custom models and textures
- Modern items → CIT models: maps to · Modern item model entries resolve into the same themed items
- CIT models → Art card: extends · Custom item themes connect into the font/card subsystem
- Art card → Card PSDs: sources · Editable artwork backs the font include
- Source art → Card PSDs: sources · Source art artifacts are stored alongside exported assets
- v16_52 → Backport: backfills · Later content is mirrored or adapted for older environments
- v16_19 → Vanilla overrides: specializes · Version snapshot overrides part of the shared core
- v16_52 → Vanilla overrides: specializes · Version snapshot overrides part of the shared core
- v53_now → Vanilla overrides: specializes · Current snapshot overrides part of the shared core
- Modrinth CI → pack.mcmeta: packages · Release workflow packages the resource pack
- Monthly prerelease → pack.mcmeta: packages · Prerelease workflow packages the resource pack
