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.

luxamy

Members
  • Joined

  • Last visited

  1. Ok I found my mistake. I simply had to put the ModEnumMaterial.initModEnumMaterial(); at te first place in the load function. thanks!
  2. I tried it but I get an error because I have to load it in the main File. But how can I make that? It has no init. sorry if that question is dumb but I'm actually not very good with java.
  3. here it is: package Launcraft.src; import net.minecraftforge.common.EnumHelper; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.ItemStack; public class ModEnumMaterial { public static EnumToolMaterial COPPER; public static EnumToolMaterial SILVER; public static EnumToolMaterial GEMSTONE; public static EnumArmorMaterial COPPERARMOR; public static EnumArmorMaterial SILVERARMOR; public static EnumArmorMaterial GEMSTONEARMOR; public static void initModEnumMaterial() { COPPER = EnumHelper.addToolMaterial("COPPER", 2, 200, 4.0f, 5, 15); SILVER = EnumHelper.addToolMaterial("SILVER", 2, 400, 5.0f, 6, 18); GEMSTONE = EnumHelper.addToolMaterial("GEMSTONE", 2, 1500, 7.0f, 8, 22); COPPERARMOR = EnumHelper.addArmorMaterial("COPPERARMOR", 12, new int[]{2, 5, 4, 1}, 12); SILVERARMOR = EnumHelper.addArmorMaterial("SILVERARMOR", 18, new int[]{3, 7, 5, 2}, 12); GEMSTONEARMOR = EnumHelper.addArmorMaterial("GEMSTONEARMOR", 30, new int[]{3, 8, 6, 3}, 25); } }
  4. Hey everyone, I have a problem with my mod. My tools aren't working, every time I start minecraft it crashes: Here I have the ModItemSword File: And here is the ModItems File: I hope someone can help me.

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.