There is an entire spoiler on textures and how to use them; including their placement in the correct directory.
Yes, it mentions where to put everthing when you use Eclipse and MCP. But not when you want to test it on the real game, or where the textures have to be when you release the mod.
Maybe something like:
And in your released Mod, the texture would have to be here:
*Your Mod in a Zip*/mods/flower.png
It would fit directly above "pictures have to be 16x16 pixel" line, and it might help clear some confusion. If the same thing is already standing there, then I must have overlooked it. Sorry in that case!
Srry if thats not enof info Srry bout me failing at spoilres I dont know where to put the little ^s Ill try though Also there is ^ under some of my } but i dont no which 1s
change "1.2.5" to "1.3.1"
EDIT: why did all those extra things come up when i put them in a code and a spoiler?
Yes, it mentions where to put everthing when you use Eclipse and MCP. But not when you want to test it on the real game, or where the textures have to be when you release the mod.
Maybe something like:
It would fit directly above "pictures have to be 16x16 pixel" line, and it might help clear some confusion. If the same thing is already standing there, then I must have overlooked it. Sorry in that case!
Modders just zip their files for convention, but it doesn't mean it should be. When you're testing out, you just put it somewhere inside the MCP folder but it depends if you are using Eclipse or not. Once you want to it play in the real game, that's when you put all of them in a zip file, but nonetheless, they would go to the minecraft.jar. Putting your mod on the mods folder works if your mod doesn't edit base classes. But the client actually makes it so it looked like it was placed in the jar. Modification means it adds, edits, or remove something from the jar itself.
I will do that but how do i re open the file with eclipes my pc froze and i saved it first though but i dont know how to reopen it
you should be able to open eclipse, and on the left there should 2 things, one says Client, on says Server. click the arrow on Client, then click the arrow on src, then on net.minecraft.src. there should be a bunch of class files, you just have to look for your files.
I am assuming this what you meant by re opening them?
you should be able to open eclipse, and on the left there should 2 things, one says Client, on says Server. click the arrow on Client, then click the arrow on src, then on net.minecraft.src. there should be a bunch of class files, you just have to look for your files.
I am assuming this what you meant by re opening them?
Thanks im fixing nowSuprise Suprise another error
The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
org.eclipse.core.runtime.CoreException: The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
at org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.doSetInput(ClassFileEditor.java:656)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3209)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1666)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1663)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3227)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3254)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:324)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)
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 org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:837)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:318)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:889)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:623)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1042)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:57)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:578)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:557)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:531)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:520)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:960)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3071)
at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2974)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2933)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2916)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1253)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
org.eclipse.core.runtime.CoreException: The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
at org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.doSetInput(ClassFileEditor.java:656)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3209)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1666)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1663)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3227)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3254)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:324)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)
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 org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:837)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:318)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:889)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:623)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1042)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:57)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:578)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:557)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:531)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:520)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:960)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3071)
at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2974)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2933)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2916)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1253)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
i think that has to do with mcp and eclipse, becasue i dont see any thing that could have something to do with the coding. but im not sure, never seen that error before
One, do I need to make a file, using the coding under "BlocknameHere"?
Two, I have no idea where I should place the texture for my block, where am I supposed to put the texture?
Three, I need to know if I should disregard the fact that there is an error saying BaseMod is invalid for anything.
Four, did anyone even check my coding, ya know, open the spoilers instead of glancing at it? I still have yet to know if I name them right, and if I put the names in the right spot for the two files.
I have absolutely no idea now, as of now beign that I have made three files.
File 1, was mod_core
File 2, was Core_Block
File 3, was ModLoader
I have absolutely no idea if I'm doing coding wrong or if there is something in the MCP folder that I'm not using.
Coding:
mod_core
package net.minecraft.src;
public class mod_core extends BaseMod
{
public static final Block mod_core = new Block(200, 0, Material.rock).setBlockName("Core_Block").setHardness(3F).setResistance(4F).setLightValue(12F);
public void load()
{
mod_core.blockIndexInTexture = ModLoader.addOverride("/gui/item.png", "/C:/Users/Anthony/Desktop/core.png");
ModLoader.registerBlock(mod_core);
ModLoader.addName(mod_core, "Core_Block");
ModLoader.addRecipe(new ItemStack(mod_core, 1), new Object [] {"#", '#', Block.dirt});
}
public String getVersion()
{
return "1.3.1";
}
}
Core_Block
package net.minecraft.src;
import java.util.Random;
public class Core_Block extends Block
{
public Core_Block(int i, int j)
{
super(200, 0, Material.rock);
}
public int id200(int i, Random random, int j)
{
return mod_core.mod_core.blockID;
}
public int quantity1(Random random)
{
return 1;
}
}
ModLoader
package net.minecraft.src;
public class mod_*** extends BaseMod
{
public void load()
{
}
public String getVersion()
{
return "1.3";
}
}
In the MCP folder, I've used all of the RUN files, and I have no clue what any, but three (Decompile, getchangedsrc, and cleanup), do. If there is something I'm supposed to do AFTER coding, then that would help a lot, if you told me.
This is every one of my problems in one go.
there is the coding. I used the "BlocknameHere" coding for Core_Block, I wonder if I did that right. Or if ti was the wrong move.
Any reason that my mob is invisible? I've made sure that the texture is correctly linked and everything no errors it's just invisible. Here's the code.
I want to make a crop and I followed the tutorial for it, I get no error's but when i place my crop on the ground it becomes just a block not a growing crop. Hope someone can help me out
Code
mod_carrot
package net.minecraft.src;
import java.util.*;
import net.minecraft.client.Minecraft;
public class mod_carrot extends BaseModMp
{
public static final Block WildCarrot = (new BlockWildCarrot(179, 0)).setHardness(0.0F).setResistance(11F).setBlockName("WildCarrot");
public static final Item Carrot = (new ItemFood(1002, 4, 0.3F, false)).setIconCoord(0, 0).setItemName("WildCarrot");
public static final Item carrotseeds;
public static final Block CarrotCrop = (new BlockCarrotCrop(178, 0).setBlockName("cropNameHere"));
public static int CarrotStage1 = ModLoader.addOverride("/terrain.png","/world/Cs1.png");
public static int CarrotStage2 = ModLoader.addOverride("/terrain.png","/world/Cs2.png");
public static int CarrotStage3 = ModLoader.addOverride("/terrain.png","/world/Cs3.png");
public static int CarrotStage4 = ModLoader.addOverride("/terrain.png","/world/Cs4.png");
public void load()
{
WildCarrot.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/World/WildCarrot.png");
Carrot.iconIndex = ModLoader.addOverride("/gui/items.png","/World/Carrot.png");
carrotseeds.iconIndex = ModLoader.addOverride("/gui/items.png","/World/carrotseeds.png");
CarrotCrop.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/World/WildCarrot1.png");
ModLoader.registerBlock(WildCarrot);
ModLoader.registerBlock(CarrotCrop);
ModLoader.addName(WildCarrot, "Wild Carrot");
ModLoader.addName(Carrot, "Carrot");
ModLoader.addName(CarrotCrop, "Carrot Crop");
ModLoader.addName(carrotseeds, "Carrot Seeds");
}
public void generateSurface(World world, Random random, int i, int j)
{
for (int k = 0; k > 7; k++) { }
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new WorldGenFlowers(WildCarrot.blockID)).generate(world, random, l, i1, j1);
}
}
static
{
carrotseeds = (new Itemcarrotseeds(1003, mod_carrot.CarrotCrop.blockID, Block.tilledField.blockID)).setIconCoord(9, 0).setItemName("seeds");
}
public String getVersion()
{
return "1.3.0";
}
}
BlockCarrotCrop
package net.minecraft.src;
import java.util.Random;
public class BlockCarrotCrop extends BlockFlower
{
public BlockCarrotCrop(int i, int j)
{
super(i, j);
blockIndexInTexture = j;
setTickRandomly(true);
float f = 0.5F;
setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f);
}
/**
* Gets passed in the blockID of the block below and supposed to return true if its allowed to grow on the type of
* blockID passed in. Args: blockID.
* This basically checks to see if the block below is a tilled field/tilled dirt. If it is true then the crop can grow.
*/
protected boolean canThisPlantGrowOnThisBlockID(int par1)
{
return par1 == Block.tilledField.blockID;
}
/**
* Ticks the block if it's been scheduled. This method gets scheduled to run because of the setTickRandomly part in the constructor of the class.
*/
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
super.updateTick(par1World, par2, par3, par4, par5Random);
if (par1World.getBlockLightValue(par2, par3 + 1, par4) >= 9)
{
int i = par1World.getBlockMetadata(par2, par3, par4);
if (i < 8)
{
float f = getGrowthRate(par1World, par2, par3, par4);
if (par5Random.nextInt((int)(25F / f) + 1) == 0)
{
i++;
par1World.setBlockMetadataWithNotify(par2, par3, par4, i);
}
}
}
}
/**
* This method allows you to use bonemeal on your crop. Code explanation below:
ItemStack itemstack = entityplayer.inventory.getCurrentItem(); - This line makes "itemstack" equal to the item currently in the players hand.
/**
* Gets the growth rate for the crop. Setup to encourage rows by halving growth rate if there is diagonals, crops on
* different sides that aren't opposing, and by adding growth for every crop next to this one (and for crop below
* this one). Args: x, y, z
*/
private float getGrowthRate(World par1World, int par2, int par3, int par4)
{
float f = 1.0F;
int i = par1World.getBlockId(par2, par3, par4 - 1);
int j = par1World.getBlockId(par2, par3, par4 + 1);
int k = par1World.getBlockId(par2 - 1, par3, par4);
int l = par1World.getBlockId(par2 + 1, par3, par4);
int i1 = par1World.getBlockId(par2 - 1, par3, par4 - 1);
int j1 = par1World.getBlockId(par2 + 1, par3, par4 - 1);
int k1 = par1World.getBlockId(par2 + 1, par3, par4 + 1);
int l1 = par1World.getBlockId(par2 - 1, par3, par4 + 1);
boolean flag = k == blockID || l == blockID;
boolean flag1 = i == blockID || j == blockID;
boolean flag2 = i1 == blockID || j1 == blockID || k1 == blockID || l1 == blockID;
for (int i2 = par2 - 1; i2 <= par2 + 1; i2++)
{
for (int j2 = par4 - 1; j2 <= par4 + 1; j2++)
{
int k2 = par1World.getBlockId(i2, par3 - 1, j2);
float f1 = 0.0F;
if (k2 == Block.tilledField.blockID)
{
f1 = 1.0F;
if (par1World.getBlockMetadata(i2, par3 - 1, j2) > 0)
{
f1 = 3F;
}
}
if (i2 != par2 || j2 != par4)
{
f1 /= 4F;
}
f += f1;
}
}
if (flag2 || flag && flag1)
{
f /= 2.0F;
}
return f;
}
/**
* The type of render function that is called for this block. The render type of 6 gets the texture and places it four times around the sides of the block and leaves nothing on the top or bottom.
*/
public int getRenderType()
{
return 1;
}
/**
* Drops the block items with a specified chance of dropping the specified items
*/
public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
{
super.dropBlockAsItemWithChance(par1World, par2, par3, par4, par5, par6, 0);
if (par1World.isRemote)
{
return;
}
int i = 3 + par7;
for (int j = 0; j < i; j++)
{
if (par1World.rand.nextInt(15) <= par5)
{
float f = 0.7F;
float f1 = par1World.rand.nextFloat() * f + (1.0F - f) * 0.5F;
float f2 = par1World.rand.nextFloat() * f + (1.0F - f) * 0.5F;
float f3 = par1World.rand.nextFloat() * f + (1.0F - f) * 0.5F;
EntityItem entityitem = new EntityItem(par1World, (float)par2 + f1, (float)par3 + f2, (float)par4 + f3, new ItemStack(mod_carrot.carrotseeds));
entityitem.delayBeforeCanPickup = 10;
par1World.spawnEntityInWorld(entityitem);
}
}
}
/**
* Returns the ID of the items to drop on destruction. "i" is equal to the blocks metadata value(explained slightly more in the getBlockTextureFromSideAndMetadata method below). This means that it will check that that value is equal to 8(the final stage of growth) and if it is then it will drop wheat. It may be fairly obvious, but the 'else' statement means that if the growth state is not equal to 7 then drop nothing (-1 means nothing)
*/
public int idDropped(int i, Random random, int j)
{
if (i == 8)
{
return mod_carrot.Carrot.shiftedIndex;
}
else
{
return -1;
}
}
/**
* Returns the quantity of items to drop on block destruction.
*/
public int quantityDropped(Random random)
{
return 1;
}
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata.
* As you may have been able to tell from the line above, "j" is equal to the metadata value of the block. This checks if that value is equal to a certain number then sets the blocks texture to what you have defined.
* The things that are being returned are the ints in your mod_ class which you created and set to your texture for the specific stages of growth.
*/
public int getBlockTextureFromSideAndMetadata(int i, int j)
{
if(j == 0)
{
return blockIndexInTexture;
}
if(j == 1)
{
return mod_carrot.CarrotStage1;
}
if(j == 2)
{
return mod_carrot.CarrotStage1;
}
if(j == 3)
{
return mod_carrot.CarrotStage2;
}
if(j == 4)
{
return mod_carrot.CarrotStage2;
}
if(j == 5)
{
return mod_carrot.CarrotStage2;
}
if(j == 6)
{
return mod_carrot.CarrotStage3;
}
if(j == 7)
{
return mod_carrot.CarrotStage3;
}
if(j == 8)
{
return mod_carrot.CarrotStage4;
}
return j;
}
}
Itemcarrotseed
package net.minecraft.src;
public class Itemcarrotseeds extends Item
{
/** The type of block this seed turns into (wheat or pumpkin stems for instance)*/
private int blockType;
/** BlockID of the block the seeds can be planted on. */
private int soilBlockID;
public Itemcarrotseeds(int i, int j, int k)
{
super(i);
blockType = j;
soilBlockID = k;
}
/**
* Callback for item usage. If the item does something special on right clicking, he will have one of those. Return
* True if something happen and false if it don't. This is for ITEMS, not BLOCKS !
*/
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7)
{
if (par7 != 1)
{
return false;
}
if (!par2EntityPlayer.canPlayerEdit(par4, par5, par6) || !par2EntityPlayer.canPlayerEdit(par4, par5 + 1, par6))
{
return false;
}
int i = par3World.getBlockId(par4, par5, par6);
if (i == soilBlockID && par3World.isAirBlock(par4, par5 + 1, par6))
{
par3World.setBlockWithNotify(par4, par5 + 1, par6, blockType);
par1ItemStack.stackSize--;
return true;
}
else
{
return false;
}
}
}
I just chanched from the code from Itemseeds.java to your code but now when i right click nothing happends you do get the animation from something happening but nothing happens
Try changing your CarrotCrop to this
public static final Block CarrotCrop = (new BlockCarrotCrop(178, 0).setBlockName("CarrotCrop").setRequiresSelfNotify());
[01:47:39] Overriding /gui/items.png with /textures/lurium.png @ 38. 80 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumhotiron.png @ 102. 79
left.
[01:47:39] Overriding /gui/items.png with /textures/luriumpickaxe.png @ 118. 78
left.
[01:47:39] Overriding /gui/items.png with /textures/luriumaxe.png @ 119. 77 left
.
[01:47:39] Overriding /gui/items.png with /textures/luriumshovel.png @ 120. 76 l
eft.
[01:47:39] Overriding /gui/items.png with /textures/luriumsword.png @ 134. 75 le
ft.
[01:47:39] Overriding /gui/items.png with /textures/luriumhoe.png @ 144. 74 left
.
[01:47:39] Overriding /gui/items.png with /textures/luriumhelmet.png @ 145. 73 l
eft.
[01:47:39] Overriding /gui/items.png with /textures/luriumchestplate.png @ 146.
72 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumleggins.png @ 147. 71
left.
[01:47:39] Overriding /gui/items.png with /textures/luriumboots.png @ 148. 70 le
ft.
[01:47:39] Overriding /gui/items.png with /textures/luriumiron.png @ 149. 69 lef
t.
[01:47:39] Overriding /gui/items.png with /textures/luriumaxebillet.png @ 150. 6
8 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumpickaxebillet.png @ 15
2. 67 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumhoebillet.png @ 160. 6
6 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumshovelbillet.png @ 161
. 65 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumswordbilletpartone.png
@ 162. 64 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumswordbilletpartotwo.pn
g @ 163. 63 left.
[01:47:39] Overriding /gui/items.png with /textures/hiltofluriumsword.png @ 164.
62 left.
[01:47:49] Exception in thread "Minecraft main thread" java.lang.ExceptionInInit
ializerError
[01:47:49] at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
[01:47:49] at net.minecraft.client.Minecraft.run(Minecraft.java:724)
[01:47:49] at java.lang.Thread.run(Thread.java:722)
[01:47:49] Caused by: java.lang.RuntimeException: java.lang.StringIndexOutOfBoun
dsException: String index out of range: 10
[01:47:49] at net.minecraft.src.ModLoader.init(ModLoader.java:963)
[01:47:49] at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:16
1)
[01:47:49] at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
[01:47:49] at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:1
4)
[01:47:49] ... 3 more
[01:47:49] Caused by: java.lang.StringIndexOutOfBoundsException: String index ou
t of range: 10
[01:47:49] at java.lang.String.charAt(String.java:695)
[01:47:49] at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.j
ava:185)
[01:47:49] at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:482)
[01:47:49] at net.minecraft.src.mod_litto.load(mod_litto.java:112)
[01:47:49] at net.minecraft.src.ModLoader.init(ModLoader.java:927)
[01:47:49] ... 6 more
Minecraft Error
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
This error has been saved to C:\Users\Litto\Desktop\Minecraft Coder Pack\jars\.\crash-reports\crash-2012-08-11_01.47.49-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT f49d38a --------
Generated 11.08.12 1:47
- Minecraft Version: 1.3.1
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 997854656 bytes (951 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
- JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
- ModLoader: Mods loaded: 2
ModLoader 1.3.1
mod_litto 1.3.1
java.lang.StringIndexOutOfBoundsException: String index out of range: 10
at java.lang.String.charAt(String.java:695)
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:185)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:482)
at net.minecraft.src.mod_litto.load(mod_litto.java:112)
at net.minecraft.src.ModLoader.init(ModLoader.java:927)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:161)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT dee0d599 ----------
Here is my mod_litto code
package net.minecraft.src;
import java.util.Random;
public class mod_litto extends BaseMod
{
public static final Block LuriumOre = new BlockLuriumOre(160, 0).setBlockName("LuriumOre").setHardness(3.0F).setResistance(5F).setLightValue(0F).setCreativeTab(CreativeTabs.tabBlock);
public static final Block LuriumBlock = new BlockLuriumBlock(161, 0).setBlockName("LuriumBlock").setHardness(3F).setResistance(4F).setLightValue(0F).setCreativeTab(CreativeTabs.tabBlock);
public static final Item Lurium = new ItemLurium(5000).setItemName("Lurium").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumIron = new ItemLuriumIron(5001).setItemName("LuriumIron").setTabToDisplayOn(CreativeTabs.tabMaterials).setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item Pickaxe = new ItemLuriumPickaxe(5002, EnumToolMaterialLurium.MATERIALLurium).setItemName("Pickaxe").setTabToDisplayOn(CreativeTabs.tabTools);
public static final Item Axe = new ItemLuriumAxe(5003, EnumToolMaterialLurium.MATERIALLurium).setItemName("Axe").setTabToDisplayOn(CreativeTabs.tabTools);
public static final Item Shovel = new ItemLuriumShovel(5004, EnumToolMaterialLurium.MATERIALLurium).setItemName("Shovel").setTabToDisplayOn(CreativeTabs.tabTools);
public static final Item Sword = new ItemLuriumSword(5005, EnumToolMaterialLurium.MATERIALLurium).setItemName("Sword").setTabToDisplayOn(CreativeTabs.tabTools);
public static final Item Hoe = new ItemLuriumHoe(5006, EnumToolMaterialLurium.MATERIALLurium).setItemName("Hoe").setTabToDisplayOn(CreativeTabs.tabTools);
public static Item LuriumHelmet=(new ItemArmor(5007, EnumArmorMaterial.Lurium, 5, 0)).setItemName("LuriumHelmet").setTabToDisplayOn(CreativeTabs.tabCombat);
public static Item LuriumChestplate=(new ItemArmor(5008, EnumArmorMaterial.Lurium, 5, 1)).setItemName("LuriumChestplate").setTabToDisplayOn(CreativeTabs.tabCombat);
public static Item LuriumLeggins=(new ItemArmor(5009, EnumArmorMaterial.Lurium, 5, 2)).setItemName("LuriumLeggins").setTabToDisplayOn(CreativeTabs.tabCombat);
public static Item LuriumBoots=(new ItemArmor(5010, EnumArmorMaterial.Lurium, 5, 3)).setItemName("LuriumBoots").setTabToDisplayOn(CreativeTabs.tabCombat);
public static final Item LuriumHotIron = new ItemLuriumHotIron(5011).setItemName("LuriumHotIron").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumAxeBillet = new ItemLuriumAxeBillet(5012).setItemName("LuriumAxeBillet").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumPickaxeBillet = new ItemLuriumPickaxeBillet(5013).setItemName("LuriumPickAxe").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumHoeBillet = new ItemLuriumHoeBillet(5014).setItemName("LuriumHoeBillet").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumShovelBillet = new ItemLuriumShovelBillet(5015).setItemName("LuriumShovelBillet").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumSwordBilletPartOne = new ItemLuriumSwordBilletPartOne(5016).setItemName("LuriumSwordBilletPartOne").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumSwordBilletPartTwo = new ItemLuriumSwordBilletPartTwo(5017).setItemName("SwordBilletPartTwo").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item HiltOfLuriumSword = new ItemHiltOfLuriumSword(5018).setItemName("HiltOfLuriumSword").setTabToDisplayOn(CreativeTabs.tabMaterials);
public void load()
{
LuriumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/luriumore.png");
ModLoader.registerBlock(LuriumOre);
ModLoader.addName(LuriumOre, "Lurium Ore");
LuriumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/luriumblock.png");
ModLoader.registerBlock(LuriumBlock);
ModLoader.addName(LuriumBlock, "LuriumBlock");
ModLoader.addRecipe(new ItemStack(LuriumBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), mod_litto.Lurium});
Lurium.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/lurium.png");
ModLoader.addName(Lurium, "Lurium");
ModLoader.addRecipe(new ItemStack(Lurium, 9), new Object [] {"#", Character.valueOf('#'), mod_litto.LuriumBlock});
LuriumHotIron.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumhotiron.png");
ModLoader.addName(LuriumHotIron, "Lurium Hot Iron");
ModLoader.addSmelting(mod_litto.LuriumIron.shiftedIndex, new ItemStack(mod_litto.LuriumHotIron, 1), 1.0F);
Pickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumpickaxe.png");
ModLoader.addName(Pickaxe, "Lurium Pickaxe");
ModLoader.addRecipe(new ItemStack(Pickaxe, 1), new Object [] {" # ", " % ", " % ", '#', mod_litto.LuriumPickaxeBillet, '%', Item.stick});
Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumaxe.png");
ModLoader.addName(Axe, "Lurium Axe");
ModLoader.addRecipe(new ItemStack(Axe, 1), new Object [] {"# ", " % ", " % ", '#', mod_litto.LuriumAxeBillet, '%', Item.stick});
Shovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumshovel.png");
ModLoader.addName(Shovel, "Lurium Shovel");
ModLoader.addRecipe(new ItemStack(Shovel, 1), new Object [] {"#", "%", "%", '#', mod_litto.LuriumShovelBillet, '%', Item.stick});
Sword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumsword.png");
ModLoader.addName(Sword, "Lurium Sword");
ModLoader.addRecipe(new ItemStack(Sword, 1), new Object [] {" #", " X ", "% ", '#', mod_litto.LuriumSwordBilletPartOne, '%', mod_litto.HiltOfLuriumSword, 'X', mod_litto.LuriumSwordBilletPartTwo});
Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumhoe.png");
ModLoader.addName(Hoe, "Lurium Hoe");
ModLoader.addRecipe(new ItemStack(Hoe, 1), new Object [] {" # ", " % ", " % ", '#', mod_litto.LuriumHoeBillet, '%', Item.stick});
LuriumHelmet.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumhelmet.png");
ModLoader.addName(LuriumHelmet, "Lurium Helmet");
ModLoader.addRecipe(new ItemStack(LuriumHelmet, 1), new Object[]{ "XXX", "X X", Character.valueOf('X'), mod_litto.LuriumHotIron});
LuriumChestplate.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumchestplate.png");
ModLoader.addName(LuriumChestplate, "Lurium Chestplate");
ModLoader.addRecipe(new ItemStack(LuriumChestplate, 1), new Object[]{ "X X", "XXX","XXX", Character.valueOf('X'), mod_litto.LuriumHotIron});
LuriumLeggins.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumleggins.png");
ModLoader.addName(LuriumLeggins, "Lurium Leggins");
ModLoader.addRecipe(new ItemStack(LuriumLeggins, 1), new Object[]{ "XXX", "X X","X X", Character.valueOf('X'), mod_litto.LuriumHotIron});
LuriumBoots.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumboots.png");
ModLoader.addName(LuriumBoots, "Lurium Boots");
ModLoader.addRecipe(new ItemStack(LuriumBoots, 1), new Object[]{ "X X", "X X", Character.valueOf('X'), mod_litto.LuriumHotIron});
LuriumIron.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumiron.png");
ModLoader.addName(LuriumIron, "Lurium Iron");
ModLoader.addRecipe(new ItemStack(LuriumIron, 1), new Object [] {"#X#","X#X", "#X#", Character.valueOf('#'), mod_litto.Lurium, Character.valueOf('X'), Item.ingotIron});
LuriumAxeBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumaxebillet.png");
ModLoader.addName(LuriumAxeBillet, "Lurium Axe Billet");
ModLoader.addRecipe(new ItemStack(LuriumAxeBillet, 1), new Object [] {"## ","# ", Character.valueOf('#'), mod_litto.LuriumHotIron});
LuriumPickaxeBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumpickaxebillet.png");
ModLoader.addName(LuriumPickaxeBillet, "Lurium Pickaxe Billet");
ModLoader.addRecipe(new ItemStack(LuriumPickaxeBillet, 1), new Object [] {"###", Character.valueOf('#'), mod_litto.LuriumHotIron});
LuriumHoeBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumhoebillet.png");
ModLoader.addName(LuriumHoeBillet, "Lurium Hoe Billet");
ModLoader.addRecipe(new ItemStack(LuriumHoeBillet, 1), new Object [] {"#", Character.valueOf('#'), mod_litto.LuriumHotIron});
LuriumShovelBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumshovelbillet.png");
ModLoader.addName(LuriumShovelBillet, "Lurium Shovel Billet");
ModLoader.addRecipe(new ItemStack(LuriumShovelBillet, 1), new Object [] {" # ", " ", " ", Character.valueOf('#'), mod_litto.LuriumHotIron});
LuriumSwordBilletPartOne.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumswordbilletpartone.png");
ModLoader.addName(LuriumSwordBilletPartOne, "Lurium Sword Billet Part One");
ModLoader.addRecipe(new ItemStack(LuriumSwordBilletPartOne, 1), new Object [] {" #"," "," ", Character.valueOf('#'), mod_litto.LuriumIron});
LuriumSwordBilletPartTwo.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumswordbilletpartotwo.png");
ModLoader.addName(LuriumSwordBilletPartTwo, "Lurium Sword Billet Part Two");
ModLoader.addRecipe(new ItemStack(LuriumSwordBilletPartTwo, 1), new Object [] {" "," # "," ", Character.valueOf('#'), mod_litto.LuriumIron});
HiltOfLuriumSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/hiltofluriumsword.png");
ModLoader.addName(HiltOfLuriumSword, "Hilt Of Lurium Sword");
ModLoader.addRecipe(new ItemStack(HiltOfLuriumSword, 1), new Object [] {" "," # ","# ", Character.valueOf('#'), Item.stick});
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 170; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(128);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(LuriumOre.blockID, 6)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.3.1";
}
}
[01:47:39] Overriding /gui/items.png with /textures/lurium.png @ 38. 80 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumhotiron.png @ 102. 79
left.
[01:47:39] Overriding /gui/items.png with /textures/luriumpickaxe.png @ 118. 78
left.
[01:47:39] Overriding /gui/items.png with /textures/luriumaxe.png @ 119. 77 left
.
[01:47:39] Overriding /gui/items.png with /textures/luriumshovel.png @ 120. 76 l
eft.
[01:47:39] Overriding /gui/items.png with /textures/luriumsword.png @ 134. 75 le
ft.
[01:47:39] Overriding /gui/items.png with /textures/luriumhoe.png @ 144. 74 left
.
[01:47:39] Overriding /gui/items.png with /textures/luriumhelmet.png @ 145. 73 l
eft.
[01:47:39] Overriding /gui/items.png with /textures/luriumchestplate.png @ 146.
72 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumleggins.png @ 147. 71
left.
[01:47:39] Overriding /gui/items.png with /textures/luriumboots.png @ 148. 70 le
ft.
[01:47:39] Overriding /gui/items.png with /textures/luriumiron.png @ 149. 69 lef
t.
[01:47:39] Overriding /gui/items.png with /textures/luriumaxebillet.png @ 150. 6
8 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumpickaxebillet.png @ 15
2. 67 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumhoebillet.png @ 160. 6
6 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumshovelbillet.png @ 161
. 65 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumswordbilletpartone.png
@ 162. 64 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumswordbilletpartotwo.pn
g @ 163. 63 left.
[01:47:39] Overriding /gui/items.png with /textures/hiltofluriumsword.png @ 164.
62 left.
[01:47:49] Exception in thread "Minecraft main thread" java.lang.ExceptionInInit
ializerError
[01:47:49] at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
[01:47:49] at net.minecraft.client.Minecraft.run(Minecraft.java:724)
[01:47:49] at java.lang.Thread.run(Thread.java:722)
[01:47:49] Caused by: java.lang.RuntimeException: java.lang.StringIndexOutOfBoun
dsException: String index out of range: 10
[01:47:49] at net.minecraft.src.ModLoader.init(ModLoader.java:963)
[01:47:49] at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:16
1)
[01:47:49] at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
[01:47:49] at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:1
4)
[01:47:49] ... 3 more
[01:47:49] Caused by: java.lang.StringIndexOutOfBoundsException: String index ou
t of range: 10
[01:47:49] at java.lang.String.charAt(String.java:695)
[01:47:49] at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.j
ava:185)
[01:47:49] at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:482)
[01:47:49] at net.minecraft.src.mod_litto.load(mod_litto.java:112)
[01:47:49] at net.minecraft.src.ModLoader.init(ModLoader.java:927)
[01:47:49] ... 6 more
Minecraft Error
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
This error has been saved to C:\Users\Litto\Desktop\Minecraft Coder Pack\jars\.\crash-reports\crash-2012-08-11_01.47.49-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT f49d38a --------
Generated 11.08.12 1:47
- Minecraft Version: 1.3.1
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 997854656 bytes (951 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
- JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
- ModLoader: Mods loaded: 2
ModLoader 1.3.1
mod_litto 1.3.1
java.lang.StringIndexOutOfBoundsException: String index out of range: 10
at java.lang.String.charAt(String.java:695)
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:185)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:482)
at net.minecraft.src.mod_litto.load(mod_litto.java:112)
at net.minecraft.src.ModLoader.init(ModLoader.java:927)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:161)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT dee0d599 ----------
Here is my mod_litto code
package net.minecraft.src;
import java.util.Random;
public class mod_litto extends BaseMod
{
public static final Block LuriumOre = new BlockLuriumOre(160, 0).setBlockName("LuriumOre").setHardness(3.0F).setResistance(5F).setLightValue(0F).setCreativeTab(CreativeTabs.tabBlock);
public static final Block LuriumBlock = new BlockLuriumBlock(161, 0).setBlockName("LuriumBlock").setHardness(3F).setResistance(4F).setLightValue(0F).setCreativeTab(CreativeTabs.tabBlock);
public static final Item Lurium = new ItemLurium(5000).setItemName("Lurium").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumIron = new ItemLuriumIron(5001).setItemName("LuriumIron").setTabToDisplayOn(CreativeTabs.tabMaterials).setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item Pickaxe = new ItemLuriumPickaxe(5002, EnumToolMaterialLurium.MATERIALLurium).setItemName("Pickaxe").setTabToDisplayOn(CreativeTabs.tabTools);
public static final Item Axe = new ItemLuriumAxe(5003, EnumToolMaterialLurium.MATERIALLurium).setItemName("Axe").setTabToDisplayOn(CreativeTabs.tabTools);
public static final Item Shovel = new ItemLuriumShovel(5004, EnumToolMaterialLurium.MATERIALLurium).setItemName("Shovel").setTabToDisplayOn(CreativeTabs.tabTools);
public static final Item Sword = new ItemLuriumSword(5005, EnumToolMaterialLurium.MATERIALLurium).setItemName("Sword").setTabToDisplayOn(CreativeTabs.tabTools);
public static final Item Hoe = new ItemLuriumHoe(5006, EnumToolMaterialLurium.MATERIALLurium).setItemName("Hoe").setTabToDisplayOn(CreativeTabs.tabTools);
public static Item LuriumHelmet=(new ItemArmor(5007, EnumArmorMaterial.Lurium, 5, 0)).setItemName("LuriumHelmet").setTabToDisplayOn(CreativeTabs.tabCombat);
public static Item LuriumChestplate=(new ItemArmor(5008, EnumArmorMaterial.Lurium, 5, 1)).setItemName("LuriumChestplate").setTabToDisplayOn(CreativeTabs.tabCombat);
public static Item LuriumLeggins=(new ItemArmor(5009, EnumArmorMaterial.Lurium, 5, 2)).setItemName("LuriumLeggins").setTabToDisplayOn(CreativeTabs.tabCombat);
public static Item LuriumBoots=(new ItemArmor(5010, EnumArmorMaterial.Lurium, 5, 3)).setItemName("LuriumBoots").setTabToDisplayOn(CreativeTabs.tabCombat);
public static final Item LuriumHotIron = new ItemLuriumHotIron(5011).setItemName("LuriumHotIron").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumAxeBillet = new ItemLuriumAxeBillet(5012).setItemName("LuriumAxeBillet").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumPickaxeBillet = new ItemLuriumPickaxeBillet(5013).setItemName("LuriumPickAxe").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumHoeBillet = new ItemLuriumHoeBillet(5014).setItemName("LuriumHoeBillet").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumShovelBillet = new ItemLuriumShovelBillet(5015).setItemName("LuriumShovelBillet").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumSwordBilletPartOne = new ItemLuriumSwordBilletPartOne(5016).setItemName("LuriumSwordBilletPartOne").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item LuriumSwordBilletPartTwo = new ItemLuriumSwordBilletPartTwo(5017).setItemName("SwordBilletPartTwo").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Item HiltOfLuriumSword = new ItemHiltOfLuriumSword(5018).setItemName("HiltOfLuriumSword").setTabToDisplayOn(CreativeTabs.tabMaterials);
public void load()
{
LuriumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/luriumore.png");
ModLoader.registerBlock(LuriumOre);
ModLoader.addName(LuriumOre, "Lurium Ore");
LuriumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/luriumblock.png");
ModLoader.registerBlock(LuriumBlock);
ModLoader.addName(LuriumBlock, "LuriumBlock");
ModLoader.addRecipe(new ItemStack(LuriumBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), mod_litto.Lurium});
Lurium.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/lurium.png");
ModLoader.addName(Lurium, "Lurium");
ModLoader.addRecipe(new ItemStack(Lurium, 9), new Object [] {"#", Character.valueOf('#'), mod_litto.LuriumBlock});
LuriumHotIron.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumhotiron.png");
ModLoader.addName(LuriumHotIron, "Lurium Hot Iron");
ModLoader.addSmelting(mod_litto.LuriumIron.shiftedIndex, new ItemStack(mod_litto.LuriumHotIron, 1), 1.0F);
Pickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumpickaxe.png");
ModLoader.addName(Pickaxe, "Lurium Pickaxe");
ModLoader.addRecipe(new ItemStack(Pickaxe, 1), new Object [] {" # ", " % ", " % ", '#', mod_litto.LuriumPickaxeBillet, '%', Item.stick});
Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumaxe.png");
ModLoader.addName(Axe, "Lurium Axe");
ModLoader.addRecipe(new ItemStack(Axe, 1), new Object [] {"# ", " % ", " % ", '#', mod_litto.LuriumAxeBillet, '%', Item.stick});
Shovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumshovel.png");
ModLoader.addName(Shovel, "Lurium Shovel");
ModLoader.addRecipe(new ItemStack(Shovel, 1), new Object [] {"#", "%", "%", '#', mod_litto.LuriumShovelBillet, '%', Item.stick});
Sword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumsword.png");
ModLoader.addName(Sword, "Lurium Sword");
ModLoader.addRecipe(new ItemStack(Sword, 1), new Object [] {" #", " X ", "% ", '#', mod_litto.LuriumSwordBilletPartOne, '%', mod_litto.HiltOfLuriumSword, 'X', mod_litto.LuriumSwordBilletPartTwo});
Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumhoe.png");
ModLoader.addName(Hoe, "Lurium Hoe");
ModLoader.addRecipe(new ItemStack(Hoe, 1), new Object [] {" # ", " % ", " % ", '#', mod_litto.LuriumHoeBillet, '%', Item.stick});
LuriumHelmet.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumhelmet.png");
ModLoader.addName(LuriumHelmet, "Lurium Helmet");
ModLoader.addRecipe(new ItemStack(LuriumHelmet, 1), new Object[]{ "XXX", "X X", Character.valueOf('X'), mod_litto.LuriumHotIron});
LuriumChestplate.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumchestplate.png");
ModLoader.addName(LuriumChestplate, "Lurium Chestplate");
ModLoader.addRecipe(new ItemStack(LuriumChestplate, 1), new Object[]{ "X X", "XXX","XXX", Character.valueOf('X'), mod_litto.LuriumHotIron});
LuriumLeggins.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumleggins.png");
ModLoader.addName(LuriumLeggins, "Lurium Leggins");
ModLoader.addRecipe(new ItemStack(LuriumLeggins, 1), new Object[]{ "XXX", "X X","X X", Character.valueOf('X'), mod_litto.LuriumHotIron});
LuriumBoots.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumboots.png");
ModLoader.addName(LuriumBoots, "Lurium Boots");
ModLoader.addRecipe(new ItemStack(LuriumBoots, 1), new Object[]{ "X X", "X X", Character.valueOf('X'), mod_litto.LuriumHotIron});
LuriumIron.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumiron.png");
ModLoader.addName(LuriumIron, "Lurium Iron");
ModLoader.addRecipe(new ItemStack(LuriumIron, 1), new Object [] {"#X#","X#X", "#X#", Character.valueOf('#'), mod_litto.Lurium, Character.valueOf('X'), Item.ingotIron});
LuriumAxeBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumaxebillet.png");
ModLoader.addName(LuriumAxeBillet, "Lurium Axe Billet");
ModLoader.addRecipe(new ItemStack(LuriumAxeBillet, 1), new Object [] {"## ","# ", Character.valueOf('#'), mod_litto.LuriumHotIron});
LuriumPickaxeBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumpickaxebillet.png");
ModLoader.addName(LuriumPickaxeBillet, "Lurium Pickaxe Billet");
ModLoader.addRecipe(new ItemStack(LuriumPickaxeBillet, 1), new Object [] {"###", Character.valueOf('#'), mod_litto.LuriumHotIron});
LuriumHoeBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumhoebillet.png");
ModLoader.addName(LuriumHoeBillet, "Lurium Hoe Billet");
ModLoader.addRecipe(new ItemStack(LuriumHoeBillet, 1), new Object [] {"#", Character.valueOf('#'), mod_litto.LuriumHotIron});
LuriumShovelBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumshovelbillet.png");
ModLoader.addName(LuriumShovelBillet, "Lurium Shovel Billet");
ModLoader.addRecipe(new ItemStack(LuriumShovelBillet, 1), new Object [] {" # ", " ", " ", Character.valueOf('#'), mod_litto.LuriumHotIron});
LuriumSwordBilletPartOne.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumswordbilletpartone.png");
ModLoader.addName(LuriumSwordBilletPartOne, "Lurium Sword Billet Part One");
ModLoader.addRecipe(new ItemStack(LuriumSwordBilletPartOne, 1), new Object [] {" #"," "," ", Character.valueOf('#'), mod_litto.LuriumIron});
LuriumSwordBilletPartTwo.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumswordbilletpartotwo.png");
ModLoader.addName(LuriumSwordBilletPartTwo, "Lurium Sword Billet Part Two");
ModLoader.addRecipe(new ItemStack(LuriumSwordBilletPartTwo, 1), new Object [] {" "," # "," ", Character.valueOf('#'), mod_litto.LuriumIron});
HiltOfLuriumSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/hiltofluriumsword.png");
ModLoader.addName(HiltOfLuriumSword, "Hilt Of Lurium Sword");
ModLoader.addRecipe(new ItemStack(HiltOfLuriumSword, 1), new Object [] {" "," # ","# ", Character.valueOf('#'), Item.stick});
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 170; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(128);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(LuriumOre.blockID, 6)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.3.1";
}
}
Please help me
I think if you go back and fix your crafting recipes it should fix it. Remember to put the Character.valueOf in all of them
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Yes, it mentions where to put everthing when you use Eclipse and MCP. But not when you want to test it on the real game, or where the textures have to be when you release the mod.
Maybe something like:
It would fit directly above "pictures have to be 16x16 pixel" line, and it might help clear some confusion. If the same thing is already standing there, then I must have overlooked it. Sorry in that case!
change "1.2.5" to "1.3.1"
EDIT: why did all those extra things come up when i put them in a code and a spoiler?
Modders just zip their files for convention, but it doesn't mean it should be. When you're testing out, you just put it somewhere inside the MCP folder but it depends if you are using Eclipse or not. Once you want to it play in the real game, that's when you put all of them in a zip file, but nonetheless, they would go to the minecraft.jar. Putting your mod on the mods folder works if your mod doesn't edit base classes. But the client actually makes it so it looked like it was placed in the jar. Modification means it adds, edits, or remove something from the jar itself.
Changed it still no work
also in you mod_Block, change to
Did that only 13 more errors 2 go
change namehere to PetRock, if you didnt already
and yes if you are using mcp for 1.2.5, and the .jar is 1.2.5 then keep the getVersion at return "1.2.5"
you should be able to open eclipse, and on the left there should 2 things, one says Client, on says Server. click the arrow on Client, then click the arrow on src, then on net.minecraft.src. there should be a bunch of class files, you just have to look for your files.
I am assuming this what you meant by re opening them?
The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
at org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.doSetInput(ClassFileEditor.java:656)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3209)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1666)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1663)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3227)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3254)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:324)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)
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 org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:837)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:318)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:889)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:623)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1042)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:57)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:578)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:557)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:531)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:520)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:960)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3071)
at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2974)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2933)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2916)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1253)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
i think that has to do with mcp and eclipse, becasue i dont see any thing that could have something to do with the coding. but im not sure, never seen that error before
One, do I need to make a file, using the coding under "BlocknameHere"?
Two, I have no idea where I should place the texture for my block, where am I supposed to put the texture?
Three, I need to know if I should disregard the fact that there is an error saying BaseMod is invalid for anything.
Four, did anyone even check my coding, ya know, open the spoilers instead of glancing at it? I still have yet to know if I name them right, and if I put the names in the right spot for the two files.
there is the coding. I used the "BlocknameHere" coding for Core_Block, I wonder if I did that right. Or if ti was the wrong move.
The NPC
Rendering the Monster
public void addRenderer(Map map) { map.put(EntityPigman.class, new RenderBiped(new ModelBiped(), 0.5F)); }Entity Pigman
package net.minecraft.src; import java.util.Random; public class EntityPigman extends EntityCreature { public EntityPigman(World world) { super(world); texture = "/mob/zombie.png"; moveSpeed = 0.5F; //attackStrength = 4; //take this line out if this class doesn't extend EntityMob. } public int getMaxHealth() { return 20; } protected String getLivingSound() { return "mob.pig"; } protected String getHurtSound() { return "mob.pig"; } protected String getDeathSound() { return "mob.pigdeath"; } protected int getDropItemId() { return Item.ingotIron.shiftedIndex; } protected boolean canDespawn() { return false; } }Try changing your CarrotCrop to this
public static final Block CarrotCrop = (new BlockCarrotCrop(178, 0).setBlockName("CarrotCrop").setRequiresSelfNotify());PM me if it doesn't work/there are more problems
PS - TechGuy please do a liquids tutorial!!
Please help I created so many items and after this I getting error when launch MC
Console
== MCP 7.0 (data: 7.0a, client: 1.3.1, server: 1.3.1) ==
[01:47:38] 27 achievements
[01:47:38] 195 recipes
[01:47:38] Setting user: Player971, -
[01:47:38] Client asked for parameter: server
[01:47:38] LWJGL Version: 2.4.2
[01:47:39] ModLoader 1.3.1 Initializing...
[01:47:39] Mod Initialized: mod_litto 1.3.1
[01:47:39] Overriding /terrain.png with /textures/luriumore.png @ 26. 31 left.
[01:47:39] Overriding /terrain.png with /textures/luriumblock.png @ 27. 30 left.
[01:47:39] Overriding /gui/items.png with /textures/lurium.png @ 38. 80 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumhotiron.png @ 102. 79
left.
[01:47:39] Overriding /gui/items.png with /textures/luriumpickaxe.png @ 118. 78
left.
[01:47:39] Overriding /gui/items.png with /textures/luriumaxe.png @ 119. 77 left
.
[01:47:39] Overriding /gui/items.png with /textures/luriumshovel.png @ 120. 76 l
eft.
[01:47:39] Overriding /gui/items.png with /textures/luriumsword.png @ 134. 75 le
ft.
[01:47:39] Overriding /gui/items.png with /textures/luriumhoe.png @ 144. 74 left
.
[01:47:39] Overriding /gui/items.png with /textures/luriumhelmet.png @ 145. 73 l
eft.
[01:47:39] Overriding /gui/items.png with /textures/luriumchestplate.png @ 146.
72 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumleggins.png @ 147. 71
left.
[01:47:39] Overriding /gui/items.png with /textures/luriumboots.png @ 148. 70 le
ft.
[01:47:39] Overriding /gui/items.png with /textures/luriumiron.png @ 149. 69 lef
t.
[01:47:39] Overriding /gui/items.png with /textures/luriumaxebillet.png @ 150. 6
8 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumpickaxebillet.png @ 15
2. 67 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumhoebillet.png @ 160. 6
6 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumshovelbillet.png @ 161
. 65 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumswordbilletpartone.png
@ 162. 64 left.
[01:47:39] Overriding /gui/items.png with /textures/luriumswordbilletpartotwo.pn
g @ 163. 63 left.
[01:47:39] Overriding /gui/items.png with /textures/hiltofluriumsword.png @ 164.
62 left.
[01:47:49] Exception in thread "Minecraft main thread" java.lang.ExceptionInInit
ializerError
[01:47:49] at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
[01:47:49] at net.minecraft.client.Minecraft.run(Minecraft.java:724)
[01:47:49] at java.lang.Thread.run(Thread.java:722)
[01:47:49] Caused by: java.lang.RuntimeException: java.lang.StringIndexOutOfBoun
dsException: String index out of range: 10
[01:47:49] at net.minecraft.src.ModLoader.init(ModLoader.java:963)
[01:47:49] at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:16
1)
[01:47:49] at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
[01:47:49] at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:1
4)
[01:47:49] ... 3 more
[01:47:49] Caused by: java.lang.StringIndexOutOfBoundsException: String index ou
t of range: 10
[01:47:49] at java.lang.String.charAt(String.java:695)
[01:47:49] at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.j
ava:185)
[01:47:49] at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:482)
[01:47:49] at net.minecraft.src.mod_litto.load(mod_litto.java:112)
[01:47:49] at net.minecraft.src.ModLoader.init(ModLoader.java:927)
[01:47:49] ... 6 more
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
This error has been saved to C:\Users\Litto\Desktop\Minecraft Coder Pack\jars\.\crash-reports\crash-2012-08-11_01.47.49-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT f49d38a --------
Generated 11.08.12 1:47
- Minecraft Version: 1.3.1
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 997854656 bytes (951 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
- JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
- ModLoader: Mods loaded: 2
ModLoader 1.3.1
mod_litto 1.3.1
java.lang.StringIndexOutOfBoundsException: String index out of range: 10
at java.lang.String.charAt(String.java:695)
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:185)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:482)
at net.minecraft.src.mod_litto.load(mod_litto.java:112)
at net.minecraft.src.ModLoader.init(ModLoader.java:927)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:161)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT dee0d599 ----------
package net.minecraft.src; import java.util.Random; public class mod_litto extends BaseMod { public static final Block LuriumOre = new BlockLuriumOre(160, 0).setBlockName("LuriumOre").setHardness(3.0F).setResistance(5F).setLightValue(0F).setCreativeTab(CreativeTabs.tabBlock); public static final Block LuriumBlock = new BlockLuriumBlock(161, 0).setBlockName("LuriumBlock").setHardness(3F).setResistance(4F).setLightValue(0F).setCreativeTab(CreativeTabs.tabBlock); public static final Item Lurium = new ItemLurium(5000).setItemName("Lurium").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item LuriumIron = new ItemLuriumIron(5001).setItemName("LuriumIron").setTabToDisplayOn(CreativeTabs.tabMaterials).setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item Pickaxe = new ItemLuriumPickaxe(5002, EnumToolMaterialLurium.MATERIALLurium).setItemName("Pickaxe").setTabToDisplayOn(CreativeTabs.tabTools); public static final Item Axe = new ItemLuriumAxe(5003, EnumToolMaterialLurium.MATERIALLurium).setItemName("Axe").setTabToDisplayOn(CreativeTabs.tabTools); public static final Item Shovel = new ItemLuriumShovel(5004, EnumToolMaterialLurium.MATERIALLurium).setItemName("Shovel").setTabToDisplayOn(CreativeTabs.tabTools); public static final Item Sword = new ItemLuriumSword(5005, EnumToolMaterialLurium.MATERIALLurium).setItemName("Sword").setTabToDisplayOn(CreativeTabs.tabTools); public static final Item Hoe = new ItemLuriumHoe(5006, EnumToolMaterialLurium.MATERIALLurium).setItemName("Hoe").setTabToDisplayOn(CreativeTabs.tabTools); public static Item LuriumHelmet=(new ItemArmor(5007, EnumArmorMaterial.Lurium, 5, 0)).setItemName("LuriumHelmet").setTabToDisplayOn(CreativeTabs.tabCombat); public static Item LuriumChestplate=(new ItemArmor(5008, EnumArmorMaterial.Lurium, 5, 1)).setItemName("LuriumChestplate").setTabToDisplayOn(CreativeTabs.tabCombat); public static Item LuriumLeggins=(new ItemArmor(5009, EnumArmorMaterial.Lurium, 5, 2)).setItemName("LuriumLeggins").setTabToDisplayOn(CreativeTabs.tabCombat); public static Item LuriumBoots=(new ItemArmor(5010, EnumArmorMaterial.Lurium, 5, 3)).setItemName("LuriumBoots").setTabToDisplayOn(CreativeTabs.tabCombat); public static final Item LuriumHotIron = new ItemLuriumHotIron(5011).setItemName("LuriumHotIron").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item LuriumAxeBillet = new ItemLuriumAxeBillet(5012).setItemName("LuriumAxeBillet").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item LuriumPickaxeBillet = new ItemLuriumPickaxeBillet(5013).setItemName("LuriumPickAxe").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item LuriumHoeBillet = new ItemLuriumHoeBillet(5014).setItemName("LuriumHoeBillet").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item LuriumShovelBillet = new ItemLuriumShovelBillet(5015).setItemName("LuriumShovelBillet").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item LuriumSwordBilletPartOne = new ItemLuriumSwordBilletPartOne(5016).setItemName("LuriumSwordBilletPartOne").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item LuriumSwordBilletPartTwo = new ItemLuriumSwordBilletPartTwo(5017).setItemName("SwordBilletPartTwo").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item HiltOfLuriumSword = new ItemHiltOfLuriumSword(5018).setItemName("HiltOfLuriumSword").setTabToDisplayOn(CreativeTabs.tabMaterials); public void load() { LuriumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/luriumore.png"); ModLoader.registerBlock(LuriumOre); ModLoader.addName(LuriumOre, "Lurium Ore"); LuriumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/luriumblock.png"); ModLoader.registerBlock(LuriumBlock); ModLoader.addName(LuriumBlock, "LuriumBlock"); ModLoader.addRecipe(new ItemStack(LuriumBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), mod_litto.Lurium}); Lurium.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/lurium.png"); ModLoader.addName(Lurium, "Lurium"); ModLoader.addRecipe(new ItemStack(Lurium, 9), new Object [] {"#", Character.valueOf('#'), mod_litto.LuriumBlock}); LuriumHotIron.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumhotiron.png"); ModLoader.addName(LuriumHotIron, "Lurium Hot Iron"); ModLoader.addSmelting(mod_litto.LuriumIron.shiftedIndex, new ItemStack(mod_litto.LuriumHotIron, 1), 1.0F); Pickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumpickaxe.png"); ModLoader.addName(Pickaxe, "Lurium Pickaxe"); ModLoader.addRecipe(new ItemStack(Pickaxe, 1), new Object [] {" # ", " % ", " % ", '#', mod_litto.LuriumPickaxeBillet, '%', Item.stick}); Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumaxe.png"); ModLoader.addName(Axe, "Lurium Axe"); ModLoader.addRecipe(new ItemStack(Axe, 1), new Object [] {"# ", " % ", " % ", '#', mod_litto.LuriumAxeBillet, '%', Item.stick}); Shovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumshovel.png"); ModLoader.addName(Shovel, "Lurium Shovel"); ModLoader.addRecipe(new ItemStack(Shovel, 1), new Object [] {"#", "%", "%", '#', mod_litto.LuriumShovelBillet, '%', Item.stick}); Sword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumsword.png"); ModLoader.addName(Sword, "Lurium Sword"); ModLoader.addRecipe(new ItemStack(Sword, 1), new Object [] {" #", " X ", "% ", '#', mod_litto.LuriumSwordBilletPartOne, '%', mod_litto.HiltOfLuriumSword, 'X', mod_litto.LuriumSwordBilletPartTwo}); Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumhoe.png"); ModLoader.addName(Hoe, "Lurium Hoe"); ModLoader.addRecipe(new ItemStack(Hoe, 1), new Object [] {" # ", " % ", " % ", '#', mod_litto.LuriumHoeBillet, '%', Item.stick}); LuriumHelmet.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumhelmet.png"); ModLoader.addName(LuriumHelmet, "Lurium Helmet"); ModLoader.addRecipe(new ItemStack(LuriumHelmet, 1), new Object[]{ "XXX", "X X", Character.valueOf('X'), mod_litto.LuriumHotIron}); LuriumChestplate.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumchestplate.png"); ModLoader.addName(LuriumChestplate, "Lurium Chestplate"); ModLoader.addRecipe(new ItemStack(LuriumChestplate, 1), new Object[]{ "X X", "XXX","XXX", Character.valueOf('X'), mod_litto.LuriumHotIron}); LuriumLeggins.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumleggins.png"); ModLoader.addName(LuriumLeggins, "Lurium Leggins"); ModLoader.addRecipe(new ItemStack(LuriumLeggins, 1), new Object[]{ "XXX", "X X","X X", Character.valueOf('X'), mod_litto.LuriumHotIron}); LuriumBoots.iconIndex=ModLoader.addOverride("/gui/items.png", "/textures/luriumboots.png"); ModLoader.addName(LuriumBoots, "Lurium Boots"); ModLoader.addRecipe(new ItemStack(LuriumBoots, 1), new Object[]{ "X X", "X X", Character.valueOf('X'), mod_litto.LuriumHotIron}); LuriumIron.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumiron.png"); ModLoader.addName(LuriumIron, "Lurium Iron"); ModLoader.addRecipe(new ItemStack(LuriumIron, 1), new Object [] {"#X#","X#X", "#X#", Character.valueOf('#'), mod_litto.Lurium, Character.valueOf('X'), Item.ingotIron}); LuriumAxeBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumaxebillet.png"); ModLoader.addName(LuriumAxeBillet, "Lurium Axe Billet"); ModLoader.addRecipe(new ItemStack(LuriumAxeBillet, 1), new Object [] {"## ","# ", Character.valueOf('#'), mod_litto.LuriumHotIron}); LuriumPickaxeBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumpickaxebillet.png"); ModLoader.addName(LuriumPickaxeBillet, "Lurium Pickaxe Billet"); ModLoader.addRecipe(new ItemStack(LuriumPickaxeBillet, 1), new Object [] {"###", Character.valueOf('#'), mod_litto.LuriumHotIron}); LuriumHoeBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumhoebillet.png"); ModLoader.addName(LuriumHoeBillet, "Lurium Hoe Billet"); ModLoader.addRecipe(new ItemStack(LuriumHoeBillet, 1), new Object [] {"#", Character.valueOf('#'), mod_litto.LuriumHotIron}); LuriumShovelBillet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumshovelbillet.png"); ModLoader.addName(LuriumShovelBillet, "Lurium Shovel Billet"); ModLoader.addRecipe(new ItemStack(LuriumShovelBillet, 1), new Object [] {" # ", " ", " ", Character.valueOf('#'), mod_litto.LuriumHotIron}); LuriumSwordBilletPartOne.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumswordbilletpartone.png"); ModLoader.addName(LuriumSwordBilletPartOne, "Lurium Sword Billet Part One"); ModLoader.addRecipe(new ItemStack(LuriumSwordBilletPartOne, 1), new Object [] {" #"," "," ", Character.valueOf('#'), mod_litto.LuriumIron}); LuriumSwordBilletPartTwo.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/luriumswordbilletpartotwo.png"); ModLoader.addName(LuriumSwordBilletPartTwo, "Lurium Sword Billet Part Two"); ModLoader.addRecipe(new ItemStack(LuriumSwordBilletPartTwo, 1), new Object [] {" "," # "," ", Character.valueOf('#'), mod_litto.LuriumIron}); HiltOfLuriumSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/hiltofluriumsword.png"); ModLoader.addName(HiltOfLuriumSword, "Hilt Of Lurium Sword"); ModLoader.addRecipe(new ItemStack(HiltOfLuriumSword, 1), new Object [] {" "," # ","# ", Character.valueOf('#'), Item.stick}); } public void generateSurface(World world, Random random, int chunkX, int chunkZ) { for(int i = 0; i < 170; i++) { int randPosX = chunkX + random.nextInt(16); int randPosY = random.nextInt(128); int randPosZ = chunkZ + random.nextInt(16); (new WorldGenMinable(LuriumOre.blockID, 6)).generate(world, random, randPosX, randPosY, randPosZ); } } public String getVersion() { return "1.3.1"; } }I think if you go back and fix your crafting recipes it should fix it. Remember to put the Character.valueOf in all of them