# eedcd/fun-set architecture

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

- Interactive diagram: https://gitdiagram.com/eedcd/fun-set
- Repository: https://github.com/eedcd/fun-set

## Overview

This repository is a Minecraft world and datapack bundle, with a Lucky Pillars-style game runtime as its central product: players enter a lobby, configure or prepare a match, play through timed events, and reach win/draw handling. The tree also shows separate PvP, lobby, advancement, and movement datapacks, plus shared functions and world data. No README text or source excerpts were supplied, so runtime links are dashed and represent filename/tree-based inference, not verified calls.

Main entry points: [`map/datapacks/lp/data/lp/function/game/ongoing`](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/ongoing) (Match Gameplay), [`map/datapacks/lp/data/lp/function/game/prepare`](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/prepare) (Match Preparation), [`map/datapacks/lp/data/lp/function/game`](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game) (Game Control), [`map/datapacks/lp/data/lp/function/lobby`](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/lobby) (Match Lobby)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game["Match Runtime"]
  node_lp_lobby["Match Lobby"]
  node_lp_prepare["Match Preparation"]
  node_lp_play["Match Gameplay"]
  node_lp_events["Game Events"]
  node_lp_end["Match Results"]
  node_lp_control["Game Control"]
  node_game_functions["Game Functions"]
end

subgraph group_player_features["Player Features"]
  node_pvp_game["PvP Gameplay"]
  node_pvp_menu["PvP Menu"]
  node_fast_motion["Fast Motion"]
  node_lobby_pack["Lobby Experience"]
  node_advancements["Advancements"]
end

subgraph group_world["World Content"]
  node_world_maps[("World Map Data")]
end

subgraph group_shared["Shared Runtime"]
  node_shared_functions["Shared Functions"]
end

node_players(("Players"))
node_minecraft(("Minecraft Runtime"))

node_players -.->|"join"| node_lp_lobby
node_lp_lobby -.->|"prepare match"| node_lp_prepare
node_lp_prepare -.->|"start match"| node_lp_play
node_lp_play -.->|"run events"| node_lp_events
node_lp_play -.->|"check outcome"| node_lp_end
node_lp_control -.->|"manage lobby"| node_lp_lobby
node_lp_control -.->|"manage setup"| node_lp_prepare
node_lp_control -.->|"tick gameplay"| node_lp_play
node_players -.->|"use menu"| node_pvp_menu
node_pvp_menu -.->|"select mode"| node_pvp_game
node_players -.->|"activate movement"| node_fast_motion
node_players -.->|"enter lobby"| node_lobby_pack
node_minecraft -.->|"trigger criteria"| node_advancements
node_minecraft -.->|"load and tick"| node_game_functions
node_world_maps -.->|"supply map data"| node_lp_prepare
node_minecraft -.->|"load and tick"| node_shared_functions

click node_lp_lobby "https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/lobby"
click node_lp_prepare "https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/prepare"
click node_lp_play "https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/ongoing"
click node_lp_events "https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/ongoing/event"
click node_lp_end "https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/end"
click node_lp_control "https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game"
click node_pvp_game "https://github.com/eedcd/fun-set/tree/main/map/datapacks/pvp/data/pvp/function/game"
click node_pvp_menu "https://github.com/eedcd/fun-set/tree/main/map/datapacks/pvp/data/pvp/function/menu"
click node_fast_motion "https://github.com/eedcd/fun-set/tree/main/map/datapacks/FastMotion/data/motion/function"
click node_lobby_pack "https://github.com/eedcd/fun-set/tree/main/map/datapacks/lobby/data/lobby/function"
click node_advancements "https://github.com/eedcd/fun-set/tree/main/map/datapacks/main/data/main/function/advancement"
click node_world_maps "https://github.com/eedcd/fun-set/tree/main/map"
click node_game_functions "https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function"
click node_shared_functions "https://github.com/eedcd/fun-set/tree/main/map/datapacks/lib/data/dr/function"

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_lp_lobby,node_lp_prepare,node_lp_play,node_lp_events,node_lp_end,node_lp_control,node_game_functions toneBlue
class node_pvp_game,node_pvp_menu,node_fast_motion,node_lobby_pack,node_advancements toneAmber
class node_world_maps toneMint
class node_shared_functions toneRose
class node_players,node_minecraft toneIndigo
```

## Components

### Match Runtime

- [Match Lobby](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/lobby): `map/datapacks/lp/data/lp/function/lobby`
- [Match Preparation](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/prepare): `map/datapacks/lp/data/lp/function/game/prepare`
- [Match Gameplay](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/ongoing): `map/datapacks/lp/data/lp/function/game/ongoing`
- [Game Events](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/ongoing/event): `map/datapacks/lp/data/lp/function/game/ongoing/event`
- [Match Results](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game/end): `map/datapacks/lp/data/lp/function/game/end`
- [Game Control](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function/game): `map/datapacks/lp/data/lp/function/game`
- [Game Functions](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lp/data/lp/function): `map/datapacks/lp/data/lp/function`

### Player Features

- [PvP Gameplay](https://github.com/eedcd/fun-set/tree/main/map/datapacks/pvp/data/pvp/function/game): `map/datapacks/pvp/data/pvp/function/game`
- [PvP Menu](https://github.com/eedcd/fun-set/tree/main/map/datapacks/pvp/data/pvp/function/menu): `map/datapacks/pvp/data/pvp/function/menu`
- [Fast Motion](https://github.com/eedcd/fun-set/tree/main/map/datapacks/FastMotion/data/motion/function): `map/datapacks/FastMotion/data/motion/function`
- [Lobby Experience](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lobby/data/lobby/function): `map/datapacks/lobby/data/lobby/function`
- [Advancements](https://github.com/eedcd/fun-set/tree/main/map/datapacks/main/data/main/function/advancement): `map/datapacks/main/data/main/function/advancement`

### World Content

- [World Map Data](https://github.com/eedcd/fun-set/tree/main/map): `map`

### Shared Runtime

- [Shared Functions](https://github.com/eedcd/fun-set/tree/main/map/datapacks/lib/data/dr/function): `map/datapacks/lib/data/dr/function`

### Other components

- **Players**
- **Minecraft Runtime**

## Connections

- Players → Match Lobby: join
- Match Lobby → Match Preparation: prepare match
- Match Preparation → Match Gameplay: start match
- Match Gameplay → Game Events: run events
- Match Gameplay → Match Results: check outcome
- Game Control → Match Lobby: manage lobby
- Game Control → Match Preparation: manage setup
- Game Control → Match Gameplay: tick gameplay
- Players → PvP Menu: use menu
- PvP Menu → PvP Gameplay: select mode
- Players → Fast Motion: activate movement
- Players → Lobby Experience: enter lobby
- Minecraft Runtime → Advancements: trigger criteria
- Minecraft Runtime → Game Functions: load and tick
- World Map Data → Match Preparation: supply map data
- Minecraft Runtime → Shared Functions: load and tick
