All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Registry Helper Lib

Registry Helper Lib

by bob_bacon • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

RegistryHelperLib

Are you tired of writing a lot of code to register all the things of minecraft?
With this little library, you will be able to register in an easier way.

Installation

Add the Modrinth's Maven Repository in build.gradle:

    repositories {
        maven {
            name = 'Modrinth'
            url = 'https://api.modrinth.com/maven'
            content {
            includeGroup 'maven.modrinth'
        }
    }
    }

Then add the mod implementation, still in build.gradle:

    dependencies{
        //other dependencies
        modImplementation("maven.modrinth:registry-helper-lib:${project.registry_helper_version}")
    }

Then add the version variable in gradle.properties. Replace the version below by the version of the lib you want:

    registry_helper_version= <version>

How to use it?

Create an instance of the RegistryHelper class. This instance will allow you to register for a registry type.

    public class ModItems {
        private static final RegistryHelper<Item> registryHelper=new RegistryHelper<>(Registries.ITEM,ExampleMod.MOD_ID);
        public static final Item EXAMPLE_ITEM= registryHelper.register("name",new Item(new Item.Settings()));

        public static void init(){

        }
    }

How to Install Registry Helper Lib (Mod)

Registry Helper Lib by bob_bacon is verified for Fabric across Minecraft versions 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21 (latest release: 1.0.3+1.20.1, file size: 24 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Registry Helper Lib file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.x
Fabric
9mo ago 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21
Fabric
last yr. 1
New Version
New port to lastest version!
Simple port to 1.20.1
The version is now clearer
Registry Helper Lib Icon
Download Registry Helper Lib
Select game version
Select platform