3 years later I face the same problem like you, How can you solve it? I've redid my workspace 2 times, but it still doesn't work. And I also tried to added 'import net.minecraftforge.fml.common.Mod;' .But after I added this into my code. 'net' went to an error too. Maybe you can tell me more useful suggestions. Thanks.😀