How theshovel/irongingot works
irongingot is a low-memory Minecraft 1.21.8 server. A client connects to the server loop, whose packet handling and tick processing drive gameplay and world updates; chunk requests are generated and streamed back to clients. The graph also preserves the documented configuration, persistence, dimensions, structures, crafting, creative mode, and optional Mojang skin capabilities. Relationships use the supplied source index and excerpts; unsampled implementation details are not assumed beyond those references and README statements.
Main entry points: main.c Server loop · packets.c Packet handling · procedures.c Gameplay procedures · worldgen.c Terrain and dimensions
Components 16
Connections and Protocol
- Server loop
src/main.c - Packet handling
src/packets.c - Socket and packet I/O
src/tools.c
Gameplay Systems
- Gameplay procedures
src/procedures.c - Crafting and smelting
src/crafting.c - Creative inventory
src/creative_mode.c - Block interactions
src/special_block.c
World and Chunks
- Terrain and dimensions
src/worldgen.c - Perlin noise
src/noise/perlin.c - Structures
src/structures.c - Chunk generation and cache
src/chunk_generator.c
Runtime Services
- World persistence
src/serialize.c - Server configuration
src/config.c - Thread utilities
src/async.c - Mojang skin lookup
src/mojang.c
Other components
- Minecraft client
Connections 21
- Minecraft client → Server loop: connects
src/main.c - Server loop → Minecraft client: serves
README.md - Server loop → Packet handling: dispatches packets
src/main.c - Packet handling → Socket and packet I/O: reads and writes
src/packets.c - Packet handling → Gameplay procedures: handles gameplay
src/packets.c - Packet handling → Crafting and smelting: requests recipes
src/packets.c - Packet handling → Creative inventory: handles inventory
src/packets.c - Packet handling → Block interactions: handles interactions
src/packets.c - Server loop → Gameplay procedures: ticks gameplay
src/main.c - Gameplay procedures → Terrain and dimensions: queries world
src/procedures.c - Gameplay procedures → Structures: uses structure data
src/procedures.c - Gameplay procedures → Block interactions: uses block state
src/procedures.c - Gameplay procedures → World persistence: saves world
src/procedures.c - Server loop → Chunk generation and cache: streams chunks
src/main.c - Chunk generation and cache → Terrain and dimensions: generates terrain
src/chunk_generator.c - Terrain and dimensions → Perlin noise: samples noise
src/worldgen.c - Terrain and dimensions → Structures: generates structures
src/worldgen.c - Server loop → Server configuration: loads settings
src/main.c - Server loop → World persistence: loads and saves
README.md - Chunk generation and cache → Thread utilities: uses worker pool
src/chunk_generator.c - Server loop → Mojang skin lookup: fetches skins
README.md