Jump to content

drmrlego

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by drmrlego

  1. Change your registers to:

     

    	GameRegistry.registerBlock(snowstormBlock, "snowstormBlock");
    	LanguageRegistry.addName(snowstormBlock, "Blanket");
    

     

    You should also give the block a unlocalized name

     

    public BlockSnowstormBlock(int id, Material mat) {
            super(id, mat);
            this.setCreativeTab(CreativeTabs.tabBlock);
            this.setUnlocalizedName("snowtormBlock");
           }
    

    Yeah, that should work... But if it doesn't, then idk the problem.

  2. Lets see... you do have a problem here...

     public void registerIcons(IconRegister icon);{

    Remove the ";"

    And if THAT doesn't work, then I think I know why. I am familiar with forge 916, which is what I use, but you are using 953.

    EDIT: Almost forgot,

    public static final String modid = "Snowstorm";

    Put that in your main mod file. Also in your main mod file,

    Block snowstormBlock;

    Should be

    public static Block snowstormBlock;

    But once again, we are using different forge versions, so I am unsure

     

  3. I figured it out(I hope)! Change this...

    public BlockSnowstormBlock(int id, int texture, Material mat) {
                    super(id, texture, Material.cloth);
                    this.setCreativeTab(CreativeTabs.tabBlock);

    To this!

    public BlockSnowstormBlock(int id, int texture, Material mat) {
                    super(id, texture, mat);
                    this.setCreativeTab(CreativeTabs.tabBlock);

    That should fix it...

    EDIT: Wait, you should remove the "int texture" and the "texture" inside the "super(id, texture, mat);"

    Should be like

    public BlockSnowstormBlock(int id, Material mat) {
                    super(id, mat);
                    this.setCreativeTab(CreativeTabs.tabBlock);

    You can register textures like

    @SideOnly(Side.CLIENT)
    public void registerIcons(IconRegister icon){
    	this.blockIcon = icon.registerIcon(YourModHere.modid + ":" + "YourBlocksTextureFileNameHere");
    }

  4. This is for 1.6.4? Then, first off...

    public void gameRegisters(){
                            GameRegistry.registerBlock(snowstormBlock);}    
    
                    public void LanguageRegistry(){
                            LanguageRegistry.addName(snowstormBlock, "Blanket");
    }
    

    First, get rid of the "public void LanguageRegistry", "public void gameRegistry", "gameRegisters();", and the "languageRegisters();" but keep the "LanguageRegistry.addName(snowstormBlock, "Blanket");" and the

    "GameRegistry.registerBlock(snowstormBlock);" there. Second, also in your main class file, "@Init" should be "@EventHandler" And third...

    public BlockSnowstormBlock(int id, int texture, Material mat) {
                    super(texture, Material.cloth);
                    this.setCreativeTab(CreativeTabs.tabBlock);
    

    Change that to...

    public BlockSnowstormBlock(int id, int texture, Material mat) {
                    super(id, texture, Material.cloth);
                    this.setCreativeTab(CreativeTabs.tabBlock);
    

    Hope I helped

  5. public class BlockCompressedCobblestone extends Block{
    
    public BlockCompressedCobblestone(int id, Material par2Material) {
    	super(id, par2Material);
    	this.setCreativeTab(furniturecraft.FCTab);
    }
    @SideOnly(Side.CLIENT)
    public void registerIcons(IconRegister icon){
    	this.blockIcon = icon.registerIcon(furniturecraft.modid + ":" + "CompressedCobblestone");
    }
    }

    That is my block code for my mod, and it is 1.6.4, and...

    public Block setBlockName(String string) {
        // TODO Auto-generated method stub
        return null;
    }

    ...indeed, it should not be there.

     

×
×
  • Create New...

Important Information

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