I have no clue what is wrong with my dimension resource key. I'm using it in my portal block but it is just sending the player into a weird limbo state. So I tracked down the problem to the fact that there is something wrong with my dimension resource key. Here is my code.
public class ModDimensions {
public static final ResourceKey<Level>GREEN_DIMENSION = ResourceKey.create(Registries.DIMENSION, new ResourceLocation(Main.MOD_ID, "green_dimension"));
}