Jump to content

Add a new MapGenVillage type to chunkprovider


microjunk

Recommended Posts

I have been searching for a while now and have found no info on this at all. I have tried the initmapgenevent, maybe I did it wrong but again no information has been found on that either. I would prefer not to do any base edits if at all possible. I have searched this forum and many other outlets on the web looking for an answer.

 

Basically I just want to load a new MapGen to the world without creating a new dimension or new world type so I can add new villages to the game. Is there a way to register a new map, or possibly use a forge event for this?

 

Please help, I have been searching for almost 3 weeks now and have had no luck at all...

Link to comment
Share on other sites

IVillageCreationHandler ?

Though if you want to replace completely, InitMapGenEvent with Village EventType.

Just do event.newGen = yourCustomMapGen.

That works like any event. Except, it is a terrain event, with its own event bus to register to.

(MinecraftForge.TERRAIN_GEN_BUS)

Link to comment
Share on other sites

How can I add a new MapGen with IVillageCreationHandler? I tried that and it didnt load. What I did was just copy all the vanilla stuff for the village and used the handler to load the mapgen, nothing happened...no error and no villages. I changed the block types from cobble to obsidian to test to make sure they were loading or not. I dont want to replace completely, I just want to add my own map....how is this possible.....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • They were intended to be used on tutorial posts so that people could easily find tutorials based on their skill level, but instead the tags were abused for unrelated things that made the original intent useless... for example, people often posted crash reports with the "beginner" tag, so instead of finding tutorials for beginners, you got crash reports showing up in searches.
    • The crash says: Exception caught when registering wandering trader java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.m_9236_()" because "entity" is null at com.telepathicgrunt.repurposedstructures.misc.maptrades.StructureSpecificMaps$TreasureMapForEmeralds.m_213663_(StructureSpecificMaps.java:53) ~[repurposed_structures-7.1.15+1.20.1-forge.jar%23708!/:?] at jeresources.collection.TradeList.addMerchantRecipe(TradeList.java:58) ~[JustEnoughResources-1.20.1-1.4.0.247.jar%23630!/:1.4.0.247] JustEnoughResources is mentioned, too Does it work without one of these mods?
    • I have been trying to place a jigsaw structure for about a week now and cant get it to work. I have the template pool etc set up and working it does randomly generate now I just want to place it in the world using a coded trigger. I cant seem to find any useful information on the internet and am completely stuck I think I need to use : JigsawPlacement.generateJigsaw() But I cant get the Holder<StructureTemplatePool>
    • There are more - maybe   watut, whatdurability, playeranimator and vanillafix
    • cen you be a bit more specific pls there are many mods in the log mentioned by name does any error mention it or something couse when i search on   repurposed_structures i dont find anything helpfull cen you tell me which line you say that it might couse the problem?
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.