Posted October 19, 201213 yr He, I am trying to make a biome and evrything is fine but I can't find a way to use the biomedecorator. There all made private wich is not the case with modloader from wich are good tutorials on how to use this. I wanted to know how I could use the biomedecorator in forge. Or if that even exsists. Code from MFL_BiomeGenFlowerForest: package MoreFlowers; import java.util.Random; import net.minecraft.src.*; public class MFL_BiomeGenFlowerForest extends BiomeGenBase { public MFL_BiomeGenFlowerForest(int par1) { super(par1); this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4)); this.theBiomeDecorator.treesPerChunk = 10;// this is blocked because of a protect statment in BiomeGenBase that is only on forge this.theBiomeDecorator.grassPerChunk = 2;// this is blocked because of a protect statment in BiomeGenBase that is only on forge this.theBiomeDecorator.flowersPerChunk = 35; // this is blocked because of a protect statment in BiomeGenBase that is only on forge } public WorldGenerator getRandomWorldGenForTrees(Random par1Random) { return (WorldGenerator)(par1Random.nextInt(5) == 0 ? this.worldGeneratorForest : (par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : this.worldGeneratorTrees)); } } I try not to be mean about your english (as my own isn't the best either) but sometimes I can't help myself! If you get mad at me for this or any other reason, please look at the profile picture so you'll feel better (and pretier) than me! Thanks.
October 20, 201213 yr We dont edit any access levels related to this, and neither does ModLoader. The raw access level is 'protected', thats from minecraft. You just need to understand how java does access levels, this isn't a issue. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.