Hi, I've been trying to finally get my mod up to date and I couldn't figure out for the life of me what the new coding was...
so I looked around and found how to set up the new UnlocalizedName procedure to replace addOverride.
public static final Item tinIngot = (new Item(480)).setUnlocalizedName("tinIngot");
So... I started changing the coding of all my items to match what you see above. However, upon recompiling I just get error spam on every single item in the mod.
src\minecraft\net\minecraft\src\mod_OE.java:72: error: illegal start of expression
public static final Item tinIngot = (new Item(480)).setUnlocalizedName("tinIngot");
^
src\minecraft\net\minecraft\src\mod_OE.java:72: error: illegal start of expression
public static final Item tinIngot = (new Item(480)).setUnlocalizedName("tinIngot");
^
src\minecraft\net\minecraft\src\mod_OE.java:72: error: ';' expected
public static final Item tinIngot = (new Item(480)).setUnlocalizedName("tinIngot");
^
After a ton of time in trying to understand what's wrong, watching videos on updating and comparing coding, I have found no logical problem as to what any of these errors are from, as my code matches the working code others are using.
Anyone know what the problem is and why these errors are happening?
so I looked around and found how to set up the new UnlocalizedName procedure to replace addOverride.
public static final Item tinIngot = (new Item(480)).setUnlocalizedName("tinIngot");So... I started changing the coding of all my items to match what you see above. However, upon recompiling I just get error spam on every single item in the mod.
src\minecraft\net\minecraft\src\mod_OE.java:72: error: illegal start of expression public static final Item tinIngot = (new Item(480)).setUnlocalizedName("tinIngot"); ^ src\minecraft\net\minecraft\src\mod_OE.java:72: error: illegal start of expression public static final Item tinIngot = (new Item(480)).setUnlocalizedName("tinIngot"); ^ src\minecraft\net\minecraft\src\mod_OE.java:72: error: ';' expected public static final Item tinIngot = (new Item(480)).setUnlocalizedName("tinIngot"); ^After a ton of time in trying to understand what's wrong, watching videos on updating and comparing coding, I have found no logical problem as to what any of these errors are from, as my code matches the working code others are using.
Anyone know what the problem is and why these errors are happening?
I had to move it outside of public mod_OE() {