Jump to content

Recommended Posts

Posted

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.

 

vX4mNuN.pngOralgji.png

 

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.

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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