Back to mods
Deimos project artwork

Modrinth · Minecraft mod

Deimos

Configuration and data generation library

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Deimos release should I use?

Updated last month
Latest stable file 26.2-neoforge-2.7
Game version 26.2
Loader NeoForge

Deimos 26.2-neoforge-2.7 targets 26.2 with NeoForge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Deimos required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Deimos 26.2-neoforge-2.7 need?

26.2-neoforge-2.7. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Deimos without breaking your instance.

Built for Deimos 26.2-neoforge-2.7. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 26.2-neoforge-2.7. It targets 26.2 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 26.2-neoforge-2.7. It opens that exact file at the source.

About this project

What does Deimos add?

Title

Discord Support me on Patreon CurseForge Modrinth

Deimos is a data generation and configuration Minecraft library. With it, you can generate config files and display them in-game natively on Forge and Neoforge or with the help of Mod Menu on Fabric. Deimos allows you to create new recipes when the game starts, which makes them configurable. This also means you don't have to use JSON files, and changing Minecraft versions becomes significantly easier and less painful.

The configuration part of this library is based on MidnightLib by Motschen.

I made this mod to simplify my mods' development and allow me to use just one config library across all mod loaders and Minecraft versions. So if you want to see some examples of how to use this library in the wild you can check out the mods I made.

Laser Bridges & Doors Wishful Recipes More Music Discs Server-Side Horror EXP Counter Fire Arrows Ignite Fire Flat EXP Costs Lava Turns Sand into Glass Cooked Carrots Husks Drop Sand

For developers

Below are the instructions for setting up and using Deimos. For more details about this library, be sure to check out its GitHub page.

Setup

You can either use my IntelliJ templates which generate a new MultiLoader project with Deimos preconfigured, or follow these instructions to set it up manually:

In build.gradle

repositories {
    maven {
        url = "https://api.modrinth.com/maven"
    }
}

Forge and Neoforge:

dependencies {
    implementation "maven.modrinth:deimos:${project.deimos_version}"
}

Fabric:

dependencies {
    modImplementation "maven.modrinth:deimos:${project.deimos_version}"
    //if you want to use modmenu
    modCompileOnly "com.terraformersmc:modmenu:${project.modmenu_version}"
}

if you want to use the mod menu functionality you need to add a new repository:

repositories {
    maven {
        name = "Terraformers"
        url = "https://maven.terraformersmc.com/"
    }
}

You can find the specific Deimos version you need on Modrinth

How to use it

Creating configs

You can add configs in a class that extends DeimosConfig:

public class TestConfig extends DeimosConfig {
    @Entry public static int test_int = 6;
    @Entry public static List<String> test_string_list = Lists.newArrayList(
            "minecraft:acacia_planks", "minecraft:andesite");
}

And then in your initialize method you need to call DeimosConfig.init like this:

DeimosConfig.init(MOD_ID, TestConfig.class);

Adding new recipes

To add new recipes you call methods from DeimosRecipeGenerator in your initialize method. You can add shapeless crafting, shaped crafting, smelting, smoking, blasting, campfire and stone cutting recipes. Here are some examples:

DeimosRecipeGenerator.createSmeltingJson(TestConfig.test_string_list.get(0), TestConfig.test_string_list.get(1), TestConfig.test_int, 0.5F);

DeimosRecipeGenerator.createShapedRecipeJson(
Lists.newArrayList('#'),
Lists.newArrayList(ResourceLocation.parse("sand")),
Lists.newArrayList("item"),
Lists.newArrayList(
"# ",
" #"
),
ResourceLocation.parse("stone"), 1);

Notice that you can use values from your config file. If the player changes them and restarts the game, the recipes will also change. This even works with modded items.

Project description from Modrinth.

Pick your setup

Deimos by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

106 available setups

Showing the newest 12 of 30 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Deimos versions and loaders

100 of 100 releases match

Looking for an older file? The official Modrinth project page is in Resources.