Jump to content

World generation in custom dimension(1.20.1)


ReinierTheGhost

Recommended Posts

Hallo I am working on a fantasy rpg mod for 1.20.1. In this mod I want to create my own dimension which will generate a continent that we have already decided on how it should look, so the biomes should generate on the places we want them to generate instead of random like it does in vanilla minecraft. I know it should be posible since the LOTR mod has this done as well.

Edited by ReinierTheGhost
added version
Link to comment
Share on other sites

  • ReinierTheGhost changed the title to World generation in custom dimension(1.20.1)
  • 4 months later...

Did you make any progress on this? If so, would you mind sharing what you did? I was looking to make a custom dimension with a fixed continent (specific biome placement, terrain generation like mountains, rivers, etc) but unsure where to start. The LOTR mod was what inspired me also, but I know a lot has changed from the latest version that mod is compatible with.

Link to comment
Share on other sites

Yeah I found a way to do it but it only workes for fabric, somehow something is wrong with forge way of loading the chunk gen. The guys from the middle earth mod did manage to do it, but the train isn't what it should be yet. The biomes will generate exactly where it is supposed to be however. Only the hight map has some huge room for improvement.

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Also add the latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here
    • Add the crash-report or latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
    • Hi, I'm trying to add a chance for the LootTableIdCondition. I've tried to manipulate the AddItemModifier class, but it still doesn't work: public class AddItemModifier extends LootModifier { public static final Supplier<Codec<AddItemModifier>> CODEC = Suppliers.memoize(() -> RecordCodecBuilder.create(inst -> codecStart(inst).and(ForgeRegistries.ITEMS.getCodec() .fieldOf("item").forGetter(m -> m.item)) .and(Codec.FLOAT.fieldOf("chance").forGetter(m -> m.chance)) .apply(inst, AddItemModifier::new))); private final Item item; public AddItemModifier(LootItemCondition[] conditionsIn, Item item) { super(conditionsIn); this.item = item; } @Override protected @NotNull ObjectArrayList<ItemStack> doApply(ObjectArrayList<ItemStack> generatedLoot, LootContext context) { if(context.getRandom().nextFloat() < chance) { generatedLoot.add(new ItemStack(this.item)); } for(LootItemCondition condition : this.conditions) { if(!condition.test(context)) { return generatedLoot; } } generatedLoot.add(new ItemStack(this.item)); return generatedLoot; } @Override public Codec<? extends IGlobalLootModifier> codec() { return CODEC.get(); } } the only problem is the two "chance" are not defined, but when I add a private final Float chance, the AddItemModifier::new is in red underline, and there's an error. Is there a way to solve this, or is there another better way to add a chance to chest loot modifiers?
    • When i join every modapack 1.12.x and i press fullscreen it crash and it continue until reinstall
    • Hi, great video, it's very nice.
  • Topics

×
×
  • Create New...

Important Information

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