1
Mc mod
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";
}
}
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";
}
}
5
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
btw a bit of a suggestion use forge its way easier and way more powerfull
.setItemName is now .setUnlocalizedName();
That now also makes that name your texture's name
So for example
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
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
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.
how would I do that?
