This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Minecraft modpack repository using Packwiz for mod management. The modpack "cwagecraft" is designed for Minecraft 1.20.1 with Forge 47.3.22 and includes a comprehensive collection of technology, magic, exploration, and quality-of-life mods.
- Setup/Reset Pack:
./setup.sh- Builds the modpack frommods.yaml- This is the ONLY command that should be used to modify the modpack
- All mod additions/removals are made by editing
mods.yamland re-running./setup.sh - Default behavior keeps pinned versions (no automatic updates)
- Use
./setup.sh --upgradeto update all mods to their latest compatible versions
- List Mods:
packwiz -y list- Shows all mods in the current pack - View Pack Info:
packwiz -y status- Shows pack status and mod count - Export Pack:
packwiz -y modrinth export --output cwagecraft.mrpack --restrictDomains=false
CRITICAL: Never use packwiz add, packwiz remove, or packwiz refresh commands directly. The setup.sh script is the single source of truth and handles all pack modifications. ONLY use packwiz commands for debugging/investigation - ALL modifications must go through setup.sh.
- Mods are defined declaratively in
mods.yamlwithmr(Modrinth id) and/orcf(CurseForge project id) - The setup script prefers Modrinth, with CurseForge as fallback
cwagecraft/- Main pack directory containing all configurationcwagecraft/mods/- Individual mod configuration files (*.pw.toml)cwagecraft/pack.toml- Main pack metadata and version infocwagecraft/index.toml- Hash-verified index of all pack filescwagecraft.mrpack- Exported modpack file for distribution
- MC Version: 1.20.1 (accepts 1.20, 1.20.1)
- Modloader: Forge 47.3.22
- Pack Format: packwiz:1.1.0
- Core compute/storage/power: OpenComputers 2, Refined Storage, Mekanism, Ender IO, Industrial Foregoing
- World/magic/QoL: Botania, Biomes O' Plenty, Waystones, JEI
- Food systems: Farmer's Delight, Croptopia, cooking mods
- Technology: Create, AE2, RFTools suite, Thermal series
- Magic/Adventure: Tinkers' Construct, Draconic Evolution, Mystical Agriculture
- Exploration/Mining: Advanced Mining Dimension, Iron Jetpacks
- Utilities: FTB suite (chunks, teams, essentials), inventory management
Each mod has a .pw.toml file containing:
- Mod metadata (name, filename)
- Download information (URL, hash verification)
- Update tracking (mod-id, version)
- Side specification (client/server/both)
- setup.sh is the SINGLE SOURCE OF TRUTH - Never bypass it with direct packwiz commands
- To add/remove mods: Edit setup.sh, then run
./setup.shto rebuild the entire pack - To change mod versions: Update the mod slug/ID in setup.sh and rebuild
- Hash verification ensures mod file integrity through SHA-512 checksums
- All mods are sourced from either Modrinth (preferred) or CurseForge
- The pack supports cross-dimensional power/item networks and advanced automation
- Focus is on providing comprehensive tech progression from early to late game
- Important:
grepis aliased toripgrep(rg) in this environment - use ripgrep syntax and arguments
- Modify pack: Edit
mods.yaml→ Run./setup.sh - Pinning: Versions are pinned via generated
.pw.tomlfiles; only change on--upgrade - Query pack: Use
packwiz -y listor similar informational commands - Never: Use
packwiz add/removeor modify .pw.toml files directly - Reload vs Rebuild: Do not rely on in-game
/reloadfor validating changes (including OpenLoader datapacks, KubeJS scripts, and config). Always rebuild the pack with./setup.shand reinstall the exportedcwagecraft.mrpackto apply changes.
- ALWAYS check exit status: The setup.sh script needs better exit status handling on failures
- ALWAYS validate cwagecraft.mrpack: If this file is 0 bytes after running setup.sh, the build has failed
- Licensing failures: Some mods have licensing restrictions that prevent export - check for manual download warnings in setup.sh output