I've done it myself a few weeks ago, try looking at it. (GitHub)
You'll basically need a ChunkProvider, a ChunkManager, a WorldProvider and a Teleporter class.
Register them in your init method like this. Call it from your CommonProxy class.
So I created all the necessary class files and wrote all the code I needed. The dimension registers in-game, but I can't figure out how to get to it.
1
Hey glad to hear you got it working. You see the thing is I had to wrap up this mini project quickly as I was getting a bit busy with other stuff. I should have detailed the installation better and you're totally right about the forge versions. Since the 1.12 update forge had been changing a lot of stuff. It's my laziness for not looking out for future and past version compatibility. I will look into bugs, compatibility and feature additions another time but feel free to keep posting here.
1
Here's an update on the mod:
Turns out it wasn't too hard to code and especially because someone on the forge forums provided the perfect solution to another modder who was trying to do the same thing. At the moment, the cycle duration is set by me in code and cannot be changed ingame once you load the mod. So at this point the mod is actually done because you've said that:
So I set the duration of 1 cycle to 3x its original and here is the mod if you believe it's good enough. Although I haven't tested this mod for its bugs and compatibility, I believe you will not have problems with it. Plop the jar in your mods folder and that's it. To revert take it out of the mods folder and restart minecraft. Otherwise, let me know of any bugs and whether you want some sort of ability to set the duration yourself.
1
This is my first mod and its main feature is giving you a craftable item that strikes lightning where you look.
This mod adds:
Recipe: 3 blaze rods, 2 gold nuggets
Recipe: 4 splash water bottles, 1 water bucket
Recipe: 1 lightning bolt item, 1 diamond block, 3 obsidian
Installation:
https://minecraft.curseforge.com/projects/lightning-bolt-mod
1
I may try my hand at this later but I'm only a newbie still finishing up my first mod so don't expect too much from me.