Posted May 25, 201411 yr I'm trying to code a custom wall based off the cobblestone walls. I can't seem to get Fence Gates to interact properly with it, however. The gates seem to be unchanged, as if connecting to a fence post. The wall responds to the presence of the gate, but the gate doesn't "lower" like it does with cobble walls. Wall Code: package com.lepheel.alamor.blocks; import java.util.List; import net.minecraft.block.BlockWall; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; public class BlockLogPostBlock extends BlockWall{ public BlockLogPostBlock(){ super(Blocks.log); setCreativeTab(CreativeTabs.tabBlock); } @SuppressWarnings({ "unchecked", "rawtypes" }) public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List) { par3List.add(new ItemStack(par1, 1, 0)); } @Override public IIcon getIcon(int par1, int par2) { return Blocks.log.getBlockTextureFromSide(par1); } public void registerBlockIcons(IIconRegister par1IconRegister){ this.blockIcon = par1IconRegister.registerIcon("Alamor:" + getUnlocalizedName().substring(5)); } } Any suggestions?
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.