Hello All,
I'm looking into implementing a mod that shows possible spawner locations. Something along the lines of
for use with identifying some behaviors within Vanilla MC.
Implementation details aside. I have identified the classes that need I need to modify or hook into. I need to make some tweaks to net.minecraft.world.gen.feature.WorldGenDungeons.class and net.minecraft.world.gen.ChunkProviderOverworld.class to get the needed information for rendering. WorldGenDungeons has a hook, but I can't use it without querying the Random class which changes the results of the actual generation (Something I am explicitly avoiding). As such, I need to modify the code for Forge or Minecraft directly to get the information without changing the state.
How would I go about doing this? The best I can come up with is jar modding Forge itself, but that seems wrong on multiple levels. It seems like there must be a better way. Any pointers? (If you'll pardon the programing pun...)