This template is designed to help you create a new project quickly and efficiently. Follow the steps below to get started:
- Click
Use this templatebutton at the top right of the page. - Fill in the repository name and description. You can also choose to make it public or private.
- Click
Create repository from template.
- Clone the repository to your local machine using
git clone <repository-url>. - Open the project in your favorite IDE (e.g., IntelliJ IDEA, Eclipse).
- Update the
README.mdfile with your project's information. You can use the provided template as a starting point.- Replace
{ModName}with the name of your mod. - Replace
{Description}with a brief description of your mod. - Remove unused sections or add new ones as needed.
- Replace
{modrinth-project-id}with your Modrinth project ID. - Replace
{curseforge-project-id}with your CurseForge project ID. - Replace
{discord-id}with your Discord server ID.
- Replace
- Replace
- Update
src/main/pack.pngwith your mod's icon. The image should be 128x128 pixels or a power of 2 size (e.g., 256x256, 512x512). - Update
src/main/fabric.mod.json/src/main/META-INF/mods.toml/src/main/META-INF/neoforge.mods.tomlwith your mod's metadata.- Update the
id,name,version, anddescriptionfields. - (
fabric.mod.jsononly) Delete all comments in the file. - Add any required dependencies as needed.
- Delete unused mod loader files.
- Update the
- Add your content to the
src/main/dataorsrc/main/assetsdirectory. This is where you will place your mod's resources, such as textures, models, and data packs. - (Forge Only) Update
src/main/pack.mcmetawith your mod's pack metadata. This file is used to define the pack format and other settings for your mod.
- Make sure you have the required dependencies installed. You need to have Python installed on your system.
- Open a terminal in your project directory.
- Edit
src/tool/__main__.pyto uncomment the build command you want to package to (e.g., data_pack, resource_pack, or mod). - Run the build command using
python src/tool/__main__.py. - The built mod will be located in the
versions/directory.
- Remove All unused files and folders from the repository.
- Update the
.gitignorefile to exclude any files or directories you don't want to include in your repository. - Commit your changes and push them to your remote repository using
git add .,git commit -m "Initial commit", andgit push origin main. - (Optional) Create a new release on GitHub by going to the "Releases" tab and clicking "Draft a new release". Fill in the version number and any release notes, then click "Publish release".
- (Optional) Share your mod on social media or relevant forums to promote it and gather feedback from the community.
- (Optional) Create a wiki or documentation for your mod to help users understand how to use it and its features.