Sorry If I'm being a bother, but I have ran into a couple of problems with setting everything up!
I am pretty inept and entry level at it gets, getting lost in the small details! Bare with me! hehe
"Now, we are going to need to type some commands into Terminal / Command Prompt again to setup Forge. Open up the forge.zip file you downloaded, and place it in your newly created folder."
Which newly created folder to be clear? >.> We just created a bunch! My workspace folder? 1.7 folder? The mod folder/github folder, one of it's folders? Does Open up the forge.zip mean open it from it's location and drag it to the specified folder or unzipping it into it's own forge folder inside the specified folder?
I assume this is where I messed up and why the command prompt stuff that follows isn't working!
I keep getting something along the lines of "Task 'setupDecompWorkspace' not found in root project."
Go into the folder GitHub created. That should be the folder named whatever your repository name is. Unzip forge, and place the forge folder inside of the GitHub repo folder.
Here's an example: desktop/Minecraft Modding/1.7/SkyrimMC/forge . Of course, yours would need to be fixed to fit your location. SkyrimMC is the name of my folder that GitHub created for me.
Go into the folder GitHub created. That should be the folder named whatever your repository name is. Unzip forge, and place the forge folder inside of the GitHub repo folder.
Here's an example: desktop/Minecraft Modding/1.7/SkyrimMC/forge . Of course, yours would need to be fixed to fit your location. SkyrimMC is the name of my folder that GitHub created for me.
Does that clarify things up?
Hey dude, I'm not sure if you missed my last message, but I'm having a problem with the ModItems folder. My post was on the first page I'm just getting alot of errors that I'm not sure how to fix.
Hey dude, I'm not sure if you missed my last message, but I'm having a problem with the ModItems folder. My post was on the first page I'm just getting alot of errors that I'm not sure how to fix.
There is a space between ) and .setUnlocalizedName. That may be causing issues, but I don't think it would be. Also, have you created the TestModItem class yet?
If that doesn't work, I'll plug your code into Eclipse and see if I can figure it out.
There is a space between ) and .setUnlocalizedName. That may be causing issues, but I don't think it would be. Also, have you created the TestModItem class yet?
If that doesn't work, I'll plug your code into Eclipse and see if I can figure it out.
No problem
Ah, I see. My "ModItems" class was supposed to be "TestModItems", I did that and all the errors got fixed. Thanks man
Hello, I have gone through your tutorial all the way to the testing phase and I can't find "item.FirstMod.name" (I called my item FirstMod) in the creative inventory. I changed the name of my item and then tested it again, but when I tried to load up the same world as before, it said that there was an item saved to that world that isn't there now (I assume that it was the item with a different name) so I think that it worked fine even though it was not visible. Sorry if that was confusing, but I am wondering if it's fine that I can't see even see the name in game.
Also, there is a line of red words at the bottom of the console that says, "Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release". What does this mean? And is it important?
Hello, I have gone through your tutorial all the way to the testing phase and I can't find "item.FirstMod.name" (I called my item FirstMod) in the creative inventory. I changed the name of my item and then tested it again, but when I tried to load up the same world as before, it said that there was an item saved to that world that isn't there now (I assume that it was the item with a different name) so I think that it worked fine even though it was not visible. Sorry if that was confusing, but I am wondering if it's fine that I can't see even see the name in game.
Also, there is a line of red words at the bottom of the console that says, "Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release". What does this mean? And is it important?
Thanks in advance.
You can't find the item by searching it in the Creative Tab? You could try setting a temporary creative tab for the item. In your item's class file, add this line of code under "super();": setCreativeTab(CreativeTabs.tabMaterials);
See if that will fix it.
I'll post one or two tutorials Sunday. I've been soaking up my time off of work and school and spending time with family for the past week.
You can't find the item by searching it in the Creative Tab? You could try setting a temporary creative tab for the item. In your item's class file, add this line of code under "super();": setCreativeTab(CreativeTabs.tabMaterials);
See if that will fix it.
I'll post one or two tutorials Sunday. I've been soaking up my time off of work and school and spending time with family for the past week.
Ah yes, that did the trick. Thank you. Looking forward to more tutorials.
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class zero_mod
{
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
}
@Mod.EventHandler
public void Init(FMLInitializationEvent event)
{
}
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event)
{
}
}
tell me whats wrong and what to do plz!
From what I can tell, remove this import (import com.sun.org.apache.xpath.internal.operations.Mod;). You imported the wrong import. You may need to reimport something as well. Just copy the imports I have, and you should be good to go.
hello everyone i just start to make a mod. I make the tutorial, but eclipse give it to me :
Time: 30/11/14 18:05
Description: There was a severe problem during mod loading that has caused the game to fail
cpw.mods.fml.common.LoaderException: java.lang.Error: Unresolved compilation problems:
Syntax error on token "void", @ expected
Syntax error on token ")", { expected
The method registerItems(Item) is undefined for the type RegisterHelper
at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:515)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:931)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)
at GradleStart.main(GradleStart.java:45)
Caused by: java.lang.Error: Unresolved compilation problems:
Syntax error on token "void", @ expected
Syntax error on token ")", { expected
The method registerItems(Item) is undefined for the type RegisterHelper
at com.thoren.forest.init.ModItems.init(ModItems.java:11)
at com.thoren.Forest.preInit(Forest.java:17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
... 12 more
thanks
Can I see the "Forest" class, "ModItems" class, and "RegisterHelper" class? Preferably put them in a pastebin and link it here.
Hello...Love your tutorials and they are very clear, but......I am getting errors with the @Mod Annotation
I have created the Reference.Help class...
Have all the names and caps the same in both files ( MODID, NAME, VERSION)
Imported the reference.Help using the Shift+Control+O
But the Main file is telling me that MODID, NAME and VERSION "can not be resolved or is not a field"
Reference.Help file....
public class Reference {
public static final String MODID = "tielkdarkmoon_MyPersonalMod";
public static final String NAME = "MyPersonalMod";
public static final String VERSION = "v1.0.0";
How this is a nice tutorial and very neat and easy to learn from, its also very neat that your teaching people for free. Wish I learned this way
Thanks :). It is just annoying to see new modders who don't know what there code does, which is the whole point of these tutorials. I've been slacking off on these pretty bad, so I'll try and continue them now.
Hello...Love your tutorials and they are very clear, but......I am getting errors with the @Mod Annotation
I have created the Reference.Help class...
Have all the names and caps the same in both files ( MODID, NAME, VERSION)
Imported the reference.Help using the Shift+Control+O
But the Main file is telling me that MODID, NAME and VERSION "can not be resolved or is not a field"
Reference.Help file....
public class Reference {
public static final String MODID = "tielkdarkmoon_MyPersonalMod";
public static final String NAME = "MyPersonalMod";
public static final String VERSION = "v1.0.0";
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class MyPersonalMod {
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
}
@Mod.EventHandler
public void Init(FMLInitializationEvent event)
{
}
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event)
{
}
}
Your error is that you imported the wrong file. Change the com.sun import to your Reference file. Also, a couple of suggestions, your Modid needs to be all lowercase, and it is better practice to make your packages lowercase as well ;).
Go into the folder GitHub created. That should be the folder named whatever your repository name is. Unzip forge, and place the forge folder inside of the GitHub repo folder.
Here's an example: desktop/Minecraft Modding/1.7/SkyrimMC/forge . Of course, yours would need to be fixed to fit your location. SkyrimMC is the name of my folder that GitHub created for me.
Does that clarify things up?
Hey dude, I'm not sure if you missed my last message, but I'm having a problem with the ModItems folder. My post was on the first page I'm just getting alot of errors that I'm not sure how to fix.
Thank you ^.^
There is a space between ) and .setUnlocalizedName. That may be causing issues, but I don't think it would be. Also, have you created the TestModItem class yet?
If that doesn't work, I'll plug your code into Eclipse and see if I can figure it out.
No problem
Ah, I see. My "ModItems" class was supposed to be "TestModItems", I did that and all the errors got fixed. Thanks man
Not necessarily. I have a ModItems class, but if it fixed your errors, I can't argue with that
I don't mean to rush you, but when will you be making the next tutorial? I'm super excited about it
I'll get it out whenever I can. I've been on vacation the past week, and will try to get one out tomorrow before Thanksgiving!
Okay, like I said I don't mean to rush you I just really enjoy the tutorials.
Also, there is a line of red words at the bottom of the console that says, "Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release". What does this mean? And is it important?
Thanks in advance.
You can't find the item by searching it in the Creative Tab? You could try setting a temporary creative tab for the item. In your item's class file, add this line of code under "super();": setCreativeTab(CreativeTabs.tabMaterials);
See if that will fix it.
I'll post one or two tutorials Sunday. I've been soaking up my time off of work and school and spending time with family for the past week.
Ah yes, that did the trick. Thank you. Looking forward to more tutorials.
Glad that helped ;). Like I said, I'm looking at pushing out a couple more tutorials on Sunday
No problem ;). I hope some future tutorials will help you jog your memory
From what I can tell, remove this import (import com.sun.org.apache.xpath.internal.operations.Mod;). You imported the wrong import. You may need to reimport something as well. Just copy the imports I have, and you should be good to go.
Can I see the "Forest" class, "ModItems" class, and "RegisterHelper" class? Preferably put them in a pastebin and link it here.
I have created the Reference.Help class...
Have all the names and caps the same in both files ( MODID, NAME, VERSION)
Imported the reference.Help using the Shift+Control+O
But the Main file is telling me that MODID, NAME and VERSION "can not be resolved or is not a field"
Reference.Help file....
public class Reference {
public static final String MODID = "tielkdarkmoon_MyPersonalMod";
public static final String NAME = "MyPersonalMod";
public static final String VERSION = "v1.0.0";
}
The Main File...
package com.yahoo.tielkdarkmoon.MypersonalMod;
import com.sun.org.apache.xml.internal.security.encryption.Reference;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class MyPersonalMod {
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
}
@Mod.EventHandler
public void Init(FMLInitializationEvent event)
{
}
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event)
{
}
}
Thanks :). It is just annoying to see new modders who don't know what there code does, which is the whole point of these tutorials. I've been slacking off on these pretty bad, so I'll try and continue them now.
Your error is that you imported the wrong file. Change the com.sun import to your Reference file. Also, a couple of suggestions, your Modid needs to be all lowercase, and it is better practice to make your packages lowercase as well ;).