Posted August 17, 201411 yr 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) { super(par1); this.setBiomeName("BiomeTest"); this.blockMaterial = Material.water; this.rootHeight = 0.1F; this.heightVariation = 0.6F; this.spawnableMonsterList.clear(); this.spawnableCreatureList.clear(); 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
August 18, 201411 yr You are trying to cast your blocks, into bytes. This is very basic Java. Solution: Don't cast your block into a byte. BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
August 18, 201411 yr Author I will try removing the bytes but I was only following what the tutorials said to put
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.