Bloodmoon

Bloodmoon

33M Downloads

Suggestion: Bloodmoon start/active event

SkullbocksDE opened this issue ยท 1 comments

commented

Hi Lumien,
I wanted to start coding an mod hooking to your bloodmoon start/active event.
After searching through the source I detected no event doing something like that.

Could you please add an event where other mods can detect if bloodmoon is started /- active or not?

For example I'm talking about MinecraftForge.EVENT_BUS.post( event ); ^^

Kind regards

commented

Solved it on my own .. especially for my needs, if somebody really needs an event that gets thrown by the mod has to wait for the coding of lumien.

I've added the imports, a dependency and the mod loader:

import net.minecraftforge.fml.common.Loader;
import lumien.bloodmoon.client.ClientBloodmoonHandler;

@Mod( dependencies="after:bloodmoon;" )

if( Loader.isModLoaded("bloodmoon")  )
		  if( ClientBloodmoonHandler.INSTANCE.isBloodmoonActive() )