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.

BenjiVok

Members
  • Joined

  • Last visited

  1. Thank you for the helps! I'll start working on it!
  2. Hello I just started learning minecraft modding and I have already found a problem that I canno't fix. I have been trying for several hours to fix it, but I just can't get it working. The problem is that I have a basic item. In this case a Ruby Hoe. It does show up in my inventory, the name based on the lang file is working the only problem is that it's texture doesn't show up. (I have added multiple tools befor it and they worked fine) I hope you guys can help me out. <3 Codes: ToolHoe.java: public class ToolHoe extends ItemHoe implements IHasModel{ public ToolHoe(String name, ToolMaterial material) { super(material); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(CreativeTabs.TOOLS); ModItems.ITEMS.add(this); } @Override public void registerModels() { Main.proxy.registerItemRenderer(this, 0, "inventory"); } } ModItems.java: public class ModItems{ public static final List<Item> ITEMS = new ArrayList<Item>(); //Materials public static final ToolMaterial MATERIAL_RUBY = EnumHelper.addToolMaterial("material_ruby", 3, 2500, 15.0f, 10.0f, 22); //Items public static final Item RUBY = new ItemBaseMaterial("ruby"); public static final Item OBSIDIAN_INGOT = new ItemBaseMaterial("obsidian_ingot"); //Tools public static final ItemSword RUBY_SWORD = new ToolSword("ruby_sword", MATERIAL_RUBY); public static final ItemSpade RUBY_SPADE = new ToolSpade("ruby_spade", MATERIAL_RUBY); public static final ItemPickaxe RUBY_PICKAXE = new ToolPickaxe("ruby_pickaxe", MATERIAL_RUBY); public static final ItemHoe RUBY_HOE = new ToolHoe("ruby_hoe", MATERIAL_RUBY); //public static final ItemAxe RUBY_AXE = new ToolAxe("ruby_axe", MATERIAL_RUBY); } ruby_hoe.json { "parent": "item/handheld", "textures": { "layer0": "fm:items/ruby_hoe" } } The texture png is called: ruby_hoe.png and it's in the right folder. PS.: The Axe is commented because it crashes the launcher. If you have any idea why I would be happy not to open another topic (same file code only the tools are not the same and the ItemHoe -> ItemSword). Thank you in advance! Benji

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.