Wiki 9Minecraft Wiki 9Minecraft

Creating Custom Moon Phases with Datapacks

Java EditionModGuides 4FAQ 10Related mods 60
DownloadEnhanced Celestials 2 Core Mod

Get the files on 9Minecraft

Contents (3)
  1. Datapack Structure Basics
  2. Setting Up Your Datapack
  3. Defining Lunar Events

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.

More guides for this mod