Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Enhanced Celestials 2 Core Wiki › Guides › Creating Custom Moon Phases with Datapacks

Creating Custom Moon Phases with Datapacks

Datapack Structure Basics

Enhanced Celestials 2 Core Mod provides the framework for custom moon phases through datapacks. To create your own, you'll define lunar event data that the core mod's scheduler will execute.

Setting Up Your Datapack

1. Create a folder with your datapack name

2. Add a pack.mcmeta file describing your datapack

3. Create a data folder inside

4. Add namespace folders (e.g., data/yournamespace/)

5. Define lunar event files in the appropriate directories

Defining Lunar Events

Your datapack files should specify when events occur within the lunar cycle and what visual or mechanical changes they trigger. The core mod's scheduler reads these definitions and applies them at the correct times.

Refer to the mod's datapack documentation for the exact JSON structure required. Test your datapack by placing it in a world and using /reload to verify it loads without errors.