Jump to content

Dedicated server keeps saying NoClassDefFoundError guiScreen.java


WilliamLe

Recommended Posts

My mod runs fine with ssp or lan, no problems with that.

But when it comes to dedicated server, it keeps throwing java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen even though there's not a single line referred to GuiScreen.java or any subclass in my ModBase.java

 

I'm using 1.6.2, with only recommended Forge

Here's the log

 

 

---- Minecraft Crash Report ----

// Oh - I know what I did wrong!

 

Time: 7/19/13 8:08 AM

Description: Exception in server tick loop

 

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen

at cpw.mods.fml.common.LoadController.transition(LoadController.java:148)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)

at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:69)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen

at willeze.minegicka.ModBase.initStuffs(ModBase.java:176)

at willeze.minegicka.ModBase.preInit(ModBase.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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)

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:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:193)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:173)

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:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:104)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:521)

... 5 more

Caused by: java.lang.ClassNotFoundException: net.minecraft.client.gui.GuiScreen

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:179)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 34 more

Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/GuiScreen for invalid side SERVER

at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:51)

at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:267)

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:165)

... 36 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.6.2

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_13, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 996168312 bytes (950 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v8.04 FML v6.2.19.789 Minecraft Forge 9.10.0.789 4 mods loaded, 4 mods active

mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{6.2.19.789} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized

Forge{9.10.0.789} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized

minegicka{1.1.0} [Minegicka 2] (bin) Unloaded->Constructed->Errored

Profiler Position: N/A (disabled)

Is Modded: Definitely; Server brand changed to 'fml,forge'

Type: Dedicated Server (map_server.txt)

 

 

 

And here's the line where it "causes" the crash, line 176

 

 

magikBook = new ItemMagikBook(config.getInt("Magik Book id", startID++)).setUnlocalizedName(mID+":magikBook");

 

 

And here's the whole file in case it helps

 

 

package willeze.minegicka;

 

import java.io.File;

import java.util.logging.Logger;

 

import net.minecraft.block.Block;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.EnumRarity;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.stats.Achievement;

import net.minecraftforge.common.AchievementPage;

import net.minecraftforge.common.MinecraftForge;

import willeze.minegicka.core.Element;

import willeze.minegicka.magicks.Magick;

import willeze.minegicka.managings.CreatingHandler;

import willeze.minegicka.managings.EventListener;

import willeze.minegicka.managings.GuiHandler;

import willeze.minegicka.managings.ModKeyHandler;

import willeze.minegicka.managings.PacketHandler;

import willeze.minegicka.managings.TickHandlerClient;

import willeze.minegicka.managings.TickHandlerServer;

import willeze.minegicka.managings.WorldGenerator;

import willeze.minegicka.stuffs.objects.BlockDustGenerator;

import willeze.minegicka.stuffs.objects.BlockMagikAltar;

import willeze.minegicka.stuffs.objects.ItemDustGenerator;

import willeze.minegicka.stuffs.objects.ItemMagikBook;

import willeze.minegicka.stuffs.objects.ItemMagikDust;

import willeze.minegicka.stuffs.objects.ItemUnlockScroll;

import willeze.minegicka.stuffs.objects.TileDustGenerator;

import willeze.minegicka.stuffs.objects.TileMagikAltar;

import willeze.minegicka.stuffs.objects.hats.HatsManager;

import willeze.minegicka.stuffs.objects.staves.ItemStaff;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElemental;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalArcane;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalCold;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalEarth;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalFire;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalIce;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalLife;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalLightning;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalShield;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalSteam;

import willeze.minegicka.stuffs.objects.staves.ItemStaffElementalWater;

import willeze.minegicka.stuffs.spellentities.EntityBeam;

import willeze.minegicka.stuffs.spellentities.EntityBeamArea;

import willeze.minegicka.stuffs.spellentities.EntityLightning;

import willeze.minegicka.stuffs.spellentities.EntityMine;

import willeze.minegicka.stuffs.spellentities.EntityProjectile;

import willeze.minegicka.stuffs.spellentities.EntityShield;

import willeze.minegicka.stuffs.spellentities.EntitySprayCold;

import willeze.minegicka.stuffs.spellentities.EntitySprayFire;

import willeze.minegicka.stuffs.spellentities.EntitySpraySteam;

import willeze.minegicka.stuffs.spellentities.EntitySprayWater;

import willeze.minegicka.stuffs.spellentities.EntityStormSpray;

import willeze.minegicka.stuffs.spellentities.EntityWall;

import cpw.mods.fml.client.registry.KeyBindingRegistry;

import cpw.mods.fml.common.FMLLog;

import cpw.mods.fml.common.Mod;

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

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

import cpw.mods.fml.common.SidedProxy;

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

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

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

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

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

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

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

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

import cpw.mods.fml.relauncher.Side;

 

class dummy

{

public static final String nameMachine = "minegicka";

public static final String nameFriendly = "Minegicka 2";

}

 

@Mod(modid=dummy.nameMachine, name=dummy.nameFriendly, version="1.1.0")

@NetworkMod

(

clientSideRequired = true,

serverSideRequired = false,

packetHandler = PacketHandler.class,

channels = dummy.nameMachine

)

public class ModBase

{

public static final String forMCVersion = "1.6.2";

public static final String mID = dummy.nameMachine;

public static final String mName = dummy.nameFriendly;

@Instance(dummy.nameMachine)

public static ModBase instance;

@SidedProxy(clientSide="willeze."+dummy.nameMachine+".ClientProxy", serverSide="willeze."+dummy.nameMachine+".CommonProxy")

public static CommonProxy proxy;

public static ConfigFile config = new ConfigFile();

public static ConfigFile graphicConfig = new ConfigFile();

public static Logger logger;

public static Registerer reg = new Registerer();

public static CreativeTabs customTab = new CreativeTabCustom(mName);

public static String gameFolder;

 

@EventHandler

public void preInit(FMLPreInitializationEvent event)

{

event.getModMetadata().autogenerated = false;

event.getModMetadata().authorList.add("Will.Eze, Will.Eze, and Will.Eze");

event.getModMetadata().description = "A magic mod based on Paradox's awesome game, Magicka. " +

"Unlock spells, get magicks, craft staves, cast spells, and kill monsters, or even players. " +

"All are available for your tiny blocky hand. Works with MC"+forMCVersion;

event.getModMetadata().logoFile = "/willeze/minegicka/minegicka2.png";

event.getModMetadata().url = "http://www.minecraftforum.net/topic/1702181-minegicka-revived/";

event.getModMetadata().credits = "TheMagos for the amazing story. And everyone else in WIP section for supporting this revival since it's....birth.";

 

gameFolder = event.getModConfigurationDirectory().getParent();

config.setConfigHeader(mName);

config.loadUsing(new File(gameFolder+"/config/"+mID+".cfg"));

graphicConfig.setConfigHeader(mName+" Graphic");

graphicConfig.loadUsing(new File(gameFolder+"/config/"+mID+"Graphic.cfg"));

logger = Logger.getLogger(mName);

logger.setParent(FMLLog.getLogger());

 

initStuffs();

HatsManager.preInit();

}

 

    @EventHandler

public void load(FMLInitializationEvent event)

{

TickRegistry.registerTickHandler(new TickHandlerServer(), Side.SERVER);

TickRegistry.registerTickHandler(new TickHandlerClient(), Side.CLIENT);

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

NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler());

GameRegistry.registerWorldGenerator(new WorldGenerator());

GameRegistry.registerCraftingHandler(new CreatingHandler());

GameRegistry.registerFuelHandler(new CreatingHandler());

GameRegistry.registerPickupHandler(new CreatingHandler());

KeyBindingRegistry.registerKeyBinding(new ModKeyHandler());

proxy.proxyInit();

registerEntities();

registerStuffs();

addItemRecipes();

addBlockRecipes();

LanguageRegistry.instance().addStringLocalization("itemGroup."+mName, mName);

HatsManager.init();

}

 

    @EventHandler

public void postInit(FMLPostInitializationEvent event)

{

config.save();

graphicConfig.save();

HatsManager.postInit();

}

 

public static AchievementPage achvPage;

public static Achievement obtBook,unlWater,unlLife,unlShield,unlCold,unlLightning,unlArcane,unlEarth,unlFire;

public static Block magikAltar;

public static BlockDustGenerator dustGeneratorMK1, dustGeneratorMK2, dustGeneratorMK3;

public static Item unlockScroll;

public static Item magikDust,magikDustAdvanced,magikDustEpic,magikBook;

public static Item basicStaff,elementalStaff,advancedStaff,epicStaff;

public static Item waterStaff,lifeStaff,shieldStaff,coldStaff,lightningStaff,arcaneStaff,earthStaff,fireStaff,steamStaff,iceStaff;

 

public void initStuffs()

{

Element.initAll();

Magick.initAll();

StaticFields.loadStatics();

StaticFunc.loadStatics();

 

int startID = 22746;

magikDust = new ItemMagikDust(config.getInt("Magik Dust id", startID++),0.01).setUnlocalizedName(mID+":magikDust");

magikDustAdvanced = new ItemMagikDust(config.getInt("Advanced Magik Dust id", startID++),0.1).setUnlocalizedName(mID+":magikDustAdvanced");

magikDustEpic = new ItemMagikDust(config.getInt("Epic Magik Dust id", startID++),1).setUnlocalizedName(mID+":magikDustEpic");

magikBook = new ItemMagikBook(config.getInt("Magik Book id", startID++)).setUnlocalizedName(mID+":magikBook");

basicStaff = new ItemStaff(config.getInt("Basic Staff id", startID++)).setUnlocalizedName(mID+":basicStaff");

advancedStaff = new ItemStaff(config.getInt("Advanced Staff id", startID++)).setPower(1.5).setManaConsumeRate(0.8).setUnlocalizedName(mID+":advancedStaff");

epicStaff = new ItemStaff(config.getInt("Epic Staff id", startID++)).setPower(3).setManaConsumeRate(0.5).setUnlocalizedName(mID+":epicStaff");

elementalStaff = new ItemStaffElemental(config.getInt("Elemental Staff id", startID++)).setUnlocalizedName(mID+":elementalStaff");

waterStaff = new ItemStaffElementalWater(config.getInt("Water Staff id", startID++)).setUnlocalizedName(mID+":waterStaff");

lifeStaff = new ItemStaffElementalLife(config.getInt("Life Staff id", startID++)).setUnlocalizedName(mID+":lifeStaff");

shieldStaff = new ItemStaffElementalShield(config.getInt("Shield Staff id", startID++)).setUnlocalizedName(mID+":shieldStaff");

coldStaff = new ItemStaffElementalCold(config.getInt("Cold Staff id", startID++)).setUnlocalizedName(mID+":coldStaff");

lightningStaff = new ItemStaffElementalLightning(config.getInt("Lightning Staff id", startID++)).setUnlocalizedName(mID+":lightningStaff");

arcaneStaff = new ItemStaffElementalArcane(config.getInt("Arcane Staff id", startID++)).setUnlocalizedName(mID+":arcaneStaff");

earthStaff = new ItemStaffElementalEarth(config.getInt("Earth Staff id", startID++)).setUnlocalizedName(mID+":earthStaff");

fireStaff = new ItemStaffElementalFire(config.getInt("Fire Staff id", startID++)).setUnlocalizedName(mID+":fireStaff");

steamStaff = new ItemStaffElementalSteam(config.getInt("Steam Staff id", startID++)).setUnlocalizedName(mID+":steamStaff");

iceStaff = new ItemStaffElementalIce(config.getInt("Ice Staff id", startID++)).setUnlocalizedName(mID+":iceStaff");

 

startID = 22800;

unlockScroll = new ItemUnlockScroll(config.getInt("Unlock Scroll id", startID++)).setUnlocalizedName(mID+":unlockScroll");

 

magikAltar = new BlockMagikAltar(config.getInt("Magik Altar id", 858)).setUnlocalizedName(mID+":magikAltar").func_111022_d(mID+":magikAltar");

dustGeneratorMK1 = (BlockDustGenerator) new BlockDustGenerator(config.getInt("Dust Generator MKI id", 859), (ItemMagikDust) magikDust, 16, 1).setUnlocalizedName(mID+":dustGenerator1").func_111022_d(mID+":dustGenerator");

dustGeneratorMK2 = (BlockDustGenerator) new BlockDustGenerator(config.getInt("Dust Generator MKII id", 860), (ItemMagikDust) magikDustAdvanced, 768, 2).setUnlocalizedName(mID+":dustGenerator2").func_111022_d(mID+":dustGenerator");

dustGeneratorMK3 = (BlockDustGenerator) new BlockDustGenerator(config.getInt("Dust Generator MKIII id", 861), (ItemMagikDust) magikDustEpic, 36864, 3).setUnlocalizedName(mID+":dustGenerator3").func_111022_d(mID+":dustGenerator");

Item.itemsList[dustGeneratorMK1.blockID] = new ItemDustGenerator(dustGeneratorMK1).setUnlocalizedName(mID+":dustGenerator1");

Item.itemsList[dustGeneratorMK2.blockID] = new ItemDustGenerator(dustGeneratorMK2).setUnlocalizedName(mID+":dustGenerator2");

Item.itemsList[dustGeneratorMK3.blockID] = new ItemDustGenerator(dustGeneratorMK3).setUnlocalizedName(mID+":dustGenerator3");

 

startID = 600;

obtBook = new Achievement(startID++, "obtBook", 0, 0, Item.book, null).setSpecial().registerAchievement();

unlWater = new Achievement(startID++, "unlWater", -3, -1, waterStaff, obtBook).registerAchievement();

unlLife = new Achievement(startID++, "unlLife", -1, -2, lifeStaff, obtBook).registerAchievement();

unlShield = new Achievement(startID++, "unlShield", 1, -2, shieldStaff, obtBook).registerAchievement();

unlCold = new Achievement(startID++, "unlCold", 3, -1, coldStaff, obtBook).registerAchievement();

unlLightning = new Achievement(startID++, "unlLightning", -3, 1, lightningStaff, obtBook).registerAchievement();

unlArcane = new Achievement(startID++, "unlArcane", -1, 2, arcaneStaff, obtBook).registerAchievement();

unlEarth = new Achievement(startID++, "unlEarth", 1, 2, earthStaff, obtBook).registerAchievement();

unlFire = new Achievement(startID++, "unlFire", 3, 1, fireStaff, obtBook).registerAchievement();

achvPage = new AchievementPage("Minegicka", obtBook,unlWater,unlLife,unlShield,unlCold,unlLightning,unlArcane,unlEarth,unlFire);

AchievementPage.registerAchievementPage(achvPage);

}

 

public void clientInit()

{

((ItemMagikDust)magikDust).setRarity(EnumRarity.common);

((ItemMagikDust)magikDustAdvanced).setRarity(EnumRarity.uncommon);

((ItemMagikDust)magikDustEpic).setRarity(EnumRarity.epic);

((ItemStaff)advancedStaff).setRarity(EnumRarity.uncommon);

((ItemStaff)epicStaff).setRarity(EnumRarity.epic);

}

 

public void registerEntities()

{

reg.registerModEntity(EntitySprayCold.class, "SprayCold", 1, this, 64, 2, true);

reg.registerModEntity(EntitySprayFire.class, "SprayFire", 2, this, 64, 2, true);

reg.registerModEntity(EntitySpraySteam.class, "SpraySteam", 3, this, 64, 2, true);

reg.registerModEntity(EntitySprayWater.class, "SprayWater", 4, this, 64, 2, true);

reg.registerModEntity(EntityBeam.class, "Beam", 5, this, 64, 1, true);

reg.registerModEntity(EntityLightning.class, "Lightning", 6, this, 64, 3, true);

reg.registerModEntity(EntityProjectile.class, "Projectile", 7, this, 64, 1, true);

reg.registerModEntity(EntityShield.class, "Shield", 8, this, 64, 1, true);

reg.registerModEntity(EntityBeamArea.class, "BeamArea", 9, this, 64, 3, false);

reg.registerModEntity(EntityStormSpray.class, "StormSpray", 10, this, 64, 3, false);

reg.registerModEntity(EntityMine.class, "Mine", 11, this, 64, 1, true);

reg.registerModEntity(EntityWall.class, "Wall", 12, this, 64, 1, true);

}

 

public void registerStuffs()

{

GameRegistry.registerTileEntity(TileMagikAltar.class, "MagikAltar");

GameRegistry.registerTileEntity(TileDustGenerator.class, "DustGenerator");

reg.registerBlock(magikAltar, "Magik Altar");

reg.registerBlockHasItemBlock(dustGeneratorMK1, ItemDustGenerator.class, "Dust Generator MKI");

reg.registerBlockHasItemBlock(dustGeneratorMK2, ItemDustGenerator.class, "Dust Generator MKII");

reg.registerBlockHasItemBlock(dustGeneratorMK3, ItemDustGenerator.class, "Dust Generator MKIII");

 

reg.registerAchievement(obtBook, "Magik Book obtained", "Learning to be a wizark?");

reg.registerAchievement(unlArcane, "Arcane unlocked", "Pew! Pew! Pew! Die m***r f**ker!");

reg.registerAchievement(unlCold, "Cold unlocked", "Fire unlocked!");

reg.registerAchievement(unlEarth, "Earth unlocked", "Hello Mother Earth!");

reg.registerAchievement(unlFire, "Fire unlocked", "Cold unlocked!");

reg.registerAchievement(unlLife, "Life unlocked", "Pew! Pew! Pew! Live mo***r f**ker!");

reg.registerAchievement(unlLightning, "Lightning unlocked", "No place like Zeus's house!");

reg.registerAchievement(unlShield, "Shield unlocked", "Yellow shiny little rectangles!");

reg.registerAchievement(unlWater, "Water unlocked", "You can now wet pussies!");

reg.registerItem(unlockScroll, "Unlock Scroll");

reg.registerItem(magikDust, "Magik Dust");

reg.registerItem(magikDustAdvanced, "Advance Magik Dust");

reg.registerItem(magikDustEpic, "Epic Magik Dust");

reg.registerItem(magikBook, "Magik Book");

reg.registerItem(basicStaff, "Basic Staff");

reg.registerItem(advancedStaff, "Advanced Staff");

reg.registerItem(epicStaff, "Epic Staff");

reg.registerItem(elementalStaff, "Elemental Staff");

reg.registerItem(waterStaff, "Water Staff");

reg.registerItem(lifeStaff, "Life Staff");

reg.registerItem(shieldStaff, "Shield Staff");

reg.registerItem(coldStaff, "Cold Staff");

reg.registerItem(lightningStaff, "Lightning Staff");

reg.registerItem(arcaneStaff, "Arcane Staff");

reg.registerItem(earthStaff, "Earth Staff");

reg.registerItem(fireStaff, "Fire Staff");

reg.registerItem(steamStaff, "Steam Staff");

reg.registerItem(iceStaff, "Ice Staff");

}

 

public void addItemRecipes()

{

GameRegistry.addRecipe(new ItemStack(magikDustAdvanced), new Object[]{

"XXX","XXX","XXX", ('X'), magikDust

});

GameRegistry.addRecipe(new ItemStack(magikDustEpic), new Object[]{

"XXX","XXX","XXX", ('X'), magikDustAdvanced

});

GameRegistry.addShapelessRecipe(new ItemStack(magikDust,9), new Object[]{magikDustAdvanced});

GameRegistry.addShapelessRecipe(new ItemStack(magikDustAdvanced,9), new Object[]{magikDustEpic});

GameRegistry.addRecipe(new ItemStack(magikBook), new Object[]{

"FDF","EBE","PPP", ('P'), Item.paper, ('D'), magikDust, ('F'), Item.feather, ('B'), Item.book, ('E'), Item.enderPearl

});

GameRegistry.addRecipe(new ItemStack(basicStaff), new Object[]{

" SD"," SS","S  ", ('S'), Item.stick, ('D'), magikDust

});

GameRegistry.addRecipe(new ItemStack(advancedStaff), new Object[]{

" GD"," SG","I  ", ('I'), Item.ingotIron, ('D'), magikDustAdvanced, ('G'), Item.ingotGold, ('S'), basicStaff

});

GameRegistry.addRecipe(new ItemStack(epicStaff), new Object[]{

" GD"," SG","I  ", ('I'), Item.netherStar, ('D'), magikDustEpic, ('G'), Item.diamond, ('S'), advancedStaff

});

GameRegistry.addRecipe(new ItemStack(elementalStaff), new Object[]{

" R ","NSN","III", ('N'), Block.netherrack, ('I'), Item.ingotIron, ('R'), Item.redstone, ('S'), epicStaff

});

GameRegistry.addShapelessRecipe(new ItemStack(waterStaff), new Object[]{elementalStaff, Item.reed});

GameRegistry.addShapelessRecipe(new ItemStack(lifeStaff), new Object[]{elementalStaff, Item.cake});

GameRegistry.addShapelessRecipe(new ItemStack(shieldStaff), new Object[]{elementalStaff, Item.enderPearl, Item.arrow});

GameRegistry.addShapelessRecipe(new ItemStack(coldStaff), new Object[]{elementalStaff, Item.snowball});

GameRegistry.addShapelessRecipe(new ItemStack(lightningStaff), new Object[]{elementalStaff, Item.ingotIron});

GameRegistry.addShapelessRecipe(new ItemStack(arcaneStaff), new Object[]{elementalStaff, Item.blazeRod});

GameRegistry.addShapelessRecipe(new ItemStack(earthStaff), new Object[]{elementalStaff, Block.stone});

GameRegistry.addShapelessRecipe(new ItemStack(fireStaff), new Object[]{elementalStaff, Item.fireballCharge});

GameRegistry.addShapelessRecipe(new ItemStack(steamStaff), new Object[]{elementalStaff, Item.ghastTear});

GameRegistry.addShapelessRecipe(new ItemStack(iceStaff), new Object[]{elementalStaff, Block.blockSnow, Block.blockSnow, Block.blockSnow});

}

 

public void addBlockRecipes()

{

GameRegistry.addRecipe(new ItemStack(dustGeneratorMK1), new Object[]{

"DGD","DED","DLD", ('D'), magikDust, ('G'), Item.glowstone, ('E'), Item.emerald, ('L'), Block.glass

});

GameRegistry.addRecipe(new ItemStack(dustGeneratorMK2), new Object[]{

"DGD","DED","DLD", ('D'), magikDustAdvanced, ('G'), Item.glowstone, ('E'), Item.emerald, ('L'), dustGeneratorMK1

});

GameRegistry.addRecipe(new ItemStack(dustGeneratorMK3), new Object[]{

"DGD","DED","DLD", ('D'), magikDustEpic, ('G'), Item.glowstone, ('E'), Item.emerald, ('L'), dustGeneratorMK2

});

}

 

}

 

 

 

 

Thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Baba  Serege [[+27-73 590 8989]] has experience of 27 years in helping and guiding many people from all over the world. His psychic abilities may help you answer and resolve many unanswered questions. He specialize in helping women and men from all walks of life.. 1) – Bring back lost lover. even if lost for a long time. 2) – My lover is abusing alcohol, partying and cheating on me I urgently need help” 3) – Divorce or court issues. 4) – Is your love falling apart? 5) – Do you want your love to grow stronger? 6) – Is your partner losing interest in you? 7) – Do you want to catch your partner cheating on you? – We help to keep your partner faithful and loyal to you. 9) – We recover love and happiness when relationship breaks down. 10) – Making your partner loves you alone. 11) – We create loyalty and everlasting love between couples. 12) – Get a divorce settlement quickly from your ex-partner. 13) – We create everlasting love between couples. 14) – We help you look for the best suitable partner. 15) – We bring back lost lover even if lost for a long time. 16) – We strengthen bonds in all love relationship and marriages 17) – Are you an herbalist who wants to get more powers? 18) – Buy a house or car of your dream. 19) – Unfinished jobs by other doctors come to me. 20) – I help those seeking employment. 21) – Pensioners free treatment. 22) – Win business tenders and contracts. 23) – Do you need to recover your lost property? 24) – Promotion at work and better pay. 25) – Do you want to be protected from bad spirits and nightmares? 26) – Financial problems. 27) – Why you can’t keep money or lovers? 28) – Why you have a lot of enemies? 29) – Why you are fired regularly on jobs? 30) – Speed up money claim spell, delayed payments, pension and accident funds 31) – I help students pass their exams/interviews. 33) – Removal of bad luck and debts. 34) – Are struggling to sleep because of a spiritual wife or husband. 35- ) Recover stolen property
    • OLXTOTO adalah situs bandar togel online resmi terbesar dan terpercaya di Indonesia. Bergabunglah dengan OLXTOTO dan nikmati pengalaman bermain togel yang aman dan terjamin. Koleksi toto 4D dan togel toto terlengkap di OLXTOTO membuat para member memiliki pilihan taruhan yang lebih banyak. Sebagai situs togel terpercaya, OLXTOTO menjaga keamanan dan kenyamanan para membernya dengan sistem keamanan terbaik dan enkripsi data. Transaksi yang cepat, aman, dan terpercaya merupakan jaminan dari OLXTOTO. Nikmati layanan situs toto terbaik dari OLXTOTO dengan tampilan yang user-friendly dan mudah digunakan. Layanan pelanggan tersedia 24/7 untuk membantu para member. Bergabunglah dengan OLXTOTO sekarang untuk merasakan pengalaman bermain togel yang menyenangkan dan menguntungkan.
    • Baba  Serege [[+27-73 590 8989]] has experience of 27 years in helping and guiding many people from all over the world. His psychic abilities may help you answer and resolve many unanswered questions. He specialize in helping women and men from all walks of life.. 1) – Bring back lost lover. even if lost for a long time. 2) – My lover is abusing alcohol, partying and cheating on me I urgently need help” 3) – Divorce or court issues. 4) – Is your love falling apart? 5) – Do you want your love to grow stronger? 6) – Is your partner losing interest in you? 7) – Do you want to catch your partner cheating on you? – We help to keep your partner faithful and loyal to you. 9) – We recover love and happiness when relationship breaks down. 10) – Making your partner loves you alone. 11) – We create loyalty and everlasting love between couples. 12) – Get a divorce settlement quickly from your ex-partner. 13) – We create everlasting love between couples. 14) – We help you look for the best suitable partner. 15) – We bring back lost lover even if lost for a long time. 16) – We strengthen bonds in all love relationship and marriages 17) – Are you an herbalist who wants to get more powers? 18) – Buy a house or car of your dream. 19) – Unfinished jobs by other doctors come to me. 20) – I help those seeking employment. 21) – Pensioners free treatment. 22) – Win business tenders and contracts. 23) – Do you need to recover your lost property? 24) – Promotion at work and better pay. 25) – Do you want to be protected from bad spirits and nightmares? 26) – Financial problems. 27) – Why you can’t keep money or lovers? 28) – Why you have a lot of enemies? 29) – Why you are fired regularly on jobs? 30) – Speed up money claim spell, delayed payments, pension and accident funds 31) – I help students pass their exams/interviews. 33) – Removal of bad luck and debts. 34) – Are struggling to sleep because of a spiritual wife or husband. 35- ) Recover stolen property
  • Topics

×
×
  • Create New...

Important Information

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