Jump to content

Problem with the biome decorator


MrJPGames

Recommended Posts

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.

Link to comment
Share on other sites

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

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



×
×
  • Create New...

Important Information

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