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.

maximka1221

Members
  • Joined

  • Last visited

Everything posted by maximka1221

  1. Try this: package com.CraigTheMailman.MinecraftExpansion.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.IIcon; import net.minecraft.world.World; import com.CraigTheMailman.MinecraftExpansion.MinecraftExpansion; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class WorkSurface extends Block { @SideOnly(Side.CLIENT) private IIcon workSurfaceTop; public WorkSurface(Material wood) { super(Material.wood); this.setHardness(3.5F); this.setResistance(5.0F); this.setCreativeTab(MinecraftExpansion.tabK); } @SideOnly(Side.CLIENT) public IIcon getIcon (int side, int metadata) { return side == 1 ? this.workSurfaceTop : this.blockIcon; } @SideOnly(Side.CLIENT) public void registerBlockIcons (IIconRegister iconRegister) { this.blockIcon = iconRegister.registerIcon("MCExpansion:CustomMech1_Side"); this.workSurfaceTop = iconRegister.registerIcon("MCExpansion:CustomMech1_Top"); } public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) { if(!player.isSneaking() && !world.isRemote) { FMLNetworkHandler.openGui(player, MinecraftExpansion.instance, MinecraftExpansion.guiIDCustom1, world, x, y, z); } return true; } }
  2. Can somebody help me?
  3. The BiomeGenBase class: package cc.cu.maximka.GreenCraft.biome; import cc.cu.maximka.GreenCraft.block.BlockHandler; import cc.cu.maximka.GreenCraft.lib.BiomeNames; import net.minecraft.world.biome.BiomeGenBase; public class BiomeGenGreenCraft extends BiomeGenBase { public BiomeGenGreenCraft(int biomeId) { super(biomeId); this.temperature = 1.0F; this.rootHeight = -0.5F; this.setBiomeName("greenCraft.greenCraftBiome"); this.setHeight(height_Default); this.topBlock = BlockHandler.blockMalachiteBlock; this.fillerBlock = BlockHandler.blockMalachiteOre; } } The BiomeHandler class (called at the end of preInit after registering items and blocks): package cc.cu.maximka.GreenCraft.biome; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; import net.minecraftforge.common.BiomeManager; public class BiomeHandler { public static BiomeGenBase biomeGreenCraft; public static void registerBiomes() { biomeGreenCraft = new BiomeGenGreenCraft(40); BiomeManager.addSpawnBiome(biomeGreenCraft); BiomeDictionary.registerBiomeType(biomeGreenCraft, Type.FOREST); } }
  4. Hello, I have a biome but I dont know how to register it. GameRegistry.addBiome has been removed so how can i register it? Thanks to the helpers!

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.