Jump to content

luxamy

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

luxamy's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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.
×
×
  • Create New...

Important Information

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