Hello,
I'm trying to do a tiny mod for my server for friends, which is based on block break event. Mod is built without any errors, and it's loaded into client, because I can see it and even check in console. No errors.
But when I interacted with block then nothing happens like I missed something or so. Listeners? EventHandlers? Something should happens but there is no reaction at all in-game and even in console logs.
How do I add event listeners? Maybe I messed up something. Here is short snippet:
public MyMod {
GLM.register(FMLJavaModLoadingContext.get().getModEventBus());
}
private static final DeferredRegister<Codec<? extends IGlobalLootModifier>> GLM = DeferredRegister.create(ForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS, MODID);
I would be glad for any advices.
Regards