on episode 2 of forge, my texture of topaz isn't coming up Here is the error 2013-06-17 13:14:25 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/items/topaz.png, but that file does not exist. Ignoring.
I suggest doing this -
in the topaz class file put this in and see if it works -
public void registerIcons(IconRegister reg) {
this.itemIcon = reg.registerIcon("mod_YourMod:PicName");
}
I cannot find the class area? I am a 12 year old with minimum programming experience. so can you tell me where to paste it?
the source files (java) are in the folder called "src" and the actual class files (can't edit with notepad or anything) are in the folder of "bin", then "minecraft", then "net"
if u mean in eclipse, it should be right there off in the sidebar thing...
oh ok, alright when u open Eclipse program, there is a thing on the left side that has a folder thing that says "Minecraft" Click the arrow and then u should see a folder (and other stuff) called "src" all the files of minecraft are in there.
topaz = new GemItems(2013).setUnlocalizedName("topaz");
//names
LanguageRegistry.addName( topaz, "Topaz Gem");
//crafting
}
} That is the first one, this is the next one package
benton.tutorial;
import
net.minecraft.item.Item; import
cpw.mods.fml.relauncher.*; import
net.minecraft.creativetab.CreativeTabs;
  public
class GemItems extends Item { public
GemItems(int par1) { super
(par1); //Returns super constructor: par1 is ID setCreativeTab(CreativeTabs. tabMaterials); //Tells the game what creative mode tab it goes in } } How can I fix it in general?
SCMowns, I was wondering if you knew how to customize your block so that it could only be minable by a certain ammount of pickaxes?
I Know How!
You Chage The material. in your block class
Material.rock = Wooden Pickaxe
Material.iron = Stone Pickaxe
Material.anvill = Iron Pickaxe
Material.dragonegg = Diamond Pickaxe!
I am needing one more thing, I don't know where to put the photo and the code
there should be a folder in the "src" folder what ever u called ur mod, in that there should be a folder called "textures"
Example: mine is - "src", then "mods", then "mod_MoreBlocks", then "texutures". For me in that textures folder i have 2 other folders names "blocks" and "items"
D: im doing the new "Forge" tutorials and everythings working great, i have no error messages but the texture just doesnt load. do you know what might be happening?
D: im doing the new "Forge" tutorials and everythings working great, i have no error messages but the texture just doesnt load. do you know what might be happening?
put this code in the item's class file and see if this works -
public void registerIcons(IconRegister reg) {
this.itemIcon = reg.registerIcon("mod_Name:Topaz");
}
What do you mean class file? do i put it in the mod folder or the items folder, and where?
in eclipse, put the code in the item class, for the pic there should be a folder in "src/minecraft" the folder what ever u named ur mod. In that there should be a folder called "textures" put it in there.
for me, it is in: "C:\Users\Steven\Desktop\Moddings\Forge Moddings\src\minecraft\mods\mod_MoreBlocks\textures\items"
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumno, sorry, idk much about armor stuffs...or to make something have infinite durability...
I suggest doing this -
in the topaz class file put this in and see if it works -
public void registerIcons(IconRegister reg) { this.itemIcon = reg.registerIcon("mod_YourMod:PicName"); }Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumthe source files (java) are in the folder called "src" and the actual class files (can't edit with notepad or anything) are in the folder of "bin", then "minecraft", then "net"
if u mean in eclipse, it should be right there off in the sidebar thing...
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumwait, are you making a mod or installing one to play?
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumoh ok, alright when u open Eclipse program, there is a thing on the left side that has a folder thing that says "Minecraft" Click the arrow and then u should see a folder (and other stuff) called "src" all the files of minecraft are in there.
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
benton.tutorial;
/*
* Basic importing
*/
 
 
import
net.minecraft.block.Block;
import
net.minecraft.item.EnumToolMaterial;
import
net.minecraft.item.Item;
import
net.minecraft.item.ItemFood;
import
net.minecraft.item.ItemStack;
import
net.minecraftforge.common.EnumHelper;
import
cpw.mods.fml.common.Mod;
import
cpw.mods.fml.common.Mod.Init;
import
cpw.mods.fml.common.event.FMLInitializationEvent;
import
cpw.mods.fml.common.network.NetworkMod;
import
cpw.mods.fml.common.registry.GameRegistry;
import
cpw.mods.fml.common.registry.LanguageRegistry;
 
/*
* Basic needed forge stuff
*/
@Mod
(modid="TutorialMod",name="Tutorial Mod",version="v1")
@NetworkMod
(clientSideRequired=true,serverSideRequired=false)
 
 
public
class Tutorialmod {
/*
* ToolMaterial
*/
//Telling forge that we are creating these
public static Item topaz;
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define
topaz = new GemItems(2013).setUnlocalizedName("topaz");
//names
LanguageRegistry.addName(
topaz, "Topaz Gem");
//crafting
}
}
That is the first one, this is the next one
package
benton.tutorial;
import
net.minecraft.item.Item;
import
cpw.mods.fml.relauncher.*;
import
net.minecraft.creativetab.CreativeTabs;
 
public
class GemItems extends Item {
public
GemItems(int par1) {
super
(par1); //Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.
tabMaterials); //Tells the game what creative mode tab it goes in
}
}
How can I fix it in general?
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumwhat are you trying to fix? It seems fine to me...
also just a tip when posting code, type the BBCode thing -
and also when post long codes or error logs, spoilers are nice -
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumoh that should be easy to fix!
1. do you have the pic in the texture folder in src?
2. put this code in the item's class file -
public void registerIcons(IconRegister reg) { this.itemIcon = reg.registerIcon("mod_Name:PicName"); }now change the "mod_Name:PicName" to ur stuff
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
I Know How!
You Chage The material. in your block class
Material.rock = Wooden Pickaxe
Material.iron = Stone Pickaxe
Material.anvill = Iron Pickaxe
Material.dragonegg = Diamond Pickaxe!
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumthere should be a folder in the "src" folder what ever u called ur mod, in that there should be a folder called "textures"
Example: mine is - "src", then "mods", then "mod_MoreBlocks", then "texutures". For me in that textures folder i have 2 other folders names "blocks" and "items"
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumopen eclipse, and find your mod in the mc src code, then find the item class, and put it in there
put this code in the item's class file and see if this works -
public void registerIcons(IconRegister reg) { this.itemIcon = reg.registerIcon("mod_Name:Topaz"); }change "mod_Name" to ur things
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumin eclipse, put the code in the item class, for the pic there should be a folder in "src/minecraft" the folder what ever u named ur mod. In that there should be a folder called "textures" put it in there.
for me, it is in: "C:\Users\Steven\Desktop\Moddings\Forge Moddings\src\minecraft\mods\mod_MoreBlocks\textures\items"
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist