Jump to content

Custom BiomeGenBase Error for 1.7.2


Recommended Posts

Hi all I need help with my custom BiomeGenBase. i have been trying to get the top / fillerblock in my dimension working i found some tutorials but they where for 1.5.2 and 1.6.4 now the code I have it all ok but the topBlock and fillerBlock has an error 



package net.modtama.TestDimension;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.modtama.blocks.TVBlocks;

public class BiomeGenBaseTest extends BiomeGenBase
public final Material blockMaterial;

public BiomeGenBaseTest(int par1) 

	this.blockMaterial = Material.water;
	this.rootHeight = 0.1F;
	this.heightVariation = 0.6F;
	this.topBlock =  ((byte)TVBlocks.mudBlock);
	this.fillerBlock = ((byte)TVBlocks.redStone;

	this.waterColorMultiplier = 0xE42D17;



on the topBlock and the fillerBlock it says "Type mismatch: cannot convert from byte to Block" can any one help me fix this. thanks

also im quite new to modding / coding still learning as I go  ;D

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.

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.

  • Create New...

Important Information

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