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

How does one change the color of a biome's grass?

 

I'm using the setColor method, but it's not affecting anything (it sets the grass to a purple color, but it looks like the plains biome color).

 

Code:

package realmoffera.world.biome;

import java.util.Random;

import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;

public class BiomeGenDreamRealmRF extends BiomeGenBase {
public BiomeGenDreamRealmRF(int par1) {
	super(par1);
	this.setColor(0x7F007F);
	this.setBiomeName("biome.dreamRealm.name");
	this.setTemperatureRainfall(0.8F, 0.4F);
	this.setHeight(height_LowPlains);
	this.theBiomeDecorator.treesPerChunk = -999;
	this.theBiomeDecorator.flowersPerChunk = -999;
	this.theBiomeDecorator.grassPerChunk = -999;
	this.flowers.clear();
}

public void decorate(World par1World, Random par2Random, int par3, int par4) {
	super.decorate(par1World, par2Random, par3, par4);
}

public BiomeGenBase createMutation() {
	return null;
}
}

Kain

I don't know if this will help you, but I know that minecraft passes biome based foliage color through a png file in order to get it's color. The file is just a square with varying green shades. Each biome grabs it's color from one section of this square, and so all foliage ends up with some sort of green tint. Maybe this is why you still get a green color? I was able to change birch foliage color in my own texturepack by making my own png file and making a blue copy of the green foliage file to get a nice blue tint instead. This only works with the HDPatcher to enable it, but maybe something in my description will give you a clue as to how to fix your problem? Maybe make a custom biome coloring file and call on your own custom foliage png file.

  • 3 years later...

Forget hexadecimal, colors in minecraft are in decimal code

Edited by ktreus

  • Guest locked this topic
Guest
This topic is now closed to further replies.

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.