Skip to content

mim1q/RuntimeDatagen

Repository files navigation

Runtime Datagen

A cursed mod that allows you to automatically run and reload datagen from inside your world.

The mod's functionality is only enabled when you are in a development environment.

Installation

You have two options, either:

  1. Install the mod manually from GitHub Releases
  2. Add the mod as a development-only dependency in your gradle file:
repositories {
  maven("https://maven.mim1q.dev")
}

dependencies {
  modLocalRuntime("dev.mim1q:runtimedatagen:0.0.2")
}

Usage

This mod makes a few assumptions about the environment:

  • your mod must have its generated resources in src/main/generated/ or a similar path, relative to your gradlew file;
  • you must have the fabric-api.datagen.output-dir property set in your Minecraft Client configuration (This may just be copied from the Data Generation configuration).
  • you have reloaded your sources in case you've changed anything

After that is done, press the O key while in-world (configurable under Key Bind settings), and let the mod do its job :)

Notes

In case this mod gets flagged as malicious due to its usage of reflection and process spawning, feel free to verify the code in the main class, compile it yourself or incorporate it into your own project (CC0 license - attribution not required, but appreciated 😊).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published