public class ModItems() -Syntax error on token "class", @ expected
{ -syntax error, insert "}" to complete block
public static Item testIngot = new UnnamedModItem().setUnlocalizedName("testIngot"); Multiple markers on this line -Syntax error insert "EnumBody" to complete EnumDeclaration -Syntax error insert "enum Identifer" to complete EnumHeadername -Syntax error on tokens, AnnotationName expected instead
public static void init() Multiple markers on this line 2x-Syntax error on token "void", @ expected -Syntax error on token ")", { expected
{
RegisterHelper.registerItem(testIngot);
}
} Multiple markers on this line -Syntax error, insert "enum Identifier" to complete EnumHeader -Syntax error, insert "EnumBody" to complete EnumDeclartion -Syntax error insert ")" to complete Modifer
Sorry, I should have elaborated on the errors earlier and I checked to see if its imported and it is and the unnamedmod is capitalized. thanks again.
Ah! You have a pair of parenthesis' at the end of 'public class ModItems()'. Remove those, and you should be good to go. That was causing all of those other errors to pop up.
Basically what is happening is your creating a class ModItems, however, 'public class ModItems()' with the parenthesis, is creating a classes method, not the actual class. When ever you create a method, it needs to be in the classes 'method', however, since there isn't one in this case, they are causing errors. Hopefully I explained that in a way in which you can understand ;).
Emh.. That's not what I mean.
In your third tutorial, you say that if we are free of error, we should find our items without, but we should find it. The problem is this: I can't find or see anything. Is this normal? If yes, I continue with the tutorial.
Ah, I see. You won't be able to find the item by searching it; I'll fixed that in the tutorial. Yes, you can move on to the next tutorial, I'll have a custom creative tab tutorial hopefully up today :).
If you want to find your item however, you can always use the /give command. It may be a bit tricky as you won't be able to use a number to spawn, but rather a name. It's been a long time since I've done this, and I think it is your modid, then a colon, then your unlocalized name to get it to spawn. I may be wrong, but you can try that if you want to see your item.
This is an awesome tutorial and I would really like to use it, but I am having troubles with GitHub. Can you please explain to me how to get it set up without? Thanks
This is an awesome tutorial and I would really like to use it, but I am having troubles with GitHub. Can you please explain to me how to get it set up without? Thanks
Just ignore the GitHub parts.
- Create a folder, extract forge
- Run the commands I gave you
- Open up Eclipse
If you don't plan on using GitHub, I suggest you periodically backup your mod. My hard drive crashed about year ago while I was developing one mod, and I lost all the files.
The first error, you need to import IIconRegister, and the second error, I think you imported the wrong Block class. You need "
net.minecraft.block.Block" instead.
Hey, so I am a complete beginner with the modding thing, and have been following your directions for the first tutorial. I am pretty sure I have followed everything perfectly, but the command prompt isn't allowing "git clone {yadayada}". It is telling me that its not recognized as a command or any other type of thing.
Hey, so I am a complete beginner with the modding thing, and have been following your directions for the first tutorial. I am pretty sure I have followed everything perfectly, but the command prompt isn't allowing "git clone {yadayada}". It is telling me that its not recognized as a command or any other type of thing.
Thanks!
You are going to need to install 'git'. Now, I'm not sure how that works for Windows, however, this article should walk you through it. If you have an issues with anything, let me know, and I may be able to help :).
Alternatively, you don't need to use GitHub/Git, however, I recommend you do.
Not to be a bother, but I have seen people having problems with them typing things like 'modid' in all caps, is it maybe a mistake that you published them like that in the tutorials? If not I am so sorry I'm just trying to help 😅
Not to be a bother, but I have seen people having problems with them typing things like 'modid' in all caps, is it maybe a mistake that you published them like that in the tutorials? If not I am so sorry I'm just trying to help 😅
Yes, I've been gathering feedback and writing a list of things I need to change. I'll go back through and change certain things at some point in the future. Thanks for the reminder though
Ah! You have a pair of parenthesis' at the end of 'public class ModItems()'. Remove those, and you should be good to go. That was causing all of those other errors to pop up.
Basically what is happening is your creating a class ModItems, however, 'public class ModItems()' with the parenthesis, is creating a classes method, not the actual class. When ever you create a method, it needs to be in the classes 'method', however, since there isn't one in this case, they are causing errors. Hopefully I explained that in a way in which you can understand ;).
Is it really! Thanks for the tip - didn't even realize that.
If you want, I can see about fixing that Creative Tab too - or, you can wait, as the next tutorial will be custom creative tabs.
Thank you; it means a lot to know that people are actually enjoying these. Good luck with your future modding endeavors ;).
Ah, I see. You won't be able to find the item by searching it; I'll fixed that in the tutorial. Yes, you can move on to the next tutorial, I'll have a custom creative tab tutorial hopefully up today :).
If you want to find your item however, you can always use the /give command. It may be a bit tricky as you won't be able to use a number to spawn, but rather a name. It's been a long time since I've done this, and I think it is your modid, then a colon, then your unlocalized name to get it to spawn. I may be wrong, but you can try that if you want to see your item.
Just ignore the GitHub parts.
- Create a folder, extract forge
- Run the commands I gave you
- Open up Eclipse
If you don't plan on using GitHub, I suggest you periodically backup your mod. My hard drive crashed about year ago while I was developing one mod, and I lost all the files.
No problem
Nope
The first error, you need to import IIconRegister, and the second error, I think you imported the wrong Block class. You need "
net.minecraft.block.Block" instead.
You should be good after those
However, I am encountering a problem loading a texture. It seems I have done everything right, yet it neglects to load up in Minecraft.
I would love it if you could help. I am at a loss for what is the matter.
Thanks.
Your modid needs to be all lowercase, so you'll need to change that in several locations from what I can see.
Thanks!
You are going to need to install 'git'. Now, I'm not sure how that works for Windows, however, this article should walk you through it. If you have an issues with anything, let me know, and I may be able to help :).
Alternatively, you don't need to use GitHub/Git, however, I recommend you do.
Yes, I've been gathering feedback and writing a list of things I need to change. I'll go back through and change certain things at some point in the future. Thanks for the reminder though