Jump to content

Recommended Posts

Posted

Huh? this?

 

@Mod(modid = RubyMod.MODID, version = RubyMod.VERSION)

public class RubyMod

{

    public static final String MODID = "Ruby Mod";

    public static final String VERSION = "1.7.2";

NEWB! in java im sorry :/

Posted

This is one om my block  RubyOre package com.Ruby.RubyMod;

 

import java.util.Random;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IIconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

 

public class RubyOre extends Block {

 

public RubyOre(int id, Material mat){

super(mat);

this.setCreativeTab(CreativeTabs.tabBlock);

}

 

@Override

public void registerBlockIcons(IIconRegister p_149651_1_)

{

this.blockIcon = p_149651_1_.registerIcon("Ruby:oreRuby");

}

 

public Item func_149650_a(int par1, Random rand, int par2){

return RubyMod.RubyIngot;

}

 

}

  What cna i do diff here?

 

 

 

Btw add me on skype Xetapro12 if u want to conntact me other ways

NEWB! in java im sorry :/

Posted

this.blockIcon = p_149651_1_.registerIcon("Ruby:oreRuby");

 

'Ruby' needs to change to 'rubymod' since that's the modID:

 

@Override
   public void registerBlockIcons(IIconRegister p_149651_1_)
   {
      this.blockIcon = p_149651_1_.registerIcon("rubymod:oreRuby");
   }

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.