Ok i want wondering how i added items. I am still learning to code in eclipse. I have messed around with adding recipes and i wanted to add some items.
ok i have googled everything and i dont know what to do. I have added the item into the game, now i just need to texture it. Here is the code
package steeltoefish.tutorialmod.common.items;
import steeltoefish.tutorialmod.common.TutorialModMain;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class ObsidianStick extends Item {
public ObsidianStick(){
this.setCreativeTab(CreativeTabs.tabMisc);
this.setTextureName(iconString.modid + ":" "ObsidianStick");
}
}
Where it says "iconString.modid" ect. I am not sure what to put there in order to make it work!!! it also tells me (In the same line) that ObsidianStick (Which is my texture name) is a syntax error on token. Help??????????????????????????
Ok i just need help with this problem now. I have changed somethings and i dont know what the problem is. I get no errors in eclipse.
Umm... what's the problem? Error? Crash?Also, why the heck is MODID = null? You literally gave your mod an id on the line above. Why not assign MODID to what you assigned modid in the @Mod annotation?
Rollback Post to RevisionRollBack
If I helped you then please press the button.
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
the problem is that the texture wont show up in the game. It was one of the quick fixes and i was seeing if it worked. I am not sure!! That is why i need help It just tells me that MODID is not a field after i delete MODID = null.
the problem is that the texture wont show up in the game. It was one of the quick fixes and i was seeing if it worked. I am not sure!! That is why i need help It just tells me that MODID is not a field after i delete MODID = null.
Umm, yeah you're supposed to set it to your mod id. Please, atleast learn English. I literally told you to set it to your mod id.
Rollback Post to RevisionRollBack
If I helped you then please press the button.
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
le sigh
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
2. Google some more.
3. Should google fail you, then by all means, come for an answer here.
Where it says "iconString.modid" ect. I am not sure what to put there in order to make it work!!! it also tells me (In the same line) that ObsidianStick (Which is my texture name) is a syntax error on token. Help??????????????????????????
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
The Item class
the main class
And btw i only come here after i cant find anything else on the internet. there is very few tutorials on forge 1.7.2 (Or that i can find anyway)
Umm... what's the problem? Error? Crash?Also, why the heck is MODID = null? You literally gave your mod an id on the line above. Why not assign MODID to what you assigned modid in the @Mod annotation?
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Umm, yeah you're supposed to set it to your mod id. Please, atleast learn English. I literally told you to set it to your mod id.
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his