Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author

Here:

 

 

 

package com.skillcakey.examplemod.biomegenbase;

 

import com.skillcakey.examplemod.ExampleMod;

 

import net.minecraft.block.Block;

import net.minecraft.init.Blocks;

import net.minecraft.world.biome.BiomeGenBase;

 

public class ExampleBiome extends BiomeGenBase{

 

 

public ExampleBiome(int par1) {

super(par1);

topBlock = ExampleMod.ExampleGrass;

fillerBlock = ExampleMod.ExampleBlock;

}

 

 

}

 

 

I'll say it again: I can't guarantee you that this method works. For finding your Biome in-game: I don't think there is a better way than just flying around.

 

You can generate a world and find which biome you are spawning in or next to, and then replace that biome temporarily with your custom biome in the biome arrays in the GenLayerBiome.  For instance to work on custom biomes I started a world that had a roofed forest right next to spawn, so I put my biome in the array in place of the roofed forest and the custom biome will generate in it's place if you recreate the world (ie: same seed)

I set my custom filler and top blocks, but they are air.

Can you show your code? I am not sure about this one.
And is there a way to change how often the biome is generated? :/

I don't think so. At least in 1.6 there wasn't.

 

ACtually YOU CAN make it so that biomes generate more often. Keep adding the same biome into the array multiple times. I noticed the code for minecraft does this which increases the odds of desert over say a mesa biome. The code you gave us is actually REALLY editable.

One other edit that modders should do is creating all 4 fields to make into arrays. It is important to do this so when the biomes are generated they don't appear in odd places. IE: your glacier biome appearing next to a desert.

  • 1 month later...

i feel like adding this link to another thread here, which is about the same thing, and i just added a comment there, how i did it (including a fully editable copied GenLayerBiome).

I hope you moderators don't mind? I want to help, not to bump :)

http://www.minecraftforge.net/forum/index.php/topic,19194.0.html

btw diesieben07: your code is great thank you, i will try, to do it that way.

  • 1 month later...

Don't use this method anymore, there is a forge hook for adding Biomes now, see BiomeManager.

(And you can make files inside net.minecraft just fine, but you shouldn't!).

 

Thank you! I got my biome working and found i on the first try using the biome weight!

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.