public class GemItems extends Item {
public GemItems(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); //Tells the game what creative mode tab it goes in
}
public void GemItems1(int par2) {
super(par2); //Returns super constructor: par2 is ID
setCreativeTab(CreativeTabs.tabMaterials); //Tells the game what creative mode tab it goes in
}
}
on the line of code super(par2); //Returns super constructor: par2 is ID is where ther error is... what did I do wrong? How do I fix it?
package GeneraLemons.OddBall;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import net.minecraft.creativetab.CreativeTabs;
public class GemItems extends Item {
public GemItems(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); //Tells the game what creative mode tab it goes in
}
public void GemItems1(int par2) {
super(par2); //Returns super constructor: par2 is ID
setCreativeTab(CreativeTabs.tabMaterials); //Tells the game what creative mode tab it goes in
}
}
on the line of code super(par2); //Returns super constructor: par2 is ID is where ther error is... what did I do wrong? How do I fix it?
The main problem is actually he's calling a constructer from a method..... super(...) can't be used in a method afaik
But not yet
That may be the actual error, but the simplest way to fix it would be just to fix up his items' constructor, and so that's what I told him to do.