SmartBrainLib (Forge/Fabric/Quilt)

SmartBrainLib (Forge/Fabric/Quilt)

31M Downloads

Can i somehow Reuse The SBL_LOADER for my own MemoryModuleTypes?

desertratx opened this issue ยท 2 comments

commented

Hey,

I'm a bit new to Minecraft Modding and got a probably stupid question.

I tried to implement a new Sensor with a new MemoryModuleType. I tried to use the SBL_LOADER but got following error:
image

Caused by: java.lang.IllegalStateException: Cannot register new entries to DeferredRegister after RegisterEvent has been fired.

Do I need to implement SBL_CONSTANTS + SBL_LOADER on my own, or can i somehow reuse it?

Greetings,
The Rat

commented

Thought so, thx for the quick response! And thx for the great lib

commented

No

You should never be registering objects under another mod's ID or registries.

If you want to register your own MemoryModuleTypes, do so in your own mod with your own registry setup, same as you would for items, blocks, etc..