You need to create a DamageSource for the first argument (this is new in 1.8), you can't just pass this anymore.
All the other errors are that you're referring to "playerToAttack" without declaring it which.. well it's right, and I have now idea how to create that to make your mod work the way you'd expect
Well, that field doesn't exist. You'll have to look at whatever class that is to figure out an alternative way to determine if the entity is dead, or if MCP changed the name on you.
Do you even try to fix your own errors :dry.gif: A lot of these errors are things that you could fix yourself if even tried to look at the files you renamed for your mod, in this case the EntitySlime for all the entity errors. You could've crossed check to see what had changed between them.
Do you even try to fix your own errors :dry.gif: A lot of these errors are things that you could fix yourself if even tried to look at the files you renamed for your mod, in this case the EntitySlime for all the entity errors. You could've crossed check to see what had changed between them.
I have actually found out how to fix many of them. I am actually stumped with 4:
1. GuiAPI
2. Shockahpi
3. isDead
4. Slot 131 flag is occupied by Slot 131 flag
java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:279)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:330)
at net.minecraft.src.mod_cheesemaker.AddRecipes(mod_cheesemaker.java:28)
at net.minecraft.src.mod_cheesemaker.<init>(mod_cheesemaker.java:23)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1027)
at net.minecraft.src.ModLoader.init(ModLoader.java:692)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:72)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:168)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:140)
at net.minecraft.client.Minecraft.run(Minecraft.java:438)
at java.lang.Thread.run(Unknown Source)
Code:
public void AddRecipes()
{
ModLoader.AddRecipe(new ItemStack(BreadSlice, 2), new Object[] {
"C", Character.valueOf('C'), Item.itemsList[297 + shift]
});
ModLoader.AddRecipe(new ItemStack(CheeseBurguer, 1), new Object[] {
" C ", "AOA", " C ", Character.valueOf('C'), BreadSlice, Character.valueOf('A'), mod_cheesemaker.Cheese, Character.valueOf('O'), Item.itemsList[320 + shift]
});
ModLoader.AddRecipe(new ItemStack(HotCheese, 1), new Object[] {
" C ", "AAA", " C ", Character.valueOf('C'), BreadSlice, Character.valueOf('A'), mod_cheesemaker.Cheese, Character.valueOf('O'), Item.itemsList[320 + shift]
});
}
I fixed it. Now I have these errors:
Code:
[spoiler]
Errors:
You need to create a DamageSource for the first argument (this is new in 1.8), you can't just pass this anymore.
All the other errors are that you're referring to "playerToAttack" without declaring it which.. well it's right, and I have now idea how to create that to make your mod work the way you'd expect
INFORMATION WANTS TO BE WRONG
Subscreen cannot be resolved to a type
and this is the code:
Subscreen subscreen = new Subscreen("Palm Trees Config", "Palm Trees");
(It's GUIAPI)
Also, I am beginning to use eclipse, which helps me with a few errors.
INFORMATION WANTS TO BE WRONG
Error:
isDead cannot be resolved or is not a field
Code:
INFORMATION WANTS TO BE WRONG
I have actually found out how to fix many of them. I am actually stumped with 4:
1. GuiAPI
2. Shockahpi
3. isDead
4. Slot 131 flag is occupied by Slot 131 flag
Error: