1

Mc mod

mcfluffy28655 5/28/13 1:01 pm
193
5/28/2013 3:42 pm
This is my first mod for minecraft. I am a beggnier moder/coder and I have my codeing for my mod I will put it in here but also it is copyrighted so ya so this is my code the basemod addname addoverride is all in errors if anyone would like to help me figture this out plz let me know thanks.!
package net.minecraft.src;
import java.util.Random;

public class mc_firstmod extends BaseMod
{

public static final Item ethiumstone = new Itemethiumstone(500).setItemName("ethiumstone");
private static final String ModLoader = null;
private static final String ethuimstone = null;

public void load()
{

ethiumstone.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/ethiumstone.png");
ModLoader.addName(ethuimstone, "Ethiumstone");

}
public String getVersion()
{
return "3.14159265";
}
}
Posted by
mcfluffy28655
Level 1 : New Miner
1

  Have something to say?

JoinSign in

5

mcfluffy28655
05/28/2013 3:42 pm
Level 1 : New Miner
mcfluffy28655This is my first mod for minecraft. I am a beggnier moder/coder and I have my codeing for my mod I will put it in here but also it is copyrighted so ya so this is my code the basemod addname addoverride is all in errors if anyone would like to help me figture this out plz let me know thanks.!
package net.minecraft.src;
import java.util.Random;

public class mc_firstmod extends BaseMod
{

public static final Item ethiumstone = new Itemethiumstone(500).setItemName("ethiumstone");
private static final String ModLoader = null;
private static final String ethuimstone = null;

public void load()
{

ethiumstone.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/ethiumstone.png");
ModLoader.addName(ethuimstone, "Ethiumstone");

}
public String getVersion()
{
return "3.14159265";
}
}


if any of yall have Skype add me as a Skype contact plz my Skype name is mcfluffy28655 it will make it easier for yall to help me thank you and much appericted and thanks mc skin dude
1
nickfromgreece
05/28/2013 1:49 pm
Level 54 : Grandmaster Programmer
btw a bit of a suggestion use forge its way easier and way more powerfull
1
duke_Frans
05/28/2013 1:42 pm
Level 66 : High Grandmaster Modder
.setItemName is now .setUnlocalizedName();
That now also makes that name your texture's name
So for example

public static final Item TestItem= new ItemTesting(500).setUnlocalizedName("I[u]temTest[/u][i][b][/b][/i]");


ModLoader.addName(TestItem, "Testing Epicness");


That .setUnlocalised name is also the texture path (So you can remove Modloader.addOverride)
The texture will go in /textures/block(Or items)/ItemTest.png as its Unlocalized name suggests.

Hope this helped
1
Red_Bo
05/28/2013 1:24 pm
Level 25 : Expert Dolphin
Could you include a picture of this code on eclipse? It would be helpful so I can see which line has an error then I might be able to help you out there.
1
mcfluffy28655
05/28/2013 3:37 pm
Level 1 : New Miner
how would I do that?
1

Welcome