π Getting Started#
This guide will walk you through setting up a local development environment to build, test, and contribute to our modules.
βοΈ Prerequisites#
Before you start, make sure your system is ready by completing the following steps:
Install UV, a Python package and project manager.
Clone the repository, if you havenβt done this before, follow this step-by-step tutorial: First Contributions Guide. Once cloned, open the project folder in your preferred code editor.
π¨ Building Modules#
The modules directory contains the source files for all modules. Use the following commands to manage and build them efficiently:
|
Build all modules |
|
Monitor changes and rebuild modules automatically |
|
Build or watch only the specified modules |
|
Link the generated resource and data packs to a Minecraft world |
Watching Modules
Building modules can take some time. For a smoother experience, itβs recommended to only watch the module youβre currently working on: uv run modules watch <module>.
Linking Modules to Minecraft#
The link command allows you to integrate generated packs directly into a Minecraft world. Below are the options available for this command:
|
The name of the Minecraft world to link |
|
Path to the |
|
Path to the directory where data packs are stored |
|
Path to the directory where resource packs are stored |
This workflow demonstrates how to link and continuously test your modules directly in Minecraft:
# Link modules to a specific world
uv run link <world> --minecraft </path/to/.minecraft>
# Monitor changes and rebuild a module for the linked world
uv run modules watch <module>
π§ͺ Testing Modules#
Testing is a fundamental aspect of software development. It helps ensure the correctness of your code and can save you from potential bugs in the future.
To learn how to write and run tests for your modules, refer to the Debug Section.