@Mod.EventBusSubscriber(modid = challengemod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.DEDICATED_SERVER)
public class Test {
private boolean toggled = true;
@SubscribeEvent
public void onTick(TickEvent.WorldTickEvent event) {
System.out.println("tickerticker");
if(toggled){
if (Minecraft.getInstance().player != null) {
System.out.println("tick");
}
}
Hi I watched some tutorials but somehow it just doesn't register. Nothing happens. Any idea? From what I heard you don't need to register them in the main class but the way I do it here just outputs nothing.
Oh btw when I had the same thing in my main class it worked fine.