Ok, watching the Second video tutorial, modding in minecraft, and on the second video he says to mouse over @Mod and import it. That went through. But the second part, where you import@EventHandler and FMLPreInitialzationEvent , those aren't showing an import option. I'm pretty sure I followed his tutorial correctly until this part. Is there a setting I need to change or path?
I manually typed in the imports and they are working, but I still don't see why I didn't have the option to import from mousing over the words.
What are you using? Eclipse? If you are using Eclipse, the shortcut to import is Ctrl+Shift+O
I'll try the cntrl+shift+O next time, I got it all working by hand typing in the imports.
And yes, my modid name is ss
@Mod(modid = "ss", name = "SimpleStuff", version = "1.0")
Now, when I first went through I named it SS, I wasn't aware it couldn't have a capital. I used windows explorer to rename it ss instead. then changed the modid from SS to ss.
I'll try the cntrl+shift+O next time, I got it all working by hand typing in the imports.
And yes, my modid name is ss
@Mod(modid = "ss", name = "SimpleStuff", version = "1.0")
Now, when I first went through I named it SS, I wasn't aware it couldn't have a capital. I used windows explorer to rename it ss instead. then changed the modid from SS to ss.
Naming is a bit funny with the resource model that Mojang made. Mod ID has to be the same capitalisation: if you use "ss" for the mod ID in the @Mod annotation, you must use "ss" in "ss:texturenamehere", it cannot be "SS". From what I recall, in Eclipse Minecraft doesn't really care about what capitalisation you use for the folder, but in a compiled environment it must be lowercase. I think this is just a limit / problem with how Eclipse deals with resources. Basically, everything must be lowercase.
Anyways, did that fix it?
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
I just scraped it all, started over and used the names he did for everything and it all worked this time around. I guess when I first named my folder SS instead of ss, I might have screwed something up. Even though i went into explorer and renamed it to ss.
So now I got texture working, but he is another issue I have. When we first make the ItemTable class, it automatically has the superclass Item from net.minecraft.item.Item
Now, at the end of the tutorial he ask you to go ahead and make a total of 5 items. Each new item I have made, when I hover over it and then choose create class, it has the superclass that says something like java.lang.Object. Why did the first one auto-inherit the minecraft item superclass and the others dont? I have to copy and paste the import line from the ItemTable.java into the other 4 items java file. And I have to type in the extended Item part.
I just scraped it all, started over and used the names he did for everything and it all worked this time around. I guess when I first named my folder SS instead of ss, I might have screwed something up. Even though i went into explorer and renamed it to ss.
So now I got texture working, but he is another issue I have. When we first make the ItemTable class, it automatically has the superclass Item from net.minecraft.item.Item
Now, at the end of the tutorial he ask you to go ahead and make a total of 5 items. Each new item I have made, when I hover over it and then choose create class, it has the superclass that says something like java.lang.Object. Why did the first one auto-inherit the minecraft item superclass and the others dont? I have to copy and paste the import line from the ItemTable.java into the other 4 items java file. And I have to type in the extended Item part.
When you create a new class in Eclipse, the default super class is always Object, every time you have to set the super class to be Item. I personally really don't care about it, I just type "extends Item" and import the Item class, boom, done (or, typically, I'll make my own Item wrapper and put some base functionality in that). Also don't forget CTRL + SHIFT + O. That not only imports any non-imported classes, but also sorts and formats them. So unused imports are removed, imports are sorted and overall things are made cleaner.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
Thanks Jcm2606, was just weird because the first item having the item superclass and extends item already in the code, where as the 2nd-4th items did not. Thought maybe I was doing something wrong, but as long as that is normal, I'll just roll with it. Did the item and block tutorials, tonight I'll do some more and hopefully later in a week or two, I'll have a functioning mod, so exciting!
And thanks to everyone who has replied with these helpfully tutorials and books, it is all really great information
What's your mod's ID? The way textures work is it's "modid:texturename", so for that to work your mod ID has to be "ss".
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
What are you using? Eclipse? If you are using Eclipse, the shortcut to import is Ctrl+Shift+O
I'll try the cntrl+shift+O next time, I got it all working by hand typing in the imports.
And yes, my modid name is ss
@Mod(modid = "ss", name = "SimpleStuff", version = "1.0")
Now, when I first went through I named it SS, I wasn't aware it couldn't have a capital. I used windows explorer to rename it ss instead. then changed the modid from SS to ss.
Naming is a bit funny with the resource model that Mojang made. Mod ID has to be the same capitalisation: if you use "ss" for the mod ID in the @Mod annotation, you must use "ss" in "ss:texturenamehere", it cannot be "SS". From what I recall, in Eclipse Minecraft doesn't really care about what capitalisation you use for the folder, but in a compiled environment it must be lowercase. I think this is just a limit / problem with how Eclipse deals with resources. Basically, everything must be lowercase.
Anyways, did that fix it?
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
I just scraped it all, started over and used the names he did for everything and it all worked this time around. I guess when I first named my folder SS instead of ss, I might have screwed something up. Even though i went into explorer and renamed it to ss.
So now I got texture working, but he is another issue I have. When we first make the ItemTable class, it automatically has the superclass Item from net.minecraft.item.Item
Now, at the end of the tutorial he ask you to go ahead and make a total of 5 items. Each new item I have made, when I hover over it and then choose create class, it has the superclass that says something like java.lang.Object. Why did the first one auto-inherit the minecraft item superclass and the others dont? I have to copy and paste the import line from the ItemTable.java into the other 4 items java file. And I have to type in the extended Item part.
When you create a new class in Eclipse, the default super class is always Object, every time you have to set the super class to be Item. I personally really don't care about it, I just type "extends Item" and import the Item class, boom, done (or, typically, I'll make my own Item wrapper and put some base functionality in that). Also don't forget CTRL + SHIFT + O. That not only imports any non-imported classes, but also sorts and formats them. So unused imports are removed, imports are sorted and overall things are made cleaner.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
Thanks Jcm2606, was just weird because the first item having the item superclass and extends item already in the code, where as the 2nd-4th items did not. Thought maybe I was doing something wrong, but as long as that is normal, I'll just roll with it. Did the item and block tutorials, tonight I'll do some more and hopefully later in a week or two, I'll have a functioning mod, so exciting!
And thanks to everyone who has replied with these helpfully tutorials and books, it is all really great information