How teamtwilight/twilightforest-fabric works
Twilight Forest is a Minecraft mod that adds a themed exploration dimension and associated blocks, items, creatures, structures, progression, and client presentation. The broad user journey is entering the dimension, exploring generated locations, encountering its content, and progressing through rewards; the supplied README identifies the mod but does not document that runtime sequence, so those links are marked unverified. Source excerpts support specific registration and template-marker relationships; many other runtime connections are left out because their implementations were not sampled.
Main entry points: world Twilight Forest · TemplateMarkerHandlerGenerator.java Marker data · TFBlocks.java Blocks · TFItems.java Items and gear
Components 19
Gameplay content
- Bosses and creatures
src/main/java/twilightforest/entity - Blocks
src/main/java/twilightforest/init/TFBlocks.java - Items and gear
src/main/java/twilightforest/init/TFItems.java - Traveler modifiers
src/main/java/twilightforest/init/custom/TravellersModifiersManager.java - Exploration maps
src/main/java/twilightforest/item/mapdata/MapDataManager.java
World and progression
- Twilight Forest
src/main/java/twilightforest/world - Biomes and terrain
src/main/java/twilightforest/world/components/layer/BiomeDensitySource.java - Structures
src/main/java/twilightforest/world/components/structures - Template markers
src/main/java/twilightforest/world/components/structures/markerhandler/TemplateMarkerHandler.java - Advancements
src/main/java/twilightforest/advancements
Mod platform
- Mod registries
src/main/java/twilightforest/init/TFRegistries.java - Mod initialization
src/main/java/twilightforest/TFCommon.java
Client experience
- Client rendering
src/main/java/twilightforest/TFClient.java
Data generation
- Worldgen data
src/datagen/java/twilightforest/datagen/data/worldgen - Loot data
src/datagen/java/twilightforest/datagen/data/loot - Advancement data
src/datagen/java/twilightforest/datagen/data/TFAdvancementGenerator.java - Marker data
src/datagen/java/twilightforest/datagen/data/custom/TemplateMarkerHandlerGenerator.java - Recipes
src/datagen/java/twilightforest/datagen/data/recipes
Other components
- Minecraft player
Connections 16
- Minecraft player → Twilight Forest: explores
- Twilight Forest → Biomes and terrain: uses terrain
src/main/java/twilightforest/world/components/chunkgenerators/TerrainDensityRouter.java - Twilight Forest → Structures: generates
src/main/java/twilightforest/world/components/structures/markerhandler/SwitchMarkerHandler.java - Minecraft player → Bosses and creatures: encounters
- Minecraft player → Exploration maps: uses maps
- Minecraft player → Advancements: earns progress
- Mod initialization → Mod registries: initializes
src/main/java/twilightforest/TFCommon.java - Blocks → Items and gear: registers block items
src/main/java/twilightforest/init/TFBlocks.java - Traveler modifiers → Mod registries: looks up registry
src/main/java/twilightforest/init/custom/TravellersModifiersManager.java - Marker data → Template markers: creates handlers
src/datagen/java/twilightforest/datagen/data/custom/TemplateMarkerHandlerGenerator.java - Marker data → Blocks: uses block states
src/datagen/java/twilightforest/datagen/data/custom/TemplateMarkerHandlerGenerator.java - Marker data → Loot data: references loot keys
src/datagen/java/twilightforest/datagen/data/custom/TemplateMarkerHandlerGenerator.java - Worldgen data → Twilight Forest: supplies worldgen
- Advancement data → Advancements: defines criteria
src/datagen/java/twilightforest/datagen/data/TFAdvancementGenerator.java - Recipes → Items and gear: defines recipes
src/datagen/java/twilightforest/datagen/data/recipes/CraftingGenerator.java - Client rendering → Minecraft player: presents visuals