Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SirPsp

Members
  • Joined

  • Last visited

  1. SirPsp replied to SirPsp's topic in Modder Support
    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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.