Quick update! I just added the custom item tutorial and it will work so that you can use it for all your items (about all), and still give all of them unique pictures.
Thanks a lot, this is the only tutorial I was able to find that covered 1.5+
Can you clarify where we should save textures at with a bit more detail? From what I understood they should be inside the minecraft.jar under mods/<method_name>/textures/<blocks/items>/<texture>.png
and every texture should be the name of the item name within the code. But what I didnt understand was this part:
I recommend go to the place on your computer where you save all your pictures and make a folder called mods. Inside this folder you make another folder with the name you put in the method we used to give our block a texture.
Which method name am I supposed to use? Do we have to use the method name or could we use the mod name or something else? Thanks for all the help!
Thanks a lot, this is the only tutorial I was able to find that covered 1.5+
Can you clarify where we should save textures at with a bit more detail? From what I understood they should be inside the minecraft.jar under mods/<method_name>/textures/<blocks/items>/<texture>.png
and every texture should be the name of the item name within the code. But what I didnt understand was this part:
Which method name am I supposed to use? Do we have to use the method name or could we use the mod name or something else? Thanks for all the help!
Yeah I saw that I was a bit unclear here, what I meant was that the second folder, the folder inside the mods folder, should be called the same as what you put in here : "theNameHere:" + texture. With other words the theNameHere is what you call the folder.
Yeah I saw that I was a bit unclear here, what I meant was that the second folder, the folder inside the mods folder, should be called the same as what you put in here : "theNameHere;" + texture. With other words the theNameHere is what you call the folder.
Hope that cleared up the difficulties.
Awesome, that does indeed clarify that a lot, thanks for that.
Also, there seems to be something wrong with the way you have set up your proxy & the latest build of forge version 7.7.0.610
or something.. Anyways I am getting this error.
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: com.NaddoxMod.Mod_Naddox.ClientProxy
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:67)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:407)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.NaddoxMod.Mod_Naddox.ClientProxy
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:50)
... 27 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)
... 33 more
--- END ERROR REPORT 5aec1cec ----------
I have cleared my main class from all added content I added and left it as the blank template from your tutorial and I got this exact same error.
@Mod(modid = "NaddoxMod", name = "NaddoxMod", version = "1.0.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class Mod_Naddox
{
@Instance("NaddoxMod")
public static Mod_Naddox instance;
@SidedProxy(clientSide = "com.NaddoxMod.Mod_Naddox.ClientProxy", serverSide = "com.NaddoxMod.Mod_Naddox.CommonProxy")
public static CommonProxy proxy;
// BLOCKS
public static Block silverOre;
public static Block silverBlock;
public static Block limestone;
public static Block limestoneBricks;
public static Block limestoneBrickSmooth;
public static Block limestoneBrickSmooth_Chiseled;
public static Block coalBlock;
// ITEMS
public static Item silverIngot;
public static Item shovelSilver;
public static Item pickaxeSilver;
public static Item hatchetSilver;
public static Item hoeSilver;
public static Item swordSilver;
public static Item helmetSilver;
public static Item chestplateSilver;
public static Item leggingsSilver;
public static Item bootsSilver;
public static Item ironChainLink;
public static Item shovelEmerald;
public static Item pickaxeEmerald;
public static Item hatchetEmerald;
public static Item hoeEmerald;
public static Item swordEmerald;
@PreInit
public void preLoad(FMLPreInitializationEvent event)
{
// Stub Method
}
@Init
public void load(FMLInitializationEvent event)
{
proxy.registerRenderThings();
// BLOCKS
silverOre = new BlockSilverOre(1000, "silverOre").setUnlocalizedName("silverOre").setHardness(3.0F).setResistance(10.0F);
silverBlock = new BlockSilverBlock(1001, "silverBlock").setUnlocalizedName("silverBlock").setHardness(3.0F).setResistance(10.F);
limestone = new BlockLimestone(1002, "limestone").setUnlocalizedName("limestone").setHardness(3.0F).setResistance(10.0F);
limestoneBricks = new BlockLimestoneBricks(1003, "limestoneBricks").setUnlocalizedName("limestoneBricks").setHardness(3.0F).setResistance(10.0F);
limestoneBrickSmooth = new BlockLimestoneBrickSmooth(1004, "limestoneBrickSmooth").setUnlocalizedName("limestoneBrickSmooth").setHardness(3.0F).setResistance(10.0F);
limestoneBrickSmooth_Chiseled = new BlockLimestoneBrickSmooth_Chiseled(1005, "limestoneBrickSmooth_Chiseled").setUnlocalizedName("limestoneBrickSmooth_Chiseled").setHardness(3.0F).setResistance(10.0F);
coalBlock = new BlockCoalBlock(1006, "coalBlock").setUnlocalizedName("coalBlock").setHardness(3.0F).setResistance(10.0F);
// ITEMS
silverIngot = new ItemSilverIngot(6000, "silverIngot").setUnlocalizedName("silverIngot");
shovelSilver = new ItemShovelSilver(6001, "shovelSilver").setUnlocalizedName("shovelSilver");
pickaxeSilver = new ItemPickaxeSilver(6002, "pickaxeSilver").setUnlocalizedName("pickaxeSilver");
hatchetSilver = new ItemHatchetSilver(6003, "hatchetSilver").setUnlocalizedName("hatchetSilver");
hoeSilver = new ItemHoeSilver(6004, "hoeSilver").setUnlocalizedName("hoeSilver");
swordSilver = new ItemSwordSilver(6005, "swordSilver").setUnlocalizedName("swordSilver");
helmetSilver = new ItemHelmetSilver(6006, "helmetSilver").setUnlocalizedName("helmetSilver");
chestplateSilver = new ItemChestplateSilver(6007, "chestplateSilver").setUnlocalizedName("chestplateSilver");
leggingsSilver = new ItemLeggingsSilver(6008, "leggingsSilver").setUnlocalizedName("leggingsSilver");
bootsSilver = new ItemBootsSilver(6009, "bootsSilver").setUnlocalizedName("bootsSilver");
ironChainLink = new ItemIronChainLink(6010, "ironChainLink").setUnlocalizedName("ironChainLink");
shovelEmerald = new ItemShovelEmerald(6011, "shovelEmerald").setUnlocalizedName("shovelEmerald");
pickaxeEmerald = new ItemPickaxeEmerald(6012, "pickaxeEmerald").setUnlocalizedName("pickaxeEmerald");
hatchetEmerald = new ItemHatchetEmerald(6013, "hatchetEmerald").setUnlocalizedName("hatchetEmerald");
hoeEmerald = new ItemHoeEmerald(6014, "hoeEmerald").setUnlocalizedName("hoeEmerald");
swordEmerald = new ItemSwordEmerald(6015, "swordEmerald").setUnlocalizedName("swordEmerald");
You are giving the proxies the wrong location. You say that you got your ClientProxy and CommonProxy inside your mod_Naddox class instead of inside your package with the ClientProxy and CommonProxy.
You are giving the proxies the wrong location. You say that you got your ClientProxy and CommonProxy inside your mod_Naddox class instead of inside your package with the ClientProxy and CommonProxy.
Can you do a tutorial on making tools? Every tutorial I have looked at is either too confusing to follow or is for an older version and no longer works. Thanks.
Also I was going to suggest adding to your block tutorial a way to define the drop for the block when its mined, so if I make a custom ore and I want it to drop an item or make a block like stone that drops cobblestone, ect.
Can you do a tutorial on making tools? Every tutorial I have looked at is either too confusing to follow or is for an older version and no longer works. Thanks.
Also I was going to suggest adding to your block tutorial a way to define the drop for the block when its mined, so if I make a custom ore and I want it to drop an item or make a block like stone that drops cobblestone, ect.
Tools is added in the planed list.
The custom drops for your block will be added soon.
Hello Xeto there are to ways to ways to 'render' the armor icons 1.
Make a string called texture (in your armor class) then after this.setcreativ do
this.texture = texture; (in armor file)it will tell you to add a parameter so in your main mod class when you do
yourhelmet = armorclass(id)...ect..
Add this after id, "yourmod:hlemet.png"
It should look like this
yourhelmet = armorclass(id, "yourmod:hlemet.png")...ect..; the another way is registering your icons i am on my phone right now and idk the rest of the code
Xeto could you please tell me how to make a mob drop a metadata item and how to make a crafting rercipe for a metadata item please thank you
Hello Xeto there are to ways to ways to 'render' the armor icons 1.
Make a string called texture (in your armor class) then after this.setcreativ do
this.texture = texture; (in armor file)it will tell you to add a parameter so in your main mod class when you do
yourhelmet = armorclass(id)...ect..
Add this after id, "yourmod:hlemet.png"
It should look like this
yourhelmet = armorclass(id, "yourmod:hlemet.png")...ect..; the another way is registering your icons i am on my phone right now and idk the rest of the code
Xeto could you please tell me how to make a mob drop a metadata item and how to make a crafting rercipe for a metadata item please thank you
-kaikaii99
I have figured out the stuff with texture for the armour, but thanks either way.
Now for the Crafting recipe with metadata you do something like this:
GameRegistry.addRecipe(new ItemStack(YourItemsClass.yourItem, quantity, metadata), "xxx", "xxx", "xxx", 'x', new ItemStack(YourItemsClass.yourItem, quantity, metadata)); // quantity being the amount of the Item and metadata being the metadata your item has.
// And here is for the shapeless:
GameRegistry.addShapelessRecipes(new ItemStack(YourItemsClass.yourItem, quantity, metadata), new ItemStack(YourItemsClass.yourItem, quantity, metadata) /**+ eventuall other items and blocks. */);
Visit my youtube channel? http://www.youtube.com/user/TheCoolgatty
I can, I'll just have to check out how the armour textures works in 1.5 since I haven't actually checked that out.
Armor works exactly as before when it renders and it works just like items for the GUI texture
Visit my youtube channel? http://www.youtube.com/user/TheCoolgatty
Can you clarify where we should save textures at with a bit more detail? From what I understood they should be inside the minecraft.jar under mods/<method_name>/textures/<blocks/items>/<texture>.png
and every texture should be the name of the item name within the code. But what I didnt understand was this part:
Which method name am I supposed to use? Do we have to use the method name or could we use the mod name or something else? Thanks for all the help!
Yeah I saw that I was a bit unclear here, what I meant was that the second folder, the folder inside the mods folder, should be called the same as what you put in here : "theNameHere:" + texture. With other words the theNameHere is what you call the folder.
Hope that cleared up the difficulties.
Also, there seems to be something wrong with the way you have set up your proxy & the latest build of forge version 7.7.0.610
or something.. Anyways I am getting this error.
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:67)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:407)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.NaddoxMod.Mod_Naddox.ClientProxy
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:50)
... 27 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)
... 33 more
--- END ERROR REPORT 5aec1cec ----------
I have cleared my main class from all added content I added and left it as the blank template from your tutorial and I got this exact same error.
Mod_Naddox.java
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = "NaddoxMod", name = "NaddoxMod", version = "1.0.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class Mod_Naddox
{
@Instance("NaddoxMod")
public static Mod_Naddox instance;
@SidedProxy(clientSide = "com.NaddoxMod.Mod_Naddox.ClientProxy", serverSide = "com.NaddoxMod.Mod_Naddox.CommonProxy")
public static CommonProxy proxy;
// BLOCKS
public static Block silverOre;
public static Block silverBlock;
public static Block limestone;
public static Block limestoneBricks;
public static Block limestoneBrickSmooth;
public static Block limestoneBrickSmooth_Chiseled;
public static Block coalBlock;
// ITEMS
public static Item silverIngot;
public static Item shovelSilver;
public static Item pickaxeSilver;
public static Item hatchetSilver;
public static Item hoeSilver;
public static Item swordSilver;
public static Item helmetSilver;
public static Item chestplateSilver;
public static Item leggingsSilver;
public static Item bootsSilver;
public static Item ironChainLink;
public static Item shovelEmerald;
public static Item pickaxeEmerald;
public static Item hatchetEmerald;
public static Item hoeEmerald;
public static Item swordEmerald;
@PreInit
public void preLoad(FMLPreInitializationEvent event)
{
// Stub Method
}
@Init
public void load(FMLInitializationEvent event)
{
proxy.registerRenderThings();
// BLOCKS
silverOre = new BlockSilverOre(1000, "silverOre").setUnlocalizedName("silverOre").setHardness(3.0F).setResistance(10.0F);
silverBlock = new BlockSilverBlock(1001, "silverBlock").setUnlocalizedName("silverBlock").setHardness(3.0F).setResistance(10.F);
limestone = new BlockLimestone(1002, "limestone").setUnlocalizedName("limestone").setHardness(3.0F).setResistance(10.0F);
limestoneBricks = new BlockLimestoneBricks(1003, "limestoneBricks").setUnlocalizedName("limestoneBricks").setHardness(3.0F).setResistance(10.0F);
limestoneBrickSmooth = new BlockLimestoneBrickSmooth(1004, "limestoneBrickSmooth").setUnlocalizedName("limestoneBrickSmooth").setHardness(3.0F).setResistance(10.0F);
limestoneBrickSmooth_Chiseled = new BlockLimestoneBrickSmooth_Chiseled(1005, "limestoneBrickSmooth_Chiseled").setUnlocalizedName("limestoneBrickSmooth_Chiseled").setHardness(3.0F).setResistance(10.0F);
coalBlock = new BlockCoalBlock(1006, "coalBlock").setUnlocalizedName("coalBlock").setHardness(3.0F).setResistance(10.0F);
// ITEMS
silverIngot = new ItemSilverIngot(6000, "silverIngot").setUnlocalizedName("silverIngot");
shovelSilver = new ItemShovelSilver(6001, "shovelSilver").setUnlocalizedName("shovelSilver");
pickaxeSilver = new ItemPickaxeSilver(6002, "pickaxeSilver").setUnlocalizedName("pickaxeSilver");
hatchetSilver = new ItemHatchetSilver(6003, "hatchetSilver").setUnlocalizedName("hatchetSilver");
hoeSilver = new ItemHoeSilver(6004, "hoeSilver").setUnlocalizedName("hoeSilver");
swordSilver = new ItemSwordSilver(6005, "swordSilver").setUnlocalizedName("swordSilver");
helmetSilver = new ItemHelmetSilver(6006, "helmetSilver").setUnlocalizedName("helmetSilver");
chestplateSilver = new ItemChestplateSilver(6007, "chestplateSilver").setUnlocalizedName("chestplateSilver");
leggingsSilver = new ItemLeggingsSilver(6008, "leggingsSilver").setUnlocalizedName("leggingsSilver");
bootsSilver = new ItemBootsSilver(6009, "bootsSilver").setUnlocalizedName("bootsSilver");
ironChainLink = new ItemIronChainLink(6010, "ironChainLink").setUnlocalizedName("ironChainLink");
shovelEmerald = new ItemShovelEmerald(6011, "shovelEmerald").setUnlocalizedName("shovelEmerald");
pickaxeEmerald = new ItemPickaxeEmerald(6012, "pickaxeEmerald").setUnlocalizedName("pickaxeEmerald");
hatchetEmerald = new ItemHatchetEmerald(6013, "hatchetEmerald").setUnlocalizedName("hatchetEmerald");
hoeEmerald = new ItemHoeEmerald(6014, "hoeEmerald").setUnlocalizedName("hoeEmerald");
swordEmerald = new ItemSwordEmerald(6015, "swordEmerald").setUnlocalizedName("swordEmerald");
GameRegistry.registerBlock(silverOre, "silverOre");
GameRegistry.registerBlock(silverBlock, "silverBlock");
GameRegistry.registerBlock(limestone, "limestone");
GameRegistry.registerBlock(limestoneBricks, "limestoneBricks");
GameRegistry.registerBlock(limestoneBrickSmooth, "limestoneBrickSmooth");
GameRegistry.registerBlock(limestoneBrickSmooth_Chiseled, "limestoneBrickSmooth_Chiseled");
GameRegistry.registerBlock(coalBlock, "coalBlock");
// BLOCKS
LanguageRegistry.addName(silverOre, "Silver Ore");
LanguageRegistry.addName(silverBlock, "Block of Silver");
LanguageRegistry.addName(limestone, "Limestone");
LanguageRegistry.addName(limestoneBricks, "Limestone Cobble");
LanguageRegistry.addName(limestoneBrickSmooth, "Limestone Bricks");
LanguageRegistry.addName(limestoneBrickSmooth_Chiseled, "Chiseled Limestone Bricks");
LanguageRegistry.addName(coalBlock, "Block of Coal");
// ITEMS
LanguageRegistry.addName(silverIngot, "Silver Ingot");
LanguageRegistry.addName(shovelSilver, "Silver Shovel");
LanguageRegistry.addName(pickaxeSilver, "Silver Pickaxe");
LanguageRegistry.addName(hatchetSilver, "Silver Hatchet");
LanguageRegistry.addName(hoeSilver, "Silver Hoe");
LanguageRegistry.addName(swordSilver, "Silver Sword");
LanguageRegistry.addName(helmetSilver, "Silver Helmet");
LanguageRegistry.addName(chestplateSilver, "Silver Chestplate");
LanguageRegistry.addName(leggingsSilver, "Silver Leggings");
LanguageRegistry.addName(bootsSilver, "Silver Boots");
LanguageRegistry.addName(ironChainLink, "Chain Link");
LanguageRegistry.addName(shovelEmerald, "Emerald Shovel");
LanguageRegistry.addName(pickaxeEmerald, "Emerald Pickaxe");
LanguageRegistry.addName(hatchetEmerald, "Emerald Hatchet");
LanguageRegistry.addName(hoeEmerald, "Emerald Hoe");
LanguageRegistry.addName(swordEmerald, "Emerald Sword");
// RECIPES
ItemStack silverIngotStack = new ItemStack(Mod_Naddox.silverIngot);
ItemStack silverOreStack = new ItemStack(Mod_Naddox.silverOre);
ItemStack silverBlockStack = new ItemStack(Mod_Naddox.silverBlock);
ItemStack stickStack = new ItemStack(Item.stick);
GameRegistry.addSmelting(Mod_Naddox.silverOre.blockID, new ItemStack(Mod_Naddox.silverIngot), 0.4F);
GameRegistry.addRecipe(new ItemStack(Mod_Naddox.shovelSilver), "x", "y", "y",
'x', silverIngotStack, 'y', stickStack);
GameRegistry.addRecipe(new ItemStack(Mod_Naddox.pickaxeSilver), "xxx", " y ", " y ",
'x', silverIngotStack, 'y', stickStack);
GameRegistry.addRecipe(new ItemStack(Mod_Naddox.hatchetSilver), "xx", "xy", " y",
'x', silverIngotStack, 'y', stickStack);
GameRegistry.addRecipe(new ItemStack(Mod_Naddox.hoeSilver), "xx", " y", " y",
'x', silverIngotStack, 'y', stickStack);
GameRegistry.addRecipe(new ItemStack(Mod_Naddox.swordSilver), "x", "x", "y",
'x', silverIngotStack, 'y', stickStack);
}
@PostInit
public void modsLoaded(FMLPostInitializationEvent event)
{
// Stub Method
}
}
ClientProxy.java
public class ClientProxy extends CommonProxy
{
@Override
public void registerRenderThings()
{
}
}
CommonProxy.java
public class CommonProxy
{
public void registerRenderThings(){
}
}
Change this:
To this:
Thanks a bunch, works perfectly and so do the textures.
Glad to help.
Also I was going to suggest adding to your block tutorial a way to define the drop for the block when its mined, so if I make a custom ore and I want it to drop an item or make a block like stone that drops cobblestone, ect.
Tools is added in the planed list.
The custom drops for your block will be added soon.
Make a string called texture (in your armor class) then after this.setcreativ do
this.texture = texture; (in armor file)it will tell you to add a parameter so in your main mod class when you do
yourhelmet = armorclass(id)...ect..
Add this after id, "yourmod:hlemet.png"
It should look like this
yourhelmet = armorclass(id, "yourmod:hlemet.png")...ect..; the another way is registering your icons i am on my phone right now and idk the rest of the code
Xeto could you please tell me how to make a mob drop a metadata item and how to make a crafting rercipe for a metadata item please thank you
-kaikaii99
I have figured out the stuff with texture for the armour, but thanks either way.
Now for the Crafting recipe with metadata you do something like this: