Skip to content
Public template

About

Example moddedmc.wiki project

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modded MC Wiki example project

Read the documentation Download the template

A starter template for documenting your project on the Modded MC Wiki. It includes a small wiki project for a dummy example mod with a both documentation and content pages.

Simply copy the wiki folder into your repository, replace the sample content with your own, and you have a working wiki!

Contents

wiki/
├── sinytra-wiki.json          Project metadata (ID, mod id, platforms)
├── docs/                      Documentation pages (good for guides and tutorials)
│   ├── _index.mdx             Entry page of your documentation
│   ├── _meta.json             Sidebar page names, order and icons
│   ├── getting_started.mdx
│   └── guides/
├── content/                   Content pages (good for blocks, items, entities and other objects)
│   ├── _meta.json
│   ├── blocks/
│   ├── materials/
│   └── tools/
├── assets/examplemod/
│   ├── item/                  Inventory item renders
│   └── lang/                  In-game item names
└── data/                      In-game mod data (usually exported or generated)
    ├── examplemod/
    │   ├── recipe/            Recipes in Minecraft's format
    │   └── properties/        Item properties shown in the page sidebar
    └── c/tags/                Item tags in Minecraft's format

The sample pages show the features and components you'll use most:

  • Link shortcuts to items ([](@examplemod:zinc_ingot)) and documentation pages ([]($getting_started))

  • Recipes from your data files: <PrefabObtaining /> and <PrefabUsage /> for content, and <ProjectRecipe>, <RecipeUsage> for docs

  • Callouts using GitHub's alert syntax (> [!TIP])

  • Figures using asset image (![A brass cog](@examplemod:item/brass_cog))

  • An item's changelog (history in wrench.mdx)

Using this template

  1. Copy the wiki folder and .github/workflows/deploy-wiki.yml into your repository.

  2. In wiki/sinytra-wiki.json, set id to your project ID, modid to your mod ID (leave it out for non-mods), and platforms to your Modrinth/CurseForge project slugs.

  3. Rename the examplemod folders under assets and data to your mod ID, and also update the IDs in pages and data files.

  4. Replace the sample pages, textures, recipes and names with your own. You can copy recipes, tags and language files directly from your mod's resources. (hint: try using our exporter)

  5. Commit and push your changes, then register the project in the developer portal with your repository URL, branch, and /wiki as the path to the documentation root.

Run the local previewer to check your pages before publishing.

Automatic deployment

The deploy-wiki.yml workflow deploys the wiki whenever files under wiki/ change on the master branch. It uses GitHub OIDC, so no secrets are needed.

Update it to match your project's information:

  • project: your wiki project ID
  • branches: the branch you registered on the wiki. Deploys from other branches are rejected.

Gradle integration

For an improved experience, we recommend installing our Gradle plugin in your modding environment. It allows you to run a local wiki preview as well as easily export your mod's assets with zero configuration required.

plugins {
    id 'org.moddedmc.wiki.toolkit' version '0.6.+'
}

wiki {
    docs {
        examplemod {
            root = file('wiki')
        }
    }
}

Check out the Wiki Toolkit repository for all configuration options.

Exports

Automatic, zero-configuration exports using our exporter mod are available on all popular platforms and recent game versions.

To run the export, run ./gradlew runWikiExportClient and wait for the game to close automatically. The exporter mod will generate and export the following:

  • Inventory renders of mod blocks and items (placed under assets/modid/item/)
  • Language files (placed under assets/modid/lang/)
  • Item metadata (placed under data/modid/properties/)

Exported files will be placed in their respective locations based on the configured wiki root. Check the mod's repository for available configuration options.

Local preview

Run the previewDocs task to start the previewer. Once ready, it will be available at http://localhost:3000.

Learn more

Read the wiki documentation to learn more about wiki features:

License

This template is released under CC0 1.0. Copy and adapt it freely, no attribution is required.

The textures in wiki/assets/examplemod/item are sourced from malcolmriley/unused-textures by Malcolm Riley, licensed under CC BY 4.0.

About

Example moddedmc.wiki project

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages