Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Server Error


Thor597
 Share

Recommended Posts

I finally fixed a big error and my mod finally loaded on the client, then i put it in the mods folder in my server and I got this error:

 

 

java.lang.NoClassDefFoundError: apn
2012-09-01 16:51:29 [iNFO] [sTDERR]     at ThorMod.<clinit>(ThorMod.java:57)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at java.lang.Class.forName0(Native Metho
d)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at java.lang.Class.forName(Unknown Sourc
e)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.common.FMLModContainer.c
onstructMod(FMLModContainer.java:267)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at sun.reflect.NativeMethodAccessorImpl.
invoke0(Native Method)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at sun.reflect.NativeMethodAccessorImpl.
invoke(Unknown Source)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at sun.reflect.DelegatingMethodAccessorI
mpl.invoke(Unknown Source)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at java.lang.reflect.Method.invoke(Unkno
wn Source)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.EventHandl
er.handleEvent(EventHandler.java:69)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.Synchroniz
edEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.EventBus.d
ispatch(EventBus.java:317)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.EventBus.d
ispatchQueuedEvents(EventBus.java:300)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.EventBus.p
ost(EventBus.java:268)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.common.LoadController.pr
opogateStateMessage(LoadController.java:123)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at sun.reflect.NativeMethodAccessorImpl.
invoke0(Native Method)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at sun.reflect.NativeMethodAccessorImpl.
invoke(Unknown Source)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at sun.reflect.DelegatingMethodAccessorI
mpl.invoke(Unknown Source)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at java.lang.reflect.Method.invoke(Unkno
wn Source)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.EventHandl
er.handleEvent(EventHandler.java:69)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.Synchroniz
edEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.EventBus.d
ispatch(EventBus.java:317)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.EventBus.d
ispatchQueuedEvents(EventBus.java:300)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at com.google.common.eventbus.EventBus.p
ost(EventBus.java:268)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.common.LoadController.di
stributeStateMessage(LoadController.java:81)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.common.Loader.loadMods(L
oader.java:408)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.server.FMLServerHandler.
beginServerLoading(FMLServerHandler.java:75)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.common.FMLCommonHandler.
onServerStart(FMLCommonHandler.java:325)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at ft.b(DedicatedServer.java:49)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at net.minecraft.server.MinecraftServer.
run(MinecraftServer.java:415)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at ep.run(SourceFile:539)
2012-09-01 16:51:29 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException:
apn
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.relauncher.RelaunchClass
Loader.findClass(RelaunchClassLoader.java:99)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at java.lang.ClassLoader.loadClass(Unkno
wn Source)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at java.lang.ClassLoader.loadClass(Unkno
wn Source)
2012-09-01 16:51:29 [iNFO] [sTDERR]     ... 30 more
2012-09-01 16:51:29 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException
2012-09-01 16:51:29 [iNFO] [sTDERR]     at org.objectweb.asm.ClassReader.<init>(
Unknown Source)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.common.asm.transformers.
SideTransformer.transform(SideTransformer.java:27)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.relauncher.RelaunchClass
Loader.runTransformers(RelaunchClassLoader.java:141)
2012-09-01 16:51:29 [iNFO] [sTDERR]     at cpw.mods.fml.relauncher.RelaunchClass
Loader.findClass(RelaunchClassLoader.java:92)
2012-09-01 16:51:29 [iNFO] [sTDERR]     ... 32 more
2012-09-01 16:51:29 [iNFO] [sTDERR] 2012-09-01 16:51:29 [sEVERE] Encountered an
unexpected exception NoClassDefFoundError
java.lang.NoClassDefFoundError: apn
        at ThorMod.<clinit>(ThorMod.java:57)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java
:267)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java
:69)
        at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(Synch
ronizedEventHandler.java:45)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.jav
a:300)
        at com.google.common.eventbus.EventBus.post(EventBus.java:268)
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadControll
er.java:123)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java
:69)
        at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(Synch
ronizedEventHandler.java:45)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.jav
a:300)
        at com.google.common.eventbus.EventBus.post(EventBus.java:268)
        at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadControl
ler.java:81)
        at cpw.mods.fml.common.Loader.loadMods(Loader.java:408)
        at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHand
ler.java:75)
        at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.j
ava:325)
        at ft.b(DedicatedServer.java:49)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:415)
        at ep.run(SourceFile:539)
Caused by: java.lang.ClassNotFoundException: apn
        at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLo
ader.java:99)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 30 more
Caused by: java.lang.NullPointerException
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTr
ansformer.java:27)
        at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchC
lassLoader.java:141)
        at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLo
ader.java:92)
        ... 32 more

 

Link to comment
Share on other sites

Ok, there is a lot in this file but i will post it nonetheless

 

it says: public static final Block UltraniteOre = new ThorMod_UltraOre(170,

0).setBlockName("ThorUltraniteOre").setHardness(13F).setResistance(5F).setCreativeTab(CreativeTabs.tabBlock);

 

also I put a thing specifying exactly where it is in code aswell

 

 

package net.minecraft.src;

 

import net.minecraftforge.common.EnumHelper;

import cpw.mods.fml.common.FMLCommonHandler;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.EntityRegistry;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

import net.minecraftforge.common.MinecraftForge;

import thormod.*;

 

@Mod( modid = "ThorMod", name="TheThorMod", version="alpha2.0")

 

@NetworkMod

(

clientSideRequired = true,

serverSideRequired = true

)

public class ThorMod

{

 

 

@SidedProxy

(

clientSide = "thormod.ThorMod_ClientProxy", serverSide = "thormod.ThorMod_CommonProxy"

)

 

public static ThorMod_CommonProxy proxy; //This object will be populated with the class that you choose for the environment

@Instance

public static ThorMod instance; //The instance of the mod that will be defined, populated, and callable

 

//public static ThorMod_SoundHandler thorSoundHandler = new ThorMod_SoundHandler();

 

//Biomes and Terain

public static final BiomeGenBase shortJungle = (new ThorMod_BiomeGenMonkeys(57));

public static final BiomeGenBase impossibleHills = (new ThorMod_BiomeGenImpossibleHills(58));

public static final BiomeGenBase greenGreens = (new ThorMod_BiomeGenGreenGreens(59));

public static final BiomeGenBase scandinavianForest = (new ThorMod_BiomeGenScandinavia(60).setMinMaxHeight(1.1F, 0.8F));

public static final BiomeGenBase alphaGround = (new ThorMod_BiomeGenAlpha(61).setMinMaxHeight(0.2F, 1.3F).setBiomeName("Alpha"));

public static final BiomeGenBase alphaHills = (new ThorMod_BiomeGenAlpha(62).setMinMaxHeight(0.6F, 2.0F).setBiomeName("Alpha Mountains"));

public static final BiomeGenBase alphaGroundSnow = (new ThorMod_BiomeGenAlphaSnow(63).setMinMaxHeight(0.2F, 1.3F).setBiomeName("Alpha Snow"));

public static final BiomeGenBase alphaHillsSnow = (new ThorMod_BiomeGenAlphaSnow(64).setMinMaxHeight(0.6F, 2.0F).setBiomeName("Alpha Snow Mountains"));

 

//Blocks

public static final Block BerryBushes = (new ThorMod_Berries(158)).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setBlockName("BerryBushes").setCreativeTab(CreativeTabs.tabDeco);

public static final Block NetherOres = new ThorMod_NetherOres(2723, Material.rock).setBlockName("ThorNetherOres").setCreativeTab(CreativeTabs.tabBlock);

public static final Block NetromRoht = new ThorMod_NetromRoht(173, 0).setBlockName("NetromRoht").setHardness(3.0F).setCreativeTab(CreativeTabs.tabBlock);

public static final Block EmeraldOre = new ThorMod_EmeraldOre(171, Material.rock).setBlockName("ThorEmeraldOre").setCreativeTab(CreativeTabs.tabBlock);

public static final Block GoldronOre = new ThorMod_GoldronOre(172, 0).setBlockName("ThorGoldronOre").setResistance(6F).setCreativeTab(CreativeTabs.tabBlock);

 

=====THIS IS LINE 57======public static final Block UltraniteOre = new ThorMod_UltraOre(170,

0).setBlockName("ThorUltraniteOre").setHardness(13F).setResistance(5F).setCreativeTab(CreativeTabs.tabBlock);

 

public static final Block DecPlanks = new ThorMod_DecPlanks(177, Material.wood).setBlockName("ThorDecPlanks").setHardness(2.0F).setResistance(5F).setStepSound(Block.soundWoodFootstep).setRequiresSelfNotify().setCreativeTab(CreativeTabs.tabBlock);

public static final Block CoPlanks = new ThorMod_Planks(178, Material.wood).setBlockName("ThorColouredPlanks").setHardness(2.0F).setResistance(5F).setStepSound(Block.soundWoodFootstep).setRequiresSelfNotify().setCreativeTab(CreativeTabs.tabBlock);

public static final Block EmBomb = new ThorMod_EmeraldBomb(2830, 0).setBlockName("EmeraldBomb").setHardness(0.0F).setStepSound(Block.soundMetalFootstep).setRequiresSelfNotify().setCreativeTab(CreativeTabs.tabRedstone);

public static final Block GFurnaceIdle = new ThorMod_GoldronFurnace(2831, false).setBlockName("GoldronFurnaceIdle").setHardness(6F).setStepSound(Block.soundMetalFootstep).setRequiresSelfNotify().setCreativeTab(CreativeTabs.tabDeco);

public static final Block GFurnaceActive = new ThorMod_GoldronFurnace(2832, true).setBlockName("GoldronFurnaceActive").setHardness(6F).setStepSound(Block.soundMetalFootstep).setRequiresSelfNotify();

public static final Block UFurnaceIdle = new ThorMod_UltraniteFurnace(2833, false).setBlockName("UltraniteFurnaceIdle").setHardness(6.5F).setStepSound(Block.soundMetalFootstep).setRequiresSelfNotify().setCreativeTab(CreativeTabs.tabDeco);

public static final Block UFurnaceActive = new ThorMod_UltraniteFurnace(2834, true).setBlockName("UltraniteFurnaceActive").setHardness(6.5F).setStepSound(Block.soundMetalFootstep).setRequiresSelfNotify();

public static final Block ObsidianPlate = (new BlockPressurePlate(2835, Block.obsidian.blockIndexInTexture, EnumMobType.players, Material.rock)).setHardness(0.5F).setStepSound(Block.soundStoneFootstep).setBlockName("obsidianPressurePlate").setRequiresSelfNotify();

public static final Block MetalBlocks = new ThorMod_Metal(169, Material.iron).setBlockName("ThorMod Metal").setHardness(3F).setStepSound(Block.soundMetalFootstep).setCreativeTab(CreativeTabs.tabBlock);

public static final Block BetGlass = (new ThorMod_Glass(150, 27, Material.glass, false)).setHardness(0.3F).setStepSound(Block.soundGlassFootstep).setBlockName("BetterGlass").setCreativeTab(CreativeTabs.tabBlock);

public static final Block BetGlassPane = (new ThorMod_GlassPane(151, 27, 37, Material.glass, false)).setHardness(0.3F).setStepSound(Block.soundGlassFootstep).setBlockName("BetterGlassPane").setCreativeTab(CreativeTabs.tabBlock);

public static final Block tomatoplant = (new ThorMod_TomatoPlant(156, 73)).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setBlockName("tomatoplant").disableStats().setCreativeTab(CreativeTabs.tabDeco);

public static final Block StoneStuff = new ThorMod_Stone(194, Material.rock).setBlockName("ThorGravelStone").setCreativeTab(CreativeTabs.tabBlock);

public static final Block bananaLeaves = (new ThorMod_BaLeaves(154, 0)).setHardness(0.2F).setLightOpacity(1).setStepSound(Block.soundGrassFootstep).setBlockName("ThorbananaLeaves").setRequiresSelfNotify().setCreativeTab(CreativeTabs.tabDeco);

public static final Block bananaLog = (new ThorMod_BaLog(153)).setHardness(2.0F).setStepSound(Block.soundWoodFootstep).setBlockName("ThorbananaLog").setRequiresSelfNotify().setCreativeTab(CreativeTabs.tabBlock);

public static final Block bananaSapling = (new ThorMod_BaSap(155, 0)).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setBlockName("ThorBananaSapling").setRequiresSelfNotify();

public static final Block lemonLeaves = (new ThorMod_LeLeaves(157, 0)).setHardness(0.2F).setLightOpacity(1).setStepSound(Block.soundGrassFootstep).setBlockName("ThorlemonLeaves").setRequiresSelfNotify().setCreativeTab(CreativeTabs.tabDeco);

public static final Block Carpet = (new ThorMod_Carpet(179, 64)).setHardness(0.1F).setStepSound(Block.soundClothFootstep).setBlockName("ThorCarpet").setLightOpacity(0).setCreativeTab(CreativeTabs.tabBlock);

public static final Block PortaBlocks = new ThorMod_PortaBlocks(180, 0).setBlockName("Portable Structure").setHardness(2.0F).setResistance(5F).setStepSound(Block.soundWoodFootstep).setRequiresSelfNotify().setCreativeTab(CreativeTabs.tabBlock);

 

//Items

public static final Item GoIngot = new ThorMod_Items(1401).setItemName("Goldron Ingot").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item UltIngot = new ThorMod_Items(1402).setItemName("Ultra Ingot").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item UltDust = new ThorMod_Items(1399).setItemName("Ultra Dust").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item obIngot = new ThorMod_Items(1403).setItemName("Obsidian Ingot").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item dDust = new ThorMod_Items(1405).setItemName("Diamond Dust").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item emerald = new ThorMod_Items(1404).setItemName("Emerald").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item CompUltDust = new ThorMod_Items(1400).setItemName("Comp Ultra Dust").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item MeltedChoc = new ThorMod_Items(1025).setItemName("MeltedChoc").setTabToDisplayOn(CreativeTabs.tabFood);

public static final Item Storod = new ThorMod_Items(1411).setItemName("Stone Rod").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item Irod = new ThorMod_Items(1408).setItemName("Iron Rod").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item Obrod = new ThorMod_Items(1409).setItemName("Obsidian Rod").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item Shattered = new ThorMod_Items(1406).setItemName("Shatttered Glass").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item UnMagenium = new ThorMod_Items(1412).setItemName("Unfinished Magenium").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item Magenium = new ThorMod_RareItem(1413).setItemName("Magenium").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item GoldronController = new ThorMod_Items(1414).setItemName("GController").setTabToDisplayOn(CreativeTabs.tabRedstone);

public static final Item GoldronNugget = new ThorMod_Items(1415).setItemName("GoldronNugget").setTabToDisplayOn(CreativeTabs.tabMaterials);

public static final Item DrinkGlass = new ThorMod_Items(1031).setItemName("DrinkGlass").setTabToDisplayOn(CreativeTabs.tabFood);

public static final Item Plutonium = new ThorMod_Items(1416).setItemName("Plutonium").setTabToDisplayOn(CreativeTabs.tabMaterials);

//DISC TEST public static final Item StuffDisc = new ThorMod_Records(1417, "monkey").setItemName("Stuffs");

 

public static final Item SaltBeef = new ThorMod_Food(1024, 11, true).setItemName("Salted Beef");

public static final Item SaltChic = new ThorMod_Food(1023, 9, true).setItemName("Salted Chicken");

public static final Item Cheese = new ThorMod_Food(1001, 1, false).setItemName("Cheese");

public static final Item Salt = new ThorMod_Items(1000).setItemName("Salt");

public static final Item ChocDarkBar = new ThorMod_Food(1022, 3, false).setItemName("ChocDarkBar");

public static final Item ChocApple = new ThorMod_Food(1021, 10, false).setItemName("ChocApple");

public static final Item ChocBar = new ThorMod_Food(1020, 6, false).setItemName("ChocBar");

public static final Item SaltPork = new ThorMod_Food(1016, 10, false).setItemName("Salted Pork");

public static final Item Tomato = new ThorMod_Items(1026).setItemName("Tomato");

public static final Item Dapple = (new ThorMod_AppleDiamond(1002, 20, 1.2F, false)).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 1, 40, 1.0F).setItemName("Diamond Apple");

public static final Item Lemon = new ThorMod_Food(1003, 3, false).setItemName("ThorLemon");

public static final Item Slicebread = new ThorMod_Food(1004, 2, false).setItemName("SOB");

public static final Item RawBacon = new ThorMod_Food(1005, 2, true).setItemName("Raw Bacon");

public static final Item Bacon = new ThorMod_Food(1006, 8, true).setItemName("Bacon");

public static final Item SaltBacon = new ThorMod_Food(1007, 12, false).setItemName("Salt Bacon");

public static final Item EggNBacon = new ThorMod_Food(1008, 14, false).setItemName("Egg N' Bacon");

public static final Item GoldBread = new ThorMod_Food(1009, 18, false).setItemName("Golden Bread");

public static final Item Flour = new ThorMod_Food(1010, -1, false).setItemName("Flour");

public static final Item Dough = new ThorMod_Food(1011, 1, false).setItemName("Dough");

public static final Item BurgerBread = new ThorMod_Food(1013, 1, false).setItemName("Burger Bread");

public static final Item CheeseBurger = new ThorMod_Food(1012, 14, false).setItemName("CheeseBurger");

public static final Item SugarFlesh = new ThorMod_Food(1014, 3, false).setItemName("Sugared Flesh");

public static final Item Banana = new ThorMod_Food(1019, 8, false).setItemName("Banana");

public static final Item Pasta = new ThorMod_Food(1027, 2, false).setItemName("Pasta");

public static final Item Spaghetti = new ThorMod_Food(1028, 3, false).setItemName("Spaghetti");

public static final Item Bolognese = new ThorMod_Soup(1029, 12).setItemName("Bolognese");

public static final Item Carbonara = new ThorMod_Soup(1030, 14).setItemName("Carbonara");

public static final Item MilkGlass  = (new ThorMod_Drinkglass(1032, 3)).setItemName("milkthor glass");

public static final Item Lemonade  = (new ThorMod_Drinkglass(1033, 5)).setItemName("lemonadethor glass");

public static final Item TomatoSoup = new ThorMod_Soop(1034, 5).setItemName("Tomato Soup");

public static final Item Strawberry = new ThorMod_Food(1035, 3, false).setItemName("Strawberry");

public static final Item Raspberry = new ThorMod_Food(1036, 2, false).setItemName("Raspberry");

public static final Item Blueberry = new ThorMod_Food(1037, 1, false).setItemName("Blueberry");

 

//Tool Enums

static EnumToolMaterial THOREMERALD = EnumHelper.addToolMaterial("THOREMERALD", 2, 500, 8F, 3, 10);

static EnumToolMaterial MADGENIUM = EnumHelper.addToolMaterial("MADGENIUM", 4, 9000, 100000F, 1789, 10);

static EnumToolMaterial OBSIDIAN = EnumHelper.addToolMaterial("OBSIDIAN", 4, 3142, 16F, 10, 10);

static EnumToolMaterial GOLDRON = EnumHelper.addToolMaterial("GOLDRON", 2, 280, 12.0F, 2, 12);

static EnumToolMaterial ULTRANITE = EnumHelper.addToolMaterial("ULTRANITE", 4, 6300, 35F, 15, 10);

 

//Tools

public static final Item Madgenium = (new ThorMod_MadgeniumTool(1221, MADGENIUM)).setItemName("Madgenium");

public static final Item Paxel = new ThorMod_Paxel(1208, OBSIDIAN).setItemName("Paxel");

public static final Item Pickaxe = new ThorMod_Pickaxe(1201, OBSIDIAN).setItemName("Pickaxe");

public static final Item Spade = new ThorMod_Spade(1202, OBSIDIAN).setItemName("Spade");

public static final Item Sword = new ThorMod_Sword(1203, OBSIDIAN).setItemName("Sword");

public static final Item Axe = new ThorMod_Axe(1204, OBSIDIAN).setItemName("Axe");

public static final Item Hoe = new ThorMod_Hoe(1205, OBSIDIAN).setItemName("Hoe");

public static final Item emPickaxe = new ThorMod_Pickaxe(1209, THOREMERALD).setItemName("emPickaxe");

public static final Item emSpade = new ThorMod_Spade(1210, THOREMERALD).setItemName("emSpade");

public static final Item emSword = new ThorMod_Sword(1211, THOREMERALD).setItemName("emSword");

public static final Item emAxe = new ThorMod_Axe(1212, THOREMERALD).setItemName("emAxe");

public static final Item emHoe = new ThorMod_Hoe(1213, THOREMERALD).setItemName("emHoe");

public static final Item UltraP = new ThorMod_Paxel(1206, ULTRANITE).setItemName("UltraPick");

public static final Item UltraSw = new ThorMod_Sword(1207, ULTRANITE).setItemName("UltraSword");

public static final Item DiPaxel = new ThorMod_Paxel(1214, EnumToolMaterial.EMERALD).setItemName("DiamondPaxel");

public static final Item GoPaxel = new ThorMod_Paxel(1220, GOLDRON).setItemName("GoldronPaxel");

public static final Item GoPickaxe = new ThorMod_Pickaxe(1215, GOLDRON).setItemName("GoldronPickaxe");

public static final Item GoSpade = new ThorMod_Spade(1216, GOLDRON).setItemName("GoldronSpade");

public static final Item GoSword = new ThorMod_Sword(1217, GOLDRON).setItemName("GoldronSword");

public static final Item GoAxe = new ThorMod_Axe(1218, GOLDRON).setItemName("GoldronAxe");

public static final Item GoHoe = new ThorMod_Hoe(1219, GOLDRON).setItemName("GoldronHoe");

public static final Item TestBow = new ThorMod_MBow(1222).setItemName("TestingBow");

public static final Item MadgeniumArrow = new ThorMod_RareItem(1223).setItemName("MadgeniumArrow").setTabToDisplayOn(CreativeTabs.tabCombat);

 

//Armor Enums

static EnumArmorMaterial armorULTRANITE = EnumHelper.addArmorMaterial("ULTRANITE", 60, new int[]{6, 8, 6, 3}, 10);

static EnumArmorMaterial armorEMERALD = EnumHelper.addArmorMaterial("EMERALD", 15, new int[]{3, 8, 6, 3}, 10);

static EnumArmorMaterial armorGOLDRON = EnumHelper.addArmorMaterial("GOLDRON", 15, new int[]{2, 5, 5, 2}, 25);

 

//Armour

public static final Item emHelm = new ThorMod_Armor(1296, armorEMERALD, ModLoader.addArmor("thoremerald"), 0).setItemName("emHelm");

public static final Item emChest = new ThorMod_Armor(1297, armorEMERALD, ModLoader.addArmor("thoremerald"), 1).setItemName("emChest");

public static final Item emLegs = new ThorMod_Armor(1298, armorEMERALD, ModLoader.addArmor("thoremerald"), 2).setItemName("emLegs");

public static final Item emShoes = new ThorMod_Armor(1299, armorEMERALD, ModLoader.addArmor("thoremerald"), 3).setItemName("emShoes");

public static final Item ultraHelm = new ThorMod_Armor(1300, armorULTRANITE, ModLoader.addArmor("ultra"), 0).setItemName("ultraHelm");

public static final Item ultraChest = new ThorMod_Armor(1301, armorULTRANITE, ModLoader.addArmor("ultra"), 1).setItemName("ultraChest");

public static final Item ultraLegs = new ThorMod_Armor(1302, armorULTRANITE, ModLoader.addArmor("ultra"), 2).setItemName("ultraLegs");

public static final Item ultraShoes = new ThorMod_Armor(1303, armorULTRANITE, ModLoader.addArmor("ultra"), 3).setItemName("ultraShoes");

public static final Item goldronHelm = new ThorMod_Armor(1304, armorGOLDRON, ModLoader.addArmor("goldron"), 0).setItemName("goldronHelm");

public static final Item goldronChest = new ThorMod_Armor(1305, armorGOLDRON, ModLoader.addArmor("goldron"), 1).setItemName("goldronChest");

public static final Item goldronLegs = new ThorMod_Armor(1306, armorGOLDRON, ModLoader.addArmor("goldron"), 2).setItemName("goldronLegs");

public static final Item goldronShoes = new ThorMod_Armor(1307, armorGOLDRON, ModLoader.addArmor("goldron"), 3).setItemName("goldronShoes");

 

@PreInit

public void preInit(FMLPreInitializationEvent event)

{

MinecraftForge.EVENT_BUS.register(new ThorMod_SoundHandler());

proxy.registerRenderInformation();

}

 

@Init

public void load(FMLInitializationEvent evt)

{

//Ore Dictionary

net.minecraftforge.oredict.OreDictionary.registerOre("gemEmerald", new ItemStack(emerald));

net.minecraftforge.oredict.OreDictionary.registerOre("oreEmerald", new ItemStack(EmeraldOre));;

//Blocks

GameRegistry.registerBlock(ObsidianPlate);

GameRegistry.registerTileEntity(ThorMod_TileEntityGoldronFurnace.class, "Goldron Furnace");

GameRegistry.registerBlock(GFurnaceIdle);

GameRegistry.registerBlock(GFurnaceActive);

GameRegistry.registerTileEntity(ThorMod_TileEntityUltraniteFurnace.class, "Ultranite Furnace");

GameRegistry.registerBlock(UFurnaceIdle);

GameRegistry.registerBlock(UFurnaceActive);

GameRegistry.registerBlock(BerryBushes, ThorMod_ItemBerries.class);

GameRegistry.registerBlock(EmBomb);

GameRegistry.registerBlock(NetherOres, ThorMod_ItemNetherOres.class);

GameRegistry.registerBlock(UltraniteOre);

GameRegistry.registerBlock(EmeraldOre);

GameRegistry.registerBlock(GoldronOre);

GameRegistry.registerBlock(StoneStuff);

GameRegistry.registerBlock(NetromRoht);

LanguageRegistry.addName(ObsidianPlate,"Obsidian Pressure Plate");

LanguageRegistry.addName(GFurnaceIdle,"Goldron Furnace");

LanguageRegistry.addName(GFurnaceActive,"Goldron Furnace(Active)DONT USE");

LanguageRegistry.addName(UFurnaceIdle,"Ultranite Furnace");

LanguageRegistry.addName(UFurnaceActive,"Ultranite Furnace(Active)DONT USE");

LanguageRegistry.addName(new ItemStack(BerryBushes, 1, 0), "Strawberry Bush");

LanguageRegistry.addName(new ItemStack(BerryBushes, 1, 1), "Raspberry Bush");

LanguageRegistry.addName(new ItemStack(BerryBushes, 1, 2), "Blueberry Bush");

LanguageRegistry.addName(EmBomb,"Emerald Bomb");

LanguageRegistry.addName(new ItemStack(NetherOres, 1, 0), "Nether Ultranite Ore");

LanguageRegistry.addName(new ItemStack(NetherOres, 1, 1), "Plutonium Ore");

LanguageRegistry.addName(NetromRoht,"Netrom Roht");

LanguageRegistry.addName(UltraniteOre,"Ultranite Ore");

LanguageRegistry.addName(GoldronOre, "Goldron Ore");

LanguageRegistry.addName(EmeraldOre, "Emerald Ore");

 

MinecraftForge.setToolClass(emPickaxe, "pickaxe", 2);

MinecraftForge.setToolClass(GoPickaxe, "pickaxe", 2);

MinecraftForge.setToolClass(GoPaxel, "pickaxe", 2);

MinecraftForge.setToolClass(DiPaxel, "pickaxe", 3);

MinecraftForge.setToolClass(Pickaxe, "pickaxe", 4);

MinecraftForge.setToolClass(Paxel, "pickaxe", 4);

MinecraftForge.setToolClass(UltraP, "pickaxe", 4);

MinecraftForge.setToolClass(Madgenium, "pickaxe", 4);

 

MinecraftForge.setToolClass(emSpade, "shovel", 2);

MinecraftForge.setToolClass(GoSpade, "shovel", 2);

MinecraftForge.setToolClass(Spade, "shovel", 4);

 

MinecraftForge.setToolClass(emAxe, "axe", 2);

MinecraftForge.setToolClass(GoAxe, "axe", 2);

MinecraftForge.setToolClass(Axe, "axe", 4);

 

MinecraftForge.setToolClass(emHoe, "hoe", 2);

MinecraftForge.setToolClass(GoHoe, "hoe", 2);

MinecraftForge.setToolClass(Hoe, "hoe", 4);

 

MinecraftForge.setToolClass(emSword, "sword", 2);

MinecraftForge.setToolClass(GoSword, "sword", 2);

MinecraftForge.setToolClass(Sword, "sword", 4);

MinecraftForge.setToolClass(UltraSw, "sword", 4);

 

MinecraftForge.setBlockHarvestLevel(UFurnaceIdle, "pickaxe", 4);

MinecraftForge.setBlockHarvestLevel(UFurnaceActive, "pickaxe", 4);

MinecraftForge.setBlockHarvestLevel(GFurnaceIdle, "pickaxe", 2);

MinecraftForge.setBlockHarvestLevel(GFurnaceActive, "pickaxe", 2);

MinecraftForge.setBlockHarvestLevel(UltraniteOre, "pickaxe", 4);

MinecraftForge.removeBlockEffectiveness(GoldronOre, "pickaxe");

MinecraftForge.setBlockHarvestLevel(NetherOres, 1, "pickaxe", 2);

MinecraftForge.setBlockHarvestLevel(NetherOres, 0, "pickaxe", 4);

MinecraftForge.setBlockHarvestLevel(MetalBlocks, 8, "pickaxe", 2);

MinecraftForge.setBlockHarvestLevel(MetalBlocks, 7, "pickaxe", 2);

MinecraftForge.setBlockHarvestLevel(MetalBlocks, 6, "pickaxe", 1);

MinecraftForge.setBlockHarvestLevel(MetalBlocks, 5, "pickaxe", 1);

MinecraftForge.setBlockHarvestLevel(MetalBlocks, 4, "pickaxe", 2);

MinecraftForge.setBlockHarvestLevel(MetalBlocks, 3, "pickaxe", 4);

MinecraftForge.setBlockHarvestLevel(MetalBlocks, 2, "pickaxe", 3);

MinecraftForge.setBlockHarvestLevel(MetalBlocks, 1, "pickaxe", 2);

MinecraftForge.setBlockHarvestLevel(MetalBlocks, 0, "pickaxe", 2);

MinecraftForge.setBlockHarvestLevel(EmeraldOre, "pickaxe", 2);

LanguageRegistry.addName(new ItemStack(StoneStuff, 1, 0), "Gravelstone");

GameRegistry.registerBlock(CoPlanks, ThorMod_ItemPlanks.class);

GameRegistry.registerBlock(DecPlanks, ThorMod_ItemDecPlanks.class);

GameRegistry.registerBlock(PortaBlocks, ThorMod_ItemPortaBlocks.class);

LanguageRegistry.addName(new ItemStack(PortaBlocks, 1, 0), "Portable House");

LanguageRegistry.addName(new ItemStack(PortaBlocks, 1, 1), "Portable Tower");

LanguageRegistry.addName(new ItemStack(PortaBlocks, 1, 2), "Portable Farm");

LanguageRegistry.addName(new ItemStack(PortaBlocks, 1, 3), "Portable Enchanting Room");

LanguageRegistry.addName(new ItemStack(PortaBlocks, 1, 4), "Portable House 2");

EmBomb.blockIndexInTexture = 38;

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 0), "Red Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 1), "Green Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 2), "Brown Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 3), "Blue Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 4), "Purple Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 5), "Cyan Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 6), "Light Gray Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 7), "Gray Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 8), "Pink Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 9), "Lime Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 10), "Yellow Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 11), "Light Blue Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 12), "Magenta Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 13), "Orange Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 14), "White Planks");

LanguageRegistry.addName(new ItemStack(CoPlanks, 1, 15), "Black Planks");

GameRegistry.registerBlock(Carpet, ThorMod_ItemCarpet.class);

LanguageRegistry.addName(new ItemStack(DecPlanks, 1, 0), "Banana Wood Planks");

LanguageRegistry.addName(new ItemStack(DecPlanks, 1, 1), "Checkered Wood Planks");

LanguageRegistry.addName(new ItemStack(DecPlanks, 1, 2), "Cracked Oak Wood Planks");

LanguageRegistry.addName(new ItemStack(DecPlanks, 1, 3), "Cracked Spruce Wood Planks");

LanguageRegistry.addName(new ItemStack(DecPlanks, 1, 4), "Cracked Birch Wood Planks");

LanguageRegistry.addName(new ItemStack(DecPlanks, 1, 5), "Cracked Jungle Wood Planks");

LanguageRegistry.addName(new ItemStack(DecPlanks, 1, 6), "Structure Block");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 14), "Red Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 13), "Green Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 12), "Brown Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 11), "Blue Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 10), "Purple Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 9), "Cyan Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 8), "Light Gray Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 7), "Gray Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 6), "Pink Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 5), "Lime Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 4), "Yellow Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 3), "Light Blue Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 2), "Magenta Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 1), "Orange Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 0), "White Carpet");

LanguageRegistry.addName(new ItemStack(Carpet, 1, 15), "Black Carpet");

GameRegistry.registerBlock(MetalBlocks, ThorMod_ItemMetal.class);

LanguageRegistry.addName(new ItemStack(MetalBlocks, 1, 0), "Emerald Block");

LanguageRegistry.addName(new ItemStack(MetalBlocks, 1, 1), "Redstone Block");

LanguageRegistry.addName(new ItemStack(MetalBlocks, 1, 2), "Obsidian Block");

LanguageRegistry.addName(new ItemStack(MetalBlocks, 1, 3), "Ultranite Block");

LanguageRegistry.addName(new ItemStack(MetalBlocks, 1, 4), "Goldron Block");

LanguageRegistry.addName(new ItemStack(MetalBlocks, 1, 5), "Coal Block");

LanguageRegistry.addName(new ItemStack(MetalBlocks, 1, 6), "Advanced Structure Block");

LanguageRegistry.addName(new ItemStack(MetalBlocks, 1, 7), "Weather Changer");

LanguageRegistry.addName(new ItemStack(MetalBlocks, 1, 8), "Time Changer");

GameRegistry.registerBlock(BetGlass, ThorMod_ItemGlass.class);

LanguageRegistry.addName(new ItemStack(BetGlass, 1, 0), "Better Glass");

GameRegistry.registerBlock(BetGlassPane, ThorMod_ItemGlass.class);

LanguageRegistry.addName(new ItemStack(BetGlassPane), "Better Glass Pane");

GameRegistry.registerBlock(bananaLeaves);

GameRegistry.registerBlock(bananaLog);

GameRegistry.registerBlock(bananaSapling, ThorMod_BananaSaplingItem.class);

LanguageRegistry.addName(new ItemStack(bananaLeaves), "Banana Leaves");

LanguageRegistry.addName(new ItemStack(bananaLog), "Banana Wood");

LanguageRegistry.addName(new ItemStack(bananaSapling), "Banana Sapling");

bananaSapling.blockIndexInTexture = 36;

GameRegistry.registerBlock(tomatoplant);

LanguageRegistry.addName(new ItemStack(tomatoplant), "Tomato Plant");

LanguageRegistry.addName(lemonLeaves, "Lemon Leaves");

GameRegistry.registerBlock(lemonLeaves);

//Items

GoIngot.iconIndex = 5;

UltIngot.iconIndex = 66;

UltDust.iconIndex = 50;

obIngot.iconIndex = 67;

dDust.iconIndex = 51;

emerald.iconIndex = 82;

CompUltDust.iconIndex = 18;

Storod.iconIndex = 35;

MeltedChoc.iconIndex = 45;

Obrod.iconIndex = 19;

Irod.iconIndex = 3;

Shattered.iconIndex = 83;

UnMagenium.iconIndex = 21;

Magenium.iconIndex = 53;

DrinkGlass.iconIndex = 91;

GoldronController.iconIndex = 85;

GoldronNugget.iconIndex = 99;

Plutonium.iconIndex = 101;

MadgeniumArrow.iconIndex = 70;

LanguageRegistry.addName(MadgeniumArrow, "\u00a7c Madgenium Arrow");

LanguageRegistry.addName(Plutonium, "\u00a7e Plutonium");

LanguageRegistry.addName(GoldronNugget, "\u00a7e Goldron Nugget");

LanguageRegistry.addName(GoldronController, "\u00a7e Goldron Controller");

LanguageRegistry.addName(DrinkGlass, "Glass");

LanguageRegistry.addName(UnMagenium, "\u00a7c Unfinished Madgenium");

LanguageRegistry.addName(Magenium, "\u00a7c Madgenium");

LanguageRegistry.addName(GoIngot, "\u00a7e Goldron Ingot");

LanguageRegistry.addName(UltIngot, "\u00a79 Ultranite Ingot");

LanguageRegistry.addName(UltDust, "\u00a79 Ultranite Dust");

LanguageRegistry.addName(obIngot, "\u00a75 Obsidian Ingot");

LanguageRegistry.addName(dDust, "\u00a7b Diamond Dust");

LanguageRegistry.addName(emerald, "\u00a72 Emerald");

LanguageRegistry.addName(CompUltDust, "\u00a79 Compressed Ultranite");

LanguageRegistry.addName(Storod, "\u00a78 Stone Rod");

LanguageRegistry.addName(MeltedChoc, "\u00a76 Melted Chocolate");

LanguageRegistry.addName(Shattered, "Shattered Glass");

LanguageRegistry.addName(Obrod, "\u00a75 Obsidian Rod");

LanguageRegistry.addName(Irod, "\u00a77 Iron Rod");

GameRegistry.addBiome(scandinavianForest);

GameRegistry.addBiome(shortJungle);

GameRegistry.addBiome(impossibleHills);

GameRegistry.addBiome(greenGreens);

GameRegistry.addBiome(alphaGround);

GameRegistry.addBiome(alphaHills);

GameRegistry.addBiome(alphaGroundSnow);

GameRegistry.addBiome(alphaHillsSnow);

 

//Food

Pasta.iconIndex = 76;

Spaghetti.iconIndex = 75;

Bolognese.iconIndex = 95;

Carbonara.iconIndex = 94;

SaltBeef.iconIndex = 31;

SaltChic.iconIndex = 47;

Cheese.iconIndex = 78;

Salt.iconIndex = 59;

ChocDarkBar.iconIndex = 28;

ChocApple.iconIndex = 14;

ChocBar.iconIndex = 12;

Banana.iconIndex = 77;

SaltPork.iconIndex = 30;

SugarFlesh.iconIndex = 60;

BurgerBread.iconIndex = 62;

CheeseBurger.iconIndex = 61;

Tomato.iconIndex = 93;

Flour.iconIndex = 43;

Dough.iconIndex = 63;

GoldBread.iconIndex = 27;

EggNBacon.iconIndex = 11;

SaltBacon.iconIndex = 46;

RawBacon.iconIndex = 13;

Bacon.iconIndex = 29;

Slicebread.iconIndex = 44;

Dapple.iconIndex = 15;

Lemon.iconIndex = 79;

MilkGlass.iconIndex = 111;

Lemonade.iconIndex = 109;

TomatoSoup.iconIndex = 108;

Strawberry.iconIndex = 26;

Raspberry.iconIndex = 10;

Blueberry.iconIndex = 42;

LanguageRegistry.addName(Blueberry, "\u00a79 Blueberry");

LanguageRegistry.addName(Raspberry, "\u00a7c Raspberry");

LanguageRegistry.addName(Strawberry, "\u00a74 Strawberry");

LanguageRegistry.addName(TomatoSoup, "\u00a74 Tomato Soup");

LanguageRegistry.addName(Lemonade, "\u00a7e Lemonade");

LanguageRegistry.addName(MilkGlass, "Glass Of Milk");

LanguageRegistry.addName(Spaghetti, "\u00a7e Spaghetti");

LanguageRegistry.addName(Carbonara, "\u00a7e Spaghetti\u00a7f Carbonara");

LanguageRegistry.addName(Bolognese, "\u00a7e Spaghetti\u00a7c Bolognese");

LanguageRegistry.addName(Pasta, "\u00a7e Pasta");

LanguageRegistry.addName(Tomato, "\u00a7c Tomato");

LanguageRegistry.addName(SaltBeef, "\u00a7c Salted Steak");

LanguageRegistry.addName(SaltChic, "\u00a7c Salted Chicken");

LanguageRegistry.addName(Cheese, "\u00a7e Cheese");

LanguageRegistry.addName(Salt, "Salt");

LanguageRegistry.addName(ChocDarkBar, "\u00a76 Dark Chocolate Bar");

LanguageRegistry.addName(ChocApple, "\u00a76 Chocolate Apple");

LanguageRegistry.addName(ChocBar, "\u00a76 Chocolate Bar");

LanguageRegistry.addName(Banana, "\u00a7e Banana");

LanguageRegistry.addName(SaltPork, "\u00a7c Salted Porkchop");

LanguageRegistry.addName(SugarFlesh, "\u00a75 Sugared Flesh");

LanguageRegistry.addName(CheeseBurger, "\u00a7e Cheeseburger");

LanguageRegistry.addName(BurgerBread, "\u00a7e Burger Bread");

LanguageRegistry.addName(Flour, "Flour");

LanguageRegistry.addName(Dough, "\u00a7e Dough");

LanguageRegistry.addName(GoldBread, "\u00a76 Golden Bread");

LanguageRegistry.addName(EggNBacon, "\u00a76 Egg 'N Bacon");

LanguageRegistry.addName(SaltBacon, "\u00a7c Salted Bacon");

LanguageRegistry.addName(Dapple, "\u00a7b Diamond Apple");

LanguageRegistry.addName(Lemon, "\u00a7e Lemon");

LanguageRegistry.addName(Slicebread, "\u00a76 Slice Of Bread");

LanguageRegistry.addName(RawBacon, "\u00a7c Raw Bacon");

LanguageRegistry.addName(Bacon, "\u00a7c Cooked Bacon");

MilkGlass.setContainerItem(DrinkGlass);

Lemonade.setContainerItem(DrinkGlass);

 

//Tools

LanguageRegistry.addName(Paxel, "\u00a75 Obsidian Paxel");

LanguageRegistry.addName(Axe, "\u00a75 Obsidian Axe");

LanguageRegistry.addName(Sword, "\u00a75 Obsidian Sword");

LanguageRegistry.addName(Spade, "\u00a75 Obsidian Shovel");

LanguageRegistry.addName(Pickaxe, "\u00a75 Obsidian Pickaxe");

LanguageRegistry.addName(Hoe, "\u00a75 Obsidian Hoe");

LanguageRegistry.addName(DiPaxel, "\u00a7b Diamond Paxel");

 

LanguageRegistry.addName(GoPaxel, "\u00a7e Goldron Paxel");

LanguageRegistry.addName(GoAxe, "\u00a7e Goldron Axe");

LanguageRegistry.addName(GoSword, "\u00a7e Goldron Sword");

LanguageRegistry.addName(GoSpade, "\u00a7e Goldron Shovel");

LanguageRegistry.addName(GoPickaxe, "\u00a7e Goldron Pickaxe");

LanguageRegistry.addName(GoHoe, "\u00a7e Goldron Hoe");

 

LanguageRegistry.addName(Madgenium, "\u00a7c Madgenium Tool");

Madgenium.iconIndex = 37;

 

Paxel.iconIndex = 81;

Axe.iconIndex = 49;

Sword.iconIndex = 1;

Pickaxe.iconIndex = 33;

Spade.iconIndex = 17;

Hoe.iconIndex = 65;

DiPaxel.iconIndex = 80;

 

GoPaxel.iconIndex = 84;

GoAxe.iconIndex = 52;

GoSword.iconIndex = 4;

GoPickaxe.iconIndex = 36;

GoSpade.iconIndex = 20;

GoHoe.iconIndex = 68;

 

LanguageRegistry.addName(TestBow, "\u00a7c Madgenium Bow");

LanguageRegistry.addName(emAxe, "\u00a72 Emerald Axe");

LanguageRegistry.addName(emSword, "\u00a72 Emerald Sword");

LanguageRegistry.addName(emSpade, "\u00a72 Emerald Shovel");

LanguageRegistry.addName(emPickaxe, "\u00a72 Emerald Pickaxe");

LanguageRegistry.addName(emHoe, "\u00a72 Emerald Hoe");

TestBow.iconIndex = 69;

emAxe.iconIndex = 48;

emSword.iconIndex = 0;

emPickaxe.iconIndex = 32;

emSpade.iconIndex = 16;

emHoe.iconIndex = 64;

LanguageRegistry.addName(UltraSw, "\u00a79Ultranite Sword");

LanguageRegistry.addName(UltraP, "\u00a79 Ultranite Pickaxe");

UltraSw.iconIndex = 2;

UltraP.iconIndex = 34;

 

//Armor

LanguageRegistry.addName(goldronHelm, "\u00a7e Goldron Helmet");

LanguageRegistry.addName(goldronChest, "\u00a7e Goldron Chestplate");

LanguageRegistry.addName(goldronLegs, "\u00a7e Goldron Leggings");

LanguageRegistry.addName(goldronShoes, "\u00a7e Goldron Boots");

LanguageRegistry.addName(emHelm, "\u00a72 Emerald Helmet");

LanguageRegistry.addName(emChest, "\u00a72 Emerald Chestplate");

LanguageRegistry.addName(emLegs, "\u00a72 Emerald Leggings");

LanguageRegistry.addName(emShoes, "\u00a72 Emerald Boots");

LanguageRegistry.addName(ultraHelm, "\u00a79 Ultranite Helmet");

LanguageRegistry.addName(ultraChest, "\u00a79 Ultranite Chestplate");

LanguageRegistry.addName(ultraLegs, "\u00a79 Ultranite Leggings");

LanguageRegistry.addName(ultraShoes, "\u00a79 Ultranite Boots");

goldronHelm.iconIndex = 100;

goldronChest.iconIndex = 116;

goldronLegs.iconIndex = 132;

goldronShoes.iconIndex = 148;

emHelm.iconIndex = 96;

emChest.iconIndex = 112;

emLegs.iconIndex = 128;

emShoes.iconIndex = 144;

ultraHelm.iconIndex = 98;

ultraChest.iconIndex = 114;

ultraLegs.iconIndex = 130;

ultraShoes.iconIndex = 146;

 

//Mobs

int monkeyBackground = 0x554306;

int monkeySpots = 0xC8B77B;

 

int thorBackground = 0x0EB0A8;

int thorSpots = 0x492911;

EntityRegistry.registerGlobalEntityID(ThorMod_EntityEmeraldPrimed.class, "EmBomb",  ModLoader.getUniqueEntityId());

EntityRegistry.registerGlobalEntityID(ThorMod_EntitySteveMonkey.class, "Monkey",  ModLoader.getUniqueEntityId(), monkeyBackground, monkeySpots);

EntityRegistry.registerGlobalEntityID(ThorMod_EntityThor.class, "ThorMob", ModLoader.getUniqueEntityId(), thorBackground, thorSpots);

LanguageRegistry.instance().addStringLocalization("entity.Monkey.name", "en_US", "Monkey");

LanguageRegistry.instance().addStringLocalization("entity.ThorMob.name", "en_US", "Thor");

EntityRegistry.addSpawn(ThorMod_EntitySteveMonkey.class, 35, 3, 5, EnumCreatureType.creature, BiomeGenBase.jungle);

EntityRegistry.addSpawn(ThorMod_EntitySteveMonkey.class, 35, 3, 5, EnumCreatureType.creature, ThorMod.shortJungle);

 

//Registers and Such

ThorMod_Recipes.initializeRecipes();

GameRegistry.registerWorldGenerator(new ThorMod_Generate());

}

 

public int addFuel(int id, int metadata)

{     

if(id == Plutonium.shiftedIndex)

{

return 3200;

}

return 0;

}

 

public String getVersion()

{

return "ThorMod";

}

 

 

}

 

 

Link to comment
Share on other sites

Can you post the constructor for ThorMod_UltraOre(int, int) and any static variables that have initializers it has (anything that is declared static and has a = on the same line.

 

public static SomeClass SomeVariable = new SomeClass();

 

Edit: If the class has a super class the static variables from the super class too.

 

Edit2: Let me explain what I think is going on:

 

"ThorMod.<clinit>" means while it was trying to create the class (before even the constructor was called, but I am not 100% sure) one of the static field variables thew a NoClassDefFoundError when trying to find the obfuscated class apn. apn is net/minecraft/src/GuiScreen, so likely the bad line is similar to

static final GuiScreen someGuiScreen = new GuiScreen();

 

change the code to

@SideOnly(Side.CLIENT)
static final GuiScreen someGuiScreen = new GuiScreen();

and that may fix your problem, it will no longer initialize the GuiScreen on the server side.

Link to comment
Share on other sites

ThorMod_UltraOre

 

package thormod;                                                            import net.minecraft.src.*;

 

import java.util.*;

 

public class ThorMod_UltraOre extends Block

 

{

public ThorMod_UltraOre(int i, int j)

{

super(i, 4, Material.rock);

}

 

public int idDropped(int i, Random rand, int j)

{

return ThorMod.UltDust.shiftedIndex;

}

 

public int getBlockTextureFromSide(int side)

{

return 17;

}

 

public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)

{

int var4 = 1000;

 

while (var4 > 0)

{

int var5 = EntityXPOrb.getXPSplit(var4);

var4 -= var5;

par1World.spawnEntityInWorld(new EntityXPOrb(par1World, (double)par2 + 0.5D, (double)par3 + 0.5D, (double)par4 + 0.5D, var5));

}

}

 

public int quantityDropped(Random random)

{

return 2;

}

 

@Override

public String getTextureFile() {

return "/Thormod/blocks.png";

}

}

 

 

Link to comment
Share on other sites

You DO realise bumping posts here is an absolute no-no?

And yeah, you must be attempting to call a client class on the server.

Read the EAQ before posting! OR ELSE!

 

This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

Link to comment
Share on other sites

Someone get cpw!

We need a log.

 

---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3

Time: 05.09.12 16:31
Description: Exception in server tick loop

cpw.mods.fml.common.LoaderException: java.lang.reflect.InvocationTargetException
at cpw.mods.fml.common.LoadController.transition(LoadController.java:102)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:591)
at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:83)
at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:330)
at ft.b(DedicatedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:415)
at ep.run(SourceFile:539)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:297)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:81)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:590)
... 5 more
Caused by: java.lang.NoSuchMethodError: hk.i()Ljava/lang/String;
at ModLoader.addAchievementDesc(ModLoader.java:63)
at ThorMod.load(ThorMod.java:582)
... 31 more

Relevant Details:
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 1832537152 bytes (1747 MB) / 2058027008 bytes (1962 MB) up to 2058027008 bytes (1962 MB)
- JVM Flags: 2 total; -Xmx2G -Xms2G
- Is Modded: Definitely; 'forge,fml'
- Profiler Position: N/A (disabled)
- Type: Dedicated Server

Link to comment
Share on other sites

Thanks for the log, seems like the hook in vMC for that to work is failing.

Well, we still need cpw, I honestly don't know.

Read the EAQ before posting! OR ELSE!

 

This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • I have been trying to download Forge but the Windows Installer isn't coming up, I can see the installer one would use for Linux but no Windows, I have downloaded Java and Jarfix but nothing is working, can someone help?  
    • So I thought that when a capability is attached to an item/entity/etc... the capability will stay until whatever it's attached to is gone. But this doesn't seem to be the case, as when I printed to console whenever a capability is attached, it seems as though a new version of the capability is attached to an item every time I select it in my hotbar, hover over it in inventory, etc. Is this how it's supposed to work? If so, why?
    • Hi, I'm trying to set up a simple forge server just to play with a couple of my friends, but no matter what I do or try I cannot seem to get a Mods folder and for the actual forge part of the server to actually launch. Every time I try to launch the forge.jar via a .bat file I just get a bunch of errors [Errors below] I'm not sure what I'm doing wrong. If I can get some help that would be awesome, thanks C:\Users\User\Desktop\Server>java -Xms2G -Xmx6G -jar forge-1.12.2-14.23.5.2855.jar nogui A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.base/java.lang.reflect.Method.invoke(Method.java:567)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34) Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')         at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)         at net.minecraft.launchwrapper.Launch.main(Launch.java:28)         ... 6 more C:\Users\User\Desktop\Server>pause Press any key to continue . . .  
    • Is it ok if i ask what that is?
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.