Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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  ;D

  • Author

I will try removing the bytes but I was only following what the tutorials said to put xD

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.