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

Posted

I have made a biome but it generates more often then I like. I want it to generate rarely, like the mesa biome

Edited by Blue_Atlas

18 minutes ago, Blue_Atlas said:

I have made a biome but it generates more often then I like. I want it to generate rarely, like the mesa biome

Then change the rarity. Cant help if you dont post code.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

  • Author

Biome Init:

public class ModBiomeInit 
{
	public static final Biome ENDOVERRIDE = new BiomeEndOverride();
	
	public static void registerBiomes()
	{
		initBiome(ENDOVERRIDE, "Ender Mutated Biome", BiomeType.COOL, Type.END);
	}
	
	private static Biome initBiome(Biome biome, String name, BiomeType biomeType, Type... types)
	{
		biome.setRegistryName(name);
		ForgeRegistries.BIOMES.register(biome);
		BiomeDictionary.addTypes(biome, types);
		BiomeManager.addBiome(biomeType, new BiomeEntry(biome, 10));
		BiomeManager.addSpawnBiome(biome);
		return biome;
	}
}

ย 

Biome class:

public class BiomeEndOverride extends Biome
{
	public BiomeEndOverride() 
	{
		super(new BiomeProperties("EndOverride").setRainDisabled());
		
		topBlock = Blocks.END_STONE.getDefaultState();
		fillerBlock = ModBlocksInit.END_FRAGMENT_ORE.getDefaultState();
		
		this.spawnableMonsterList.clear();
		this.spawnableCreatureList.clear();
		
		this.spawnableMonsterList.add(new SpawnListEntry(EntityWalkingShulker.class, 15, 2, 7));
		this.spawnableMonsterList.add(new SpawnListEntry(EntityEnderman.class, 25, 3, 9));
	}
}

ย 

Register Biome Init:

public static void preInitRegistries()
	{
		ModBiomeInit.registerBiomes();
	}

ย 

Where is the rarity?

Just now, Blue_Atlas said:

Where๏ปฟ is the rarity?

ย 

1 minute ago, Blue_Atlas said:

new BiomeEntry๏ปฟ๏ปฟ๏ปฟ(biome, 1๏ปฟ0๏ปฟ๏ปฟ๏ปฟ)๏ปฟ๏ปฟ๏ปฟ

Change the number 10

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

2 minutes ago, Blue_Atlas said:

ok but๏ปฟ do i raise of lower๏ปฟ it?

Look at the java doc above the class. But I believe you lower it.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

13 minutes ago, Blue_Atlas said:

ForgeRegistries.BIOMES.register(biome);

Never register your things into the registries whenever like that. Register your biome in a RegistryEvent.Register<Biome> to the registry passed to you in that event.

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.