Posted January 20, 201411 yr hi i made a custom sapling but it cant seem to grow it just pop of the block and bonemeal also doenst work on it package denbukki.indestructibleTools; import java.util.List; import java.util.Random; import net.minecraft.block.BlockSapling; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemStack; import net.minecraft.util.Icon; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import denbukki.indestructibleTools.worldgen.WorldGenTree; public class blockhardwoodsapling extends BlockSapling { private static WorldGenTree treeGen = new WorldGenTree(true); public blockhardwoodsapling(int id) { super(id); setHardness(0.0F); setStepSound(soundGrassFootstep); setCreativeTab(indestructibletools.indestructibleTools); this.useNeighborBrightness[id] = true; } @Override @SideOnly(Side.CLIENT) public void registerIcons(IconRegister par1IconRegister) { blockIcon = par1IconRegister.registerIcon("indestructibleTools:hardwoodSapling"); } @Override public Icon getIcon(int side, int metadata) { return blockIcon; } @Override public void growTree(World world, int x, int y, int z, Random rand) { if (world.isRemote) { return; } world.setBlockToAir(x, y, z); if(!treeGen.growTree(world, rand, x, y, z)) { world.setBlock(x, y, z, blockID, 0, 4); } } @Override public int idDropped(int meta, Random rand, int fortune) { return indestructibletools.blockhardwoodsapling.blockID; } @Override @SideOnly(Side.CLIENT) public void getSubBlocks(int blockId, CreativeTabs tab, List subBlocks) { subBlocks.add(new ItemStack(blockId, 1, 0)); } }
January 21, 201411 yr Author got it all fixed strangely enough it just worked after i added the bonemeal event
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.