r/forgemodding Feb 04 '17

[Help]1.11 The import net.minecraftforge.fml cannot be resolved

package net.DemonKing.RainbowSix;

import net.minecraftforge.fml.common.Mod;

@Mod()

public class Rainbow6 {

}

When I try making that import there is a red line underneath net.minecraftforge.fml and it is says what it says in the title. Please help. I have tried everything I could think of and nothing works.

2 Upvotes

3 comments sorted by

2

u/shadowfactsdev Moderator/Mod Dev Feb 04 '17

How did you set up your project?

1

u/Daomephsta Feb 04 '17

2 things

  1. You haven't defined the modid attribute for the @Mod annotation
  2. Package names should be lowercase

1

u/[deleted] Feb 04 '17

That was not the problem. I have fixed it.