SkillCakey Posted April 4, 2014 Author Posted April 4, 2014 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; } } Quote
SkillCakey Posted April 4, 2014 Author Posted April 4, 2014 Nvm... It started working when i removed one extra FMLInitializationEvent. Now it works perfectly. Quote
robustus Posted April 4, 2014 Posted April 4, 2014 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) Quote
mrjoshiemoto Posted April 4, 2014 Posted April 4, 2014 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. Quote
chrissiOnAir Posted May 23, 2014 Posted May 23, 2014 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. Quote
ess0523 Posted June 29, 2014 Posted June 29, 2014 Here you go (please do not blindly copy & paste): http://pastebin.com/CtnTSKZS I just tested this very quickly. How are you able to use the net.Minecraft package...? I can't... Quote
ess0523 Posted June 29, 2014 Posted June 29, 2014 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! Quote
Recommended Posts
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.