Skip to content

Player's Handbook 2024 Module Structure

Module Information

  • Full Name: D&D Player's Handbook
  • Module ID: dnd-players-handbook
  • Version: 2.1.0
  • Compatibility: Foundry V11+, D&D5e System 3.3.0+
  • Total Size: ~90 MB

Directory Structure

/mnt/data/foundry/Data/modules/dnd-players-handbook/
├── assets/           # Images and visual resources
├── lang/            # Localization files
├── packs/           # LevelDB compendium databases
├── module.json      # Module configuration
└── styles.css       # Custom styling

Compendium Packs Detail

1. Content Pack (packs/content/)

  • Type: JournalEntry
  • Database Size: ~4.9 MB
  • Contains: Core rulebook text including:
  • Character creation rules
  • Gameplay mechanics
  • Spellcasting rules
  • Combat procedures
  • Conditions and effects

2. Classes Pack (packs/classes/)

  • Type: Item
  • Database Size: ~6.7 MB
  • Contains: All 12 base classes with subclasses
  • Barbarian (Path of the Berserker, etc.)
  • Bard (College of Lore, etc.)
  • Cleric (Life Domain, etc.)
  • Druid (Circle of the Land, etc.)
  • Fighter (Champion, etc.)
  • Monk (Way of the Open Hand, etc.)
  • Paladin (Oath of Devotion, etc.)
  • Ranger (Hunter, etc.)
  • Rogue (Thief, etc.)
  • Sorcerer (Draconic Bloodline, etc.)
  • Warlock (The Fiend, etc.)
  • Wizard (School of Evocation, etc.)

3. Origins Pack (packs/origins/)

  • Type: Item
  • Database Size: ~1.5 MB
  • Contains: Character origins combining backgrounds and species
  • Backgrounds with mechanical benefits
  • Species traits and abilities
  • Starting equipment options

4. Feats Pack (packs/feats/)

  • Type: Item
  • Database Size: ~1.2 MB
  • Contains: Character feats
  • General feats
  • Origin feats
  • Epic boons (20th level+)

5. Spells Pack (packs/spells/)

  • Type: Item
  • Database Size: ~5.8 MB
  • Contains: Complete spell compendium
  • Cantrips through 9th level spells
  • Class spell lists
  • Ritual spells
  • Spell descriptions and mechanics

6. Equipment Pack (packs/equipment/)

  • Type: Item
  • Database Size: ~2.3 MB
  • Contains:
  • Weapons (simple, martial)
  • Armor (light, medium, heavy, shields)
  • Adventuring gear
  • Tools and kits
  • Trade goods
  • Mounts and vehicles

7. Tables Pack (packs/tables/)

  • Type: RollTable
  • Database Size: ~850 KB
  • Contains: Random generation tables
  • Trinkets
  • Character bonds/ideals/flaws
  • Wild magic effects
  • Other randomization tables

8. Actors Pack (packs/actors/)

  • Type: Actor
  • Database Size: ~1.1 MB
  • Contains: Pre-generated characters
  • Example characters for each class
  • Quick-start characters
  • NPCs referenced in the PHB

Asset Organization

Images (assets/)

  • Tokens: Character and creature tokens
  • Portraits: Character artwork
  • Items: Equipment and spell icons
  • UI Elements: Interface enhancements

File Formats

  • LDB Files: Binary database storage
  • WebP: Primary image format (lossy/lossless compression)
  • JPEG: Secondary image format
  • PNG: Transparency support
  • SVG: Vector graphics for icons

Database File Structure

Example LevelDB Files

packs/spells/
├── 000005.ldb     (674 KB - main data)
├── 000010.ldb     (97 KB - additional data)
├── CURRENT        (16 bytes - current manifest)
├── LOCK           (0 bytes - lock file)
├── LOG            (variable - operation log)
└── MANIFEST-000009 (286 bytes - file manifest)

Integration Points

  • System Integration: Extends dnd5e system base functionality
  • Compendium Links: Cross-references between packs
  • Rules Automation: Integrated with Foundry's dice and automation systems
  • Character Sheet: Full integration with D&D 5e character sheets

Content Identifiers

All PHB content is tagged with: - Source: SOURCE.BOOK.PHB2024 - System: dnd5e - Module: dnd-players-handbook