Jump to content

SirPsp

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by SirPsp

  1. ItemTubyPickaxe class?

     

    public class ItemRubyPickaxe extends ItemPickaxe {
    
    public ItemRubyPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial) {
    	super(par1, par2EnumToolMaterial);
    	this.setCreativeTab(CreativeTabs.tabTools);
    }
    
    public void registerIcons(IconRegister iconRegister){
    	this.itemIcon = iconRegister.registerIcon(IgnotisMain.modid + ":" + this.getUnlocalizedName().substring(5));
    }
    }
    

  2. I've made a block with harvest level 4 and a pickaxe with harvest level 3, and the pickaxe can break the block.

    A diamond pickaxe is level 3 and cannot break the block so I must have something wrong with my pickaxe.

     

    tool material

    public static EnumToolMaterial toolRuby = EnumHelper.addToolMaterial("msRUBY", 3, 1500, 9.0F, 4, 15);

     

    tool

    rubyPickaxe = new ItemRubyPickaxe(8203, toolRuby).setUnlocalizedName("rubyPickaxe");

     

     

  3. This thread helped me.

    Not only does the folder need to be lower case, but the code as well.

    registerIcon(modid + ":" + this.getUnlocalizedName().substring(5).toLowerCase()

     

    EDIT: actually, after realizing that doesn't make sense, because that refers to the file name, which doesn't need to be lower case, I removed that and it still worked.

    So... it started working for me and I didn't change anything.

×
×
  • Create New...

Important Information

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