any way you can make a custom block model?
i can never get them to work since 1.3
What do you mean? If you mean the texture or whatever, I just create a 16x16 pixel png and use that. If you ware talking different sized like fences and stuff, I can't get them to work either.
Rollback Post to RevisionRollBack
I fought through the Nether and all I got was this stupid signature.
What do you mean? If you mean the texture or whatever, I just create a 16x16 pixel png and use that. If you ware talking different sized like fences and stuff, I can't get them to work either.
I really want to some stairs, jbond, know how to do that?
I was wondering if you could explain how the cauldron works code-wise. I am very new to modding and your tutorials are AWESOME <3 I just don't quite understand the cauldron. Any help would be appreciated.
So I try to make a mod called hardened ores, strangely, it does not allow me to use my own created items in the recipes:
package net.minecraft.src;
public class mod_HardenedOres extends BaseMod
{
public static final Item IronTippedStonePickaxe = (new ItemPickaxe(200, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Pickaxe");
public static final Item IronTippedStoneAxe = (new ItemAxe(201, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Axe");
public static final Item IronTippedStoneShovel = (new ItemSpade(202, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Shovel");
public static final Item IronTippedStoneSword = (new ItemSword(203, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Sword");
public static final Item IronTippedStoneHoe = (new ItemHoe(204, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Hoe");
ModLoader.addRecipe(new ItemStack(IronTippedStonePickaxe, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.pickaxeStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneShovel, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.shovelStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneSword, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.swordStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneAxe, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.axeStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneHoe, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.hoeStone});
ModLoader.addName(IronTippedStonePickaxe, "Iron Tipped Stone Pickaxe");
ModLoader.addName(IronTippedStoneAxe, "Iron Tipped Stone Axe");
ModLoader.addName(IronTippedStoneShovel, "Iron Tipped Stone Shovel");
ModLoader.addName(IronTippedStoneSword, "Iron Tipped Stone Sword");
ModLoader.addName(IronTippedStoneHoe, "Iron Tipped Stone Hoe");
}
public String getVersion()
{
return "1.4.5";
}}
(It gives me errors where it says "meltedIron"
The second part of the mod:
package net.minecraft.src;
import java.util.Random;
public class mod_HardenedOres1 extends BaseMod
{
public static final Item meltedGold = new Item(5000).setItemName("Melted Gold");
public static final Item meltedIron = new Item(5001).setItemName("Melted Iron");
public static final Item HardenedGold = new Item(5002).setItemName("Hardened Gold");
public static final Item HardenedIron = new Item(5003).setItemName("Hardened Iron");
public void load()
{
meltedGold.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/MG.png");
meltedIron.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/MI.png");
HardenedGold.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/HG.png");
ModLoader.addName(meltedGold, "Melted Gold");
ModLoader.addName(meltedIron, "Melted Iron");
ModLoader.addName(HardenedIron, "Hardened Iron");
ModLoader.addName(HardenedGold, "Hardened Gold");
ModLoader.addSmelting( Item.ingotIron.shiftedIndex, new ItemStack(meltedIron, 1), 1.0F);
ModLoader.addSmelting( Item.ingotGold.shiftedIndex, new ItemStack(meltedGold, 1), 1.0F);
ModLoader.addRecipe(new ItemStack(HardenedIron, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.bucketWater});
ModLoader.addRecipe(new ItemStack(HardenedGold, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedGold, Character.valueOf('X'), Item.bucketWater});
So I try to make a mod called hardened ores, strangely, it does not allow me to use my own created items in the recipes:
package net.minecraft.src;
public class mod_HardenedOres extends BaseMod
{
public static final Item IronTippedStonePickaxe = (new ItemPickaxe(200, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Pickaxe");
public static final Item IronTippedStoneAxe = (new ItemAxe(201, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Axe");
public static final Item IronTippedStoneShovel = (new ItemSpade(202, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Shovel");
public static final Item IronTippedStoneSword = (new ItemSword(203, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Sword");
public static final Item IronTippedStoneHoe = (new ItemHoe(204, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Hoe");
ModLoader.addRecipe(new ItemStack(IronTippedStonePickaxe, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.pickaxeStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneShovel, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.shovelStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneSword, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.swordStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneAxe, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.axeStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneHoe, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.hoeStone});
ModLoader.addName(IronTippedStonePickaxe, "Iron Tipped Stone Pickaxe");
ModLoader.addName(IronTippedStoneAxe, "Iron Tipped Stone Axe");
ModLoader.addName(IronTippedStoneShovel, "Iron Tipped Stone Shovel");
ModLoader.addName(IronTippedStoneSword, "Iron Tipped Stone Sword");
ModLoader.addName(IronTippedStoneHoe, "Iron Tipped Stone Hoe");
}
public String getVersion()
{
return "1.4.5";
}}
(It gives me errors where it says "meltedIron"
The second part of the mod:
package net.minecraft.src;
import java.util.Random;
public class mod_HardenedOres1 extends BaseMod
{
public static final Item meltedGold = new Item(5000).setItemName("Melted Gold");
public static final Item meltedIron = new Item(5001).setItemName("Melted Iron");
public static final Item HardenedGold = new Item(5002).setItemName("Hardened Gold");
public static final Item HardenedIron = new Item(5003).setItemName("Hardened Iron");
public void load()
{
meltedGold.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/MG.png");
meltedIron.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/MI.png");
HardenedGold.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/HG.png");
ModLoader.addName(meltedGold, "Melted Gold");
ModLoader.addName(meltedIron, "Melted Iron");
ModLoader.addName(HardenedIron, "Hardened Iron");
ModLoader.addName(HardenedGold, "Hardened Gold");
ModLoader.addSmelting( Item.ingotIron.shiftedIndex, new ItemStack(meltedIron, 1), 1.0F);
ModLoader.addSmelting( Item.ingotGold.shiftedIndex, new ItemStack(meltedGold, 1), 1.0F);
ModLoader.addRecipe(new ItemStack(HardenedIron, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.bucketWater});
ModLoader.addRecipe(new ItemStack(HardenedGold, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedGold, Character.valueOf('X'), Item.bucketWater});
I don't quite understand what you mean.. Can you explain a bit more? It has worked like that many many times before on earlier versions. I got this error then i upgraded to 1.4.5.
Nvm what I said. It was wrong. I honestly can't find anything wrong with your coding. :\ Sorry... Did you update the code or just modloader and the client? If anything it would be the change in the block rendering. I think there might be a new way of picking side top and bottom textures.
I want to my sword can be enchanted, how can I do this?
Celito(0, 600, 0F, 3, 10);
And my food, I wanted the wolves can to eat it.
Can anyone help me?
public static final Item nameHere = new ItemFood(5000, 6, 1F, true).setItemName("anyNameHere");
Not quite sure on the sword yet, I'd check Rotten Flesh's code because it gives the hunger potion effect. Also,
5000 = ItemID
6 = How many half hearts it heals.
1F = How long it fills you until you start to lose hunger again. (saturation)
true = if wolves can be fed said object.
Rollback Post to RevisionRollBack
I fought through the Nether and all I got was this stupid signature.
I don't quite understand what you mean.. Can you explain a bit more? It has worked like that many many times before on earlier versions. I got this error then i upgraded to 1.4.5.
[spoiler][code]package net.minecraft.src;
import java.util.Random;
public class mod_YourBlock extends BaseMod
{
public static final Block YourBlock = new BlockYourBlock(200, 0).setHardness(3.5F).setResistance(2.0F).setBlockName("yourBlock");
public static int YourBlockTop;
public static int YourBlockBottom;
public mod_YourBlock()
{
//Block Register
ModLoader.RegisterBlock(YourBlock);
//Texture
YourBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mod/yourblock.png");
YourBlockTop = ModLoader.addOverride("/terrain.png", "/mod/yourblocktop.png");
YourBlockBottom = ModLoader.addOverride("/terrain.png", "/mod/yourblockbottom.png");
//In-Game Names
ModLoader.AddName(YourBlock, "Awesome Block!");
}
public String Version()
{
return "Aluminium Mod v2.0";
}
}[/code][/spoiler]
Here we have a simple block and two int's to reference to for the top and bottom textures
Next we need to make a BlockYourBlock.java file like this: public class BlockYourBlock extends Block
{
public BlockYourBlock(int i, int j)
{
super(i, Material.stone);
blockIndexInTexture = j;
} public int getBlockTextureFromSide(int i)
{
if(i == 1)
{
return mod_YourBlock.YourBlockTop;
}
if(i == 0)
{
return mod_aluminium.YourBlockBottom;
}else
{
return blockIndexInTexture;
} public int idDropped(int i, Random random)
{
return mod_YourBlock.YourBlock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
}
[/CODE][/spoiler]
Here the "i" is the side of the block. The different numbers represent different sides:
[code]0 - bottom
1 - top
2,3,4,5 - sides[/code]
The opposite sides make pairs like this:
[code]2,3
4,5[/code]
So:
[code]if(i == 1) //i = side 1 = top
{
return mod_YourBlock.YourBlockTop; //the texture to go on top
}[/code]
On a completely unrelated note. Yay go carpenters!!
Rollback Post to RevisionRollBack
I fought through the Nether and all I got was this stupid signature.
Great tutorials. You should do one on setting a blocks bounds so it can be like a pressure plate because that is very easy to do and yet very cool ingame.
I need help with some of my code. I am new to modding but have the basic general Idea and have created a simple mod. However, there is one thing I need help with. My mod does compile and successfully run, however there is a glitch whenever I run the mod. mod_randomstuff (my mod) code (formatted) is located here. There is quite a lot. :
public class mod_randomstuff extends BaseMod {
public static final Block enderBrick = new BlockEnderBrick(160, 0)
.setStepSound(Block.soundMetalFootstep).setBlockName("enderBrick")
.setHardness(25F).setResistance(3000F).setLightValue(1.0F);
public static final Block oreBluestone = new BlockBluestoneOre(161, 0)
.setStepSound(Block.soundStoneFootstep)
.setBlockName("oreBluestone").setHardness(4.5F).setResistance(5F)
.setLightValue(0.252F);
public static final Item blueStone = new Item(5000)
.setItemName("blueStone");
public static final Item pancake = new ItemFood(5001, 4, 2F, false)
.setItemName("Pancake");
public static final Item bluePickaxe = (new ItemPickaxe(200,
EnumToolMaterial.BLUE)).setItemName("bluePickaxe");
public static final Item blueAxe = (new ItemAxe(201, EnumToolMaterial.BLUE))
.setItemName("blueAxe");
public static final Item blueShovel = (new ItemSpade(202,
EnumToolMaterial.BLUE)).setItemName("blueShovel");
public static final Item blueSword = (new ItemSword(203,
EnumToolMaterial.BLUE)).setItemName("blueSword");
public static final Item blueHoe = (new ItemHoe(204, EnumToolMaterial.BLUE))
.setItemName("blueHoe");
public static final BiomeGenBase stoneHills = (new BiomeGenStoneHills(40))
.setBiomeName("Stone Hills");
public static final Item blueHelmet = new ItemArmor(5003,
EnumArmorMaterial.BLUE, ModLoader.addArmor("myhead"), 0)
.setItemName("blueHelmet");
public static final Item blueChestplate = new ItemArmor(5004,
EnumArmorMaterial.BLUE, ModLoader.addArmor("mychest"), 1)
.setItemName("blueChestplate");
public static final Item blueLeggings = new ItemArmor(5005,
EnumArmorMaterial.BLUE, ModLoader.addArmor("mylegs"), 2)
.setItemName("blueLeggings");
public static final Item blueBoots = new ItemArmor(5006,
EnumArmorMaterial.BLUE, ModLoader.addArmor("myfeet"), 3)
.setItemName("blueBoots");
public void generateSurface(World world, Random random, int i, int j,
Random rand, int chunkX, int chunkZ) {
BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(chunkX,
chunkZ);
for (int k = 0; k < 1; k++) {
int randPosX = i + random.nextInt(16);
int randPosY = random.nextInt(20);
int randPosZ = j + random.nextInt(16);
(new WorldGenMinable(oreBluestone.blockID, 6)).generate(world,
random, randPosX, randPosY, randPosZ);
}
public String getVersion() {
return "Randomstuff Minecraft mod for 1.4.5";
}
}
What it does: adds two new blocks, one new biome, one new ore, one new armor set, one more tool set, and one more food.Not exactly in that order.
My problem: when I load my mod and put on my armor, it appears as a white sheet covering my player instead of what it should be.
Side note: there is an "o f" textured onto the top of my armor if that helps.
I think the glitch might have something to do with RenderPlayer.class, but I'm not sure. any help would be appreciated.
I need help with some of my code. I am new to modding but have the basic general Idea and have created a simple mod. However, there is one thing I need help with. My mod does compile and successfully run, however there is a glitch whenever I run the mod. mod_randomstuff (my mod) code (formatted) is located here. There is quite a lot. :
public class mod_randomstuff extends BaseMod {
public static final Block enderBrick = new BlockEnderBrick(160, 0)
.setStepSound(Block.soundMetalFootstep).setBlockName("enderBrick")
.setHardness(25F).setResistance(3000F).setLightValue(1.0F);
public static final Block oreBluestone = new BlockBluestoneOre(161, 0)
.setStepSound(Block.soundStoneFootstep)
.setBlockName("oreBluestone").setHardness(4.5F).setResistance(5F)
.setLightValue(0.252F);
public static final Item blueStone = new Item(5000)
.setItemName("blueStone");
public static final Item pancake = new ItemFood(5001, 4, 2F, false)
.setItemName("Pancake");
public static final Item bluePickaxe = (new ItemPickaxe(200,
EnumToolMaterial.BLUE)).setItemName("bluePickaxe");
public static final Item blueAxe = (new ItemAxe(201, EnumToolMaterial.BLUE))
.setItemName("blueAxe");
public static final Item blueShovel = (new ItemSpade(202,
EnumToolMaterial.BLUE)).setItemName("blueShovel");
public static final Item blueSword = (new ItemSword(203,
EnumToolMaterial.BLUE)).setItemName("blueSword");
public static final Item blueHoe = (new ItemHoe(204, EnumToolMaterial.BLUE))
.setItemName("blueHoe");
public static final BiomeGenBase stoneHills = (new BiomeGenStoneHills(40))
.setBiomeName("Stone Hills");
public static final Item blueHelmet = new ItemArmor(5003,
EnumArmorMaterial.BLUE, ModLoader.addArmor("myhead"), 0)
.setItemName("blueHelmet");
public static final Item blueChestplate = new ItemArmor(5004,
EnumArmorMaterial.BLUE, ModLoader.addArmor("mychest"), 1)
.setItemName("blueChestplate");
public static final Item blueLeggings = new ItemArmor(5005,
EnumArmorMaterial.BLUE, ModLoader.addArmor("mylegs"), 2)
.setItemName("blueLeggings");
public static final Item blueBoots = new ItemArmor(5006,
EnumArmorMaterial.BLUE, ModLoader.addArmor("myfeet"), 3)
.setItemName("blueBoots");
public void generateSurface(World world, Random random, int i, int j,
Random rand, int chunkX, int chunkZ) {
BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(chunkX,
chunkZ);
for (int k = 0; k < 1; k++) {
int randPosX = i + random.nextInt(16);
int randPosY = random.nextInt(20);
int randPosZ = j + random.nextInt(16);
(new WorldGenMinable(oreBluestone.blockID, 6)).generate(world,
random, randPosX, randPosY, randPosZ);
}
public String getVersion() {
return "Randomstuff Minecraft mod for 1.4.5";
}
}
What it does: adds two new blocks, one new biome, one new ore, one new armor set, one more tool set, and one more food.Not exactly in that order.
My problem: when I load my mod and put on my armor, it appears as a white sheet covering my player instead of what it should be.
Side note: there is an "o f" textured onto the top of my armor if that helps.
I think the glitch might have something to do with RenderPlayer.class, but I'm not sure. any help would be appreciated.
Go to the "RenderPlayer.java" and look for this
private static final String[] armorFilenamePrefix = new String[] {"cloth", "chain", "iron", "diamond", "gold", "Stone"};
Add the name of your armor to this. Say your armor texture is called "plant_1", would would add "plant" to that list. It needs to be the same capitals and stuff as the file name. Also, you need to make a folder called armor and place it in your bin folder. Put all the armor in this. If you haven't made an armor texture yet, open one of the originals like diamond or something and work off of that.
Rollback Post to RevisionRollBack
I fought through the Nether and all I got was this stupid signature.
i can never get them to work since 1.3
What do you mean? If you mean the texture or whatever, I just create a 16x16 pixel png and use that. If you ware talking different sized like fences and stuff, I can't get them to work either.
I really want to some stairs, jbond, know how to do that?
package net.minecraft.src;
public class mod_HardenedOres extends BaseMod
{
public static final Item IronTippedStonePickaxe = (new ItemPickaxe(200, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Pickaxe");
public static final Item IronTippedStoneAxe = (new ItemAxe(201, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Axe");
public static final Item IronTippedStoneShovel = (new ItemSpade(202, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Shovel");
public static final Item IronTippedStoneSword = (new ItemSword(203, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Sword");
public static final Item IronTippedStoneHoe = (new ItemHoe(204, EnumToolMaterial.MIXED)).setItemName("Iron Tipped Stone Hoe");
public void load()
{
IronTippedStonePickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/IronTP.png");
IronTippedStoneAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/IronTA.png");
IronTippedStoneShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/IronTS.png");
IronTippedStoneSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/IronTSW.png");
IronTippedStoneHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/IronTH.png");
ModLoader.addRecipe(new ItemStack(IronTippedStonePickaxe, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.pickaxeStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneShovel, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.shovelStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneSword, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.swordStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneAxe, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.axeStone});
ModLoader.addRecipe(new ItemStack(IronTippedStoneHoe, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.hoeStone});
ModLoader.addName(IronTippedStonePickaxe, "Iron Tipped Stone Pickaxe");
ModLoader.addName(IronTippedStoneAxe, "Iron Tipped Stone Axe");
ModLoader.addName(IronTippedStoneShovel, "Iron Tipped Stone Shovel");
ModLoader.addName(IronTippedStoneSword, "Iron Tipped Stone Sword");
ModLoader.addName(IronTippedStoneHoe, "Iron Tipped Stone Hoe");
}
public String getVersion()
{
return "1.4.5";
}}
(It gives me errors where it says "meltedIron"
The second part of the mod:
package net.minecraft.src;
import java.util.Random;
public class mod_HardenedOres1 extends BaseMod
{
public static final Item meltedGold = new Item(5000).setItemName("Melted Gold");
public static final Item meltedIron = new Item(5001).setItemName("Melted Iron");
public static final Item HardenedGold = new Item(5002).setItemName("Hardened Gold");
public static final Item HardenedIron = new Item(5003).setItemName("Hardened Iron");
public void load()
{
meltedGold.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/MG.png");
meltedIron.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/MI.png");
HardenedGold.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/HG.png");
ModLoader.addName(meltedGold, "Melted Gold");
ModLoader.addName(meltedIron, "Melted Iron");
ModLoader.addName(HardenedIron, "Hardened Iron");
ModLoader.addName(HardenedGold, "Hardened Gold");
ModLoader.addSmelting( Item.ingotIron.shiftedIndex, new ItemStack(meltedIron, 1), 1.0F);
ModLoader.addSmelting( Item.ingotGold.shiftedIndex, new ItemStack(meltedGold, 1), 1.0F);
ModLoader.addRecipe(new ItemStack(HardenedIron, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedIron, Character.valueOf('X'), Item.bucketWater});
ModLoader.addRecipe(new ItemStack(HardenedGold, 1), new Object [] {" # ", " X ", " ", Character.valueOf('#'), Item.meltedGold, Character.valueOf('X'), Item.bucketWater});
meltedGold.setCreativeTab(CreativeTabs.tabMaterials);
meltedIron.setCreativeTab(CreativeTabs.tabMaterials);
}
public String getVersion()
{
return "1.4.5";
}
}
I'm trying to finish it before 1.4.6 so if anyone can help it would be really great.
It's not Item.meltedIron. It would be mod_HardenedOres.meltedIron. Same with the other thing. Simple mistake, made it my first time too.
=D Thx!
And my food, I wanted the wolves can to eat it.
Can anyone help me?
Nvm what I said. It was wrong. I honestly can't find anything wrong with your coding. :\ Sorry... Did you update the code or just modloader and the client? If anything it would be the change in the block rendering. I think there might be a new way of picking side top and bottom textures.
Not quite sure on the sword yet, I'd check Rotten Flesh's code because it gives the hunger potion effect. Also,
5000 = ItemID
6 = How many half hearts it heals.
1F = How long it fills you until you start to lose hunger again. (saturation)
true = if wolves can be fed said object.
See below post
Put the code for ore generation in your "mod_***" file.
Same one as your ore.
I need your code to see so I have something to work with.
BTW: Yes it is.
The crafting recipe for that would need 2 recipes.
To add more items just add more
Did you look at the original crafting recipe post? In the beginning? cause the original is a lot simpler.
package net.minecraft.src;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Random;
public class mod_randomstuff extends BaseMod {
public static final Block enderBrick = new BlockEnderBrick(160, 0)
.setStepSound(Block.soundMetalFootstep).setBlockName("enderBrick")
.setHardness(25F).setResistance(3000F).setLightValue(1.0F);
public static final Block oreBluestone = new BlockBluestoneOre(161, 0)
.setStepSound(Block.soundStoneFootstep)
.setBlockName("oreBluestone").setHardness(4.5F).setResistance(5F)
.setLightValue(0.252F);
public static final Item blueStone = new Item(5000)
.setItemName("blueStone");
public static final Item pancake = new ItemFood(5001, 4, 2F, false)
.setItemName("Pancake");
public static final Item bluePickaxe = (new ItemPickaxe(200,
EnumToolMaterial.BLUE)).setItemName("bluePickaxe");
public static final Item blueAxe = (new ItemAxe(201, EnumToolMaterial.BLUE))
.setItemName("blueAxe");
public static final Item blueShovel = (new ItemSpade(202,
EnumToolMaterial.BLUE)).setItemName("blueShovel");
public static final Item blueSword = (new ItemSword(203,
EnumToolMaterial.BLUE)).setItemName("blueSword");
public static final Item blueHoe = (new ItemHoe(204, EnumToolMaterial.BLUE))
.setItemName("blueHoe");
public static final BiomeGenBase stoneHills = (new BiomeGenStoneHills(40))
.setBiomeName("Stone Hills");
public static final Item blueHelmet = new ItemArmor(5003,
EnumArmorMaterial.BLUE, ModLoader.addArmor("myhead"), 0)
.setItemName("blueHelmet");
public static final Item blueChestplate = new ItemArmor(5004,
EnumArmorMaterial.BLUE, ModLoader.addArmor("mychest"), 1)
.setItemName("blueChestplate");
public static final Item blueLeggings = new ItemArmor(5005,
EnumArmorMaterial.BLUE, ModLoader.addArmor("mylegs"), 2)
.setItemName("blueLeggings");
public static final Item blueBoots = new ItemArmor(5006,
EnumArmorMaterial.BLUE, ModLoader.addArmor("myfeet"), 3)
.setItemName("blueBoots");
public void generateSurface(World world, Random random, int i, int j,
Random rand, int chunkX, int chunkZ) {
BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(chunkX,
chunkZ);
for (int k = 0; k < 1; k++) {
int randPosX = i + random.nextInt(16);
int randPosY = random.nextInt(20);
int randPosZ = j + random.nextInt(16);
(new WorldGenMinable(oreBluestone.blockID, 6)).generate(world,
random, randPosX, randPosY, randPosZ);
}
}
public void load() {
enderBrick.blockIndexInTexture = ModLoader.addOverride("/terrain.png",
"/textures/EnderBrick.png");
ModLoader.registerBlock(enderBrick);
ModLoader.addName(enderBrick, "Ender Brick");
oreBluestone.blockIndexInTexture = ModLoader.addOverride(
"/terrain.png", "/textures/Bluestone.png");
ModLoader.registerBlock(oreBluestone);
ModLoader.addName(oreBluestone, "Bluestone Ore");
blueStone.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/BluestoneRock.png");
ModLoader.addName(blueStone, "Bluestone");
pancake.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/Pancake.png");
ModLoader.addName(pancake, "Pancake");
bluePickaxe.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/BluePickaxe.png");
blueAxe.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/BlueAxe.png");
blueShovel.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/BlueShovel.png");
blueSword.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/BlueSword.png");
blueHoe.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/BlueHoe.png");
ModLoader.addRecipe(new ItemStack(bluePickaxe, 1), new Object[] {
"###", " X ", " X ", Character.valueOf('#'), blueStone,
Character.valueOf('X'), Item.stick });
ModLoader.addRecipe(new ItemStack(blueShovel, 1),
new Object[] { "#", "X", "X", Character.valueOf('#'),
blueStone, Character.valueOf('X'), Item.stick });
ModLoader.addRecipe(new ItemStack(blueSword, 1),
new Object[] { "#", "#", "X", Character.valueOf('#'),
blueStone, Character.valueOf('X'), Item.stick });
ModLoader.addRecipe(new ItemStack(blueAxe, 1),
new Object[] { "##", "#X ", " X", Character.valueOf('#'),
blueStone, Character.valueOf('X'), Item.stick });
ModLoader.addRecipe(new ItemStack(blueAxe, 1),
new Object[] { "##", "X#", "X ", Character.valueOf('#'),
blueStone, Character.valueOf('X'), Item.stick });
ModLoader.addRecipe(new ItemStack(blueHoe, 1),
new Object[] { "##", " X", " X", Character.valueOf('#'),
blueStone, Character.valueOf('X'), Item.stick });
ModLoader.addRecipe(new ItemStack(blueHoe, 1),
new Object[] { "##", "X ", "X ", Character.valueOf('#'),
blueStone, Character.valueOf('X'), Item.stick });
ModLoader.addName(bluePickaxe, "Bluestone Pick");
ModLoader.addName(blueAxe, "Bluestone Axe");
ModLoader.addName(blueShovel, "Bluestone Spade");
ModLoader.addName(blueSword, "Bluestone Sword");
ModLoader.addName(blueHoe, "Bluestone Hoe");
ModLoader.addBiome(stoneHills);
blueHelmet.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/blueHelmet.png");
blueChestplate.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/blueChestplate.png");
blueLeggings.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/blueLeggings.png");
blueBoots.iconIndex = ModLoader.addOverride("/gui/items.png",
"/textures/blueBoots.png");
ModLoader.addRecipe(new ItemStack(blueHelmet, 1), new Object[] { "###",
"# #", Character.valueOf('#'), blueStone });
ModLoader.addRecipe(new ItemStack(blueChestplate, 1), new Object[] {
"# #", "###", "###", Character.valueOf('#'), blueStone });
ModLoader.addRecipe(new ItemStack(blueLeggings, 1), new Object[] {
"###", "# #", "# #", Character.valueOf('#'), blueStone });
ModLoader.addRecipe(new ItemStack(blueBoots, 1), new Object[] { "# #",
"# #", Character.valueOf('#'), blueStone });
ModLoader.addName(blueHelmet, "Bluestone Helmet");
ModLoader.addName(blueChestplate, "Bluestone Chestplate");
ModLoader.addName(blueLeggings, "Bluestone Leggings");
ModLoader.addName(blueBoots, "Bluestone Boots");
ModLoader.addRecipe(new ItemStack(enderBrick, 10000), new Object[] {
"SSS", "SCS", "SSS", 'C', Block.dragonEgg, 'S',
Block.whiteStone });
ModLoader.addRecipe(new ItemStack(pancake, 10), new Object[] { "ESE",
"WMW", 'E', Item.egg, 'S', Item.sugar, 'W', Item.wheat, 'M',
Item.bucketMilk });
}
public String getVersion() {
return "Randomstuff Minecraft mod for 1.4.5";
}
}
What it does: adds two new blocks, one new biome, one new ore, one new armor set, one more tool set, and one more food.Not exactly in that order.
My problem: when I load my mod and put on my armor, it appears as a white sheet covering my player instead of what it should be.
Side note: there is an "o f" textured onto the top of my armor if that helps.
I think the glitch might have something to do with RenderPlayer.class, but I'm not sure. any help would be appreciated.
Go to the "RenderPlayer.java" and look for this
Add the name of your armor to this. Say your armor texture is called "plant_1", would would add "plant" to that list. It needs to be the same capitals and stuff as the file name. Also, you need to make a folder called armor and place it in your bin folder. Put all the armor in this. If you haven't made an armor texture yet, open one of the originals like diamond or something and work off of that.