Hey, I've been searching for how to create my own custom armor, do you know how to do that? The code's changed in the recent 1.5 update and I can't get textures on the armor. I got the armor to show up in-game, but it's got that "missing texture" thing happening to it.
Thanks for fast response. I hope they'll fix it in the next patch. I have one more question. I've copied your ore generation code and changed ore, but it's not generating my own block. I also changed it into diamond ore, but still no effects. What am I doing wrong?
if you noticed the generation tutorials are not yet updated due to a modloader glitch
I have just downloaded eclipse, MCP, JDK, and all that good stuff, but i can't seem to receive any packages or SR files, 4 example the net.minecraft.src
Is how do I code my block so that when it is mined it drops a different item and multiple of them (like redstone or lapis)? The multiple item part seems to be working but even though i have defined the item I want dropped, it only drops multiple of the ore.
I followed, and waited bout half an hour for the decompile application to work, but it just stopped at retroguard, so i closed it out. does this make a difference?
Yeah so the baseMod had nothing to extend from.
I followed, and waited bout half an hour for the decompile application to work, but it just stopped at retroguard, so i closed it out. does this make a difference?
Yeah so the baseMod had nothing to extend from.
public void func_94581_a(IconRegister iconRegister)
{
iconIndex = iconRegister.func_94245_a("MODNAME:TEXTUREFILE");
}
Forge 1.5 has a new way of setting up textures. Steps:
1. Create a folder named 'mods' in mcp/src/minecraft
2. Create a folder named 'MODNAME' in mcp/src/minecraft/mods
3. Create a folder named 'textures' in mcp/src/minecraft/mods/MODNAME
4. Create a folder named 'items' in mcp/src/minecraft/mods/MODNAME/textures
5. Rename your texture file to 'TEXTUREFILE' and place it in mcp/src/minecraft/mods/MODNAME/textures/items
NOTE! DON'T ADD THE .PNG FILE EXTENSION IN THE CODE!
This is getting frustrating. I force update minecraft. Copy new bin folder into into jars folder. Tried with modloader and without it. Deleted and left Meta-inf. Decompiling and it always gets stuck on "applying retroguard", and I never recieve files in any of the temp and src folders. I searched the error and other have recieved as well. Anybody have a solution?????
Edit: Srry 4 wasting anyone's time who has replied to me. I just wasn't patient enough for decompiling to happen. Great things come from waiting.
For some reason I get errors when I try to add the setUnlocalizedName("name") code to my block. Here's the exact code:
public static final Block rubyBlock = new BlockRubyOre(199, 0).setUnlocalizedName("test").setHardness(10F).setResistance(150F).setCreativeTab(CreativeTabs.tabBlock);
The error is on setUnlocalizedName.
Here's my BlockRubyOre code:
package net.minecraft.src;
import java.util.Random;
public class BlockRubyOre extends Block
{
protected BlockRubyOre(int i, int j)
{
super(i, Material.iron);
}
public int idDropped(int par1, Random par2Random, int par3)
{
return mod_MinecraftPlus.ruby.itemID;
}
public int quantityDropped(Random random)
{
return 1;
}
public String Version()
{
return "1.5.1";
}
}
Any ideas on how to fix it?
Rollback Post to RevisionRollBack
↑Click the achievement above to get to my channel↑
For some reason I get errors when I try to add the setUnlocalizedName("name") code to my block. Here's the exact code:
public static final Block rubyBlock = new BlockRubyOre(199, 0).setUnlocalizedName("test").setHardness(10F).setResistance(150F).setCreativeTab(CreativeTabs.tabBlock);
The error is on setUnlocalizedName.
Here's my BlockRubyOre code:
package net.minecraft.src;
import java.util.Random;
public class BlockRubyOre extends Block
{
protected BlockRubyOre(int i, int j)
{
super(i, Material.iron);
}
public int idDropped(int par1, Random par2Random, int par3)
{
return mod_MinecraftPlus.ruby.itemID;
}
public int quantityDropped(Random random)
{
return 1;
}
public String Version()
{
return "1.5.1";
}
}
Any ideas on how to fix it?
read the note at the top of my tutorials
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Yeah so the baseMod had nothing to extend from.
Just wait for it to finish.
Add this to your Item class.
public void func_94581_a(IconRegister iconRegister) { iconIndex = iconRegister.func_94245_a("MODNAME:TEXTUREFILE"); }Forge 1.5 has a new way of setting up textures. Steps:
1. Create a folder named 'mods' in mcp/src/minecraft
2. Create a folder named 'MODNAME' in mcp/src/minecraft/mods
3. Create a folder named 'textures' in mcp/src/minecraft/mods/MODNAME
4. Create a folder named 'items' in mcp/src/minecraft/mods/MODNAME/textures
5. Rename your texture file to 'TEXTUREFILE' and place it in mcp/src/minecraft/mods/MODNAME/textures/items
NOTE! DON'T ADD THE .PNG FILE EXTENSION IN THE CODE!
Edit: Srry 4 wasting anyone's time who has replied to me. I just wasn't patient enough for decompiling to happen. Great things come from waiting.
public static final Block rubyBlock = new BlockRubyOre(199, 0).setUnlocalizedName("test").setHardness(10F).setResistance(150F).setCreativeTab(CreativeTabs.tabBlock);The error is on setUnlocalizedName.Here's my BlockRubyOre code:
package net.minecraft.src; import java.util.Random; public class BlockRubyOre extends Block { protected BlockRubyOre(int i, int j) { super(i, Material.iron); } public int idDropped(int par1, Random par2Random, int par3) { return mod_MinecraftPlus.ruby.itemID; } public int quantityDropped(Random random) { return 1; } public String Version() { return "1.5.1"; } }Any ideas on how to fix it?