
Modrinth · Minecraft mod
Dynamic Registries
Allows other mods to create data-pack based registries
Quick answer
Which Dynamic Registries release matches 1.18.1 Forge?
Dynamic Registries 1.18.1-1.0.0 targets 1.18.1 with Forge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is Dynamic Registries required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does Dynamic Registries 1.18.1-1.0.0 need?
1.18.1-1.0.0 on 1.18.1 Forge. Every mod below is checked against that same setup.
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 Dynamic Registries without breaking your instance.
Built for Dynamic Registries 1.18.1-1.0.0 on 1.18.1 Forge. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.18.1-1.0.0. It targets 1.18.1 with Forge; another release may have different loader, side or dependency requirements.
- 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.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.18.1-1.0.0. It opens that exact file at the source.
About this project
What does Dynamic Registries add?
dynamic registries
Dynamic registries is a library mod that allows the creation of new data-pack based registries. It's possible to define elements in code and trough data-packs (even the data-pack in your mod), but not necessary; you can also create elements only in code or in data-packs. Elements that were defined in code can also be overwritten from data-packs. Elements must be encoded in JSON.
This library is based on the changes introduced in this PR. This PR probably isn't going to be merged before 1.18.2 gets released, but I needed this feature already for 1.18.1, so I wrote this mod. There won't be versions of this library for other Minecraft version for this reason.
How to add this library to your mods dependencies
To add the library to your gradle setup, add modrinth to your dependency repositories.
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
Add the above codeblock to your build.gradle above your dependencies block (the order doesn't matter that strong, but lets assume that you've placed it there to simplify things a bit). If you already had a repositories block, only append the maven block to it.
We now define the dependency itself. Add the line below to your dependencies block in your build.gradle. Version 0.1.0 was the latest at time of writing. Replace that with the latest currently available version.
implementation fg.deobf("maven.modrinth:dynamicregistries:0.1.0")
You can now refresh your gradle project to download the dependencies and re-run IDE setup tasks (genIntellijRuns, genEclipseRuns or genVSCodeRuns)
You can now use dynamic registries in your development setup, but you should make the forge mod-loader check for it's dependencies when loading. That requires changes in your mods.toml (in src/main/resources/META-INF). Add the following block at the end of the file
[[dependencies.modid]]
modId = "dynamicregistries"
mandatory = true
versionRange = "[0.0.0,2.0.0)"
ordering = "NONE"
side = "BOTH"
Replace modid with the modid of your mod and rearrange the version range if necessary
Credits
- Won-Ton, the author of the PR that was the base for this library
- Mod Icon: flaticon.com
Project description from Modrinth.
Pick your setup
Dynamic Registries by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Dynamic Registries versions and loaders
1.18.1-1.0.0
dynamicregistries-1.18.1-1.0.0.jar
1 Mar 2022
1.18.1-0.2.0
dynamicregistries-1.18.1-0.2.0.jar
27 Feb 2022
1.18.1-0.1.0
dynamicregistries-1.18.1-0.1.0-build2.jar
26 Feb 2022
0.0.1
dynamicregistries-1.18.1-0.0.1.jar
21 Feb 2022
Looking for an older file? The official Modrinth project page is in Resources.