Edit: I Fixed my errors
I ask of another thing though, How do I add it to the original minecraft & how do I add environmental physics to it, for say I want to add fire when I hit something or I want it to shoot lightning out of it.
Just copy one of the other .java files (a file is anything that isn't a folder) and paste it into the folder and then rename it and change it's contents.
src/minecraft/net/minecraft/src/mod_AppleTreeLeaves.java:5: class BlockAppleTreeLeaves is public, should be declared in a file named BlockAppleTreeLeaves.java
public class BlockAppleTreeLeaves extends BlockLeavesBase
^
1 error
How do you add mods that you make with mcp into the actual minecraft?
& can someone help with this code, I need to give it direction to where the interface is aka my sword texture & make it to where when I hit something it adds fire damage, also I need it to be crafted out of my own new ore.
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public boolean onBlockDestroyed(ItemStack itemstack, int i, int j, int k, int l, EntityLiving entityliving)
{
itemstack.damageItem(0, entityliving);
return true;
}
public int getDamageVsEntity(Entity entity)
{
return weaponDamage;
}
src\minecraft\net\minecraft\src\Block.java:818: cannot find symbol
symbol : variable radiaton
location: class net.minecraft.src.Block
radiaton = (new BlockExample(92, 1)).setHardness(3.0F).setStepSound(soundWoodFoo
tstep).setBlockName("radiationrock");
^
src\minecraft\net\minecraft\src\Block.java:818: cannot find symbol
symbol : class BlockExample
location: class net.minecraft.src.Block
radiaton = (new BlockExample(92, 1)).setHardness(3.0F).setStepSound(soundWoodFoo
tstep).setBlockName("radiationrock");
^
src\minecraft\net\minecraft\src\CraftingManager.java:200: cannot find symbol
symbol : variable Flambard
location: class net.minecraft.src.Item
addRecipe(new ItemStack(Item.Flambard, 1), new Object[] {
^
3 errors
==================
> Done in 29.07 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
The last error is the same as above from the code here is the code for the other errors
radiaton = (new BlockExample(92, 1)).setHardness(3.0F).setStepSound(soundWoodFootstep).setBlockName("radiationrock");
&
package net.minecraft.src;
import java.util.Random;
public class BlockRadiation extends Block
{
public BlockRadiation(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return 0;
}
}
I'm having a little problem with my ModLoader lollipop item. Here's my code:
//BEGIN PROBLEMATIC SCRIPT
package net.minecraft.src;
public class mod_Candy extends BaseMod{
public static final ItemFood lollipop = new ItemFood(1000,4,false);
public mod_Candy(){
lollipop.iconIndex = ModLoader.addOverride("/gui/items.png", "/Thundaklap/lollipop.png");
ModLoader.AddName(lollipop, "Test2");
ModLoader.AddRecipe(new ItemStack(lollipop, 1), new Object[]{"XXX","XXX"," Y ",Character.valueOf('X'),Item.sugar,Character.valueOf('Y'),Item.stick});
}
@Override
public String Version() {
return("1.7.3");
}
}
//END PROBLEMATIC SCRIPT
And here's Minecraft's error report:
Mods loaded: 1
ModLoader Beta 1.7.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT e9df3db --------
Generated 19/07/11 6:05 PM
Minecraft: Minecraft Beta 1.7.3
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Mobility Radeon HD 5470 version 3.2.9655 Compatibility Profile Context, ATI Technologies Inc.
java.lang.Exception: net.minecraft.src.ItemFood@1c7e2da is missing name tag!
at net.minecraft.src.ModLoader.AddName(ModLoader.java:278)
at net.minecraft.src.mod_Candy.<init>(mod_Candy.java:11)
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:1022)
at net.minecraft.src.ModLoader.init(ModLoader.java:687)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:65)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:158)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:138)
at net.minecraft.client.Minecraft.run(Minecraft.java:435)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT b155558d ----------
How do you add mods that you make with mcp into the actual minecraft?
& can someone help with this code, I need to give it direction to where the interface is aka my sword texture & make it to where when I hit something it adds fire damage, also I need it to be crafted out of my own new ore.
I also need help fixing these errors
The last error is the same as above from the code here is the code for the other errors
== MCP v4.3 ==
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai
led.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Silver.java:13: illegal start of expression
public String Version()
^
src\minecraft\net\minecraft\src\mod_Silver.java:13: ';' expected
public String Version()
^
src\minecraft\net\minecraft\src\mod_Silver.java:18: reached end of file while pa
rsing
}→
^
3 errors
==================
> Done in 5.91 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
You are either missing a brace } or have an extra. Read through your code again and check that each opening brace has a matching closing brace and every closing has a matching opening.
You are either missing a brace } or have an extra. Read through your code again and check that each opening brace has a matching closing brace and every closing has a matching opening.
Thanks I feel like an idiot, but there are still two errors.
I ask of another thing though, How do I add it to the original minecraft & how do I add environmental physics to it, for say I want to add fire when I hit something or I want it to shoot lightning out of it.
Just copy one of the other .java files (a file is anything that isn't a folder) and paste it into the folder and then rename it and change it's contents.
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
Diggity dope.
On recompilation, I get these errors:
This is the first mod I've tried making, so keep in mind I'm a complete noob...
I'm quite new to Java, also... :/
My Files:
mod_ChickenWingItem.java
ItemChickenWing.java
I've tried everything I can think of, and I can't see anything wrong with it...
Help your friendly neighbourhood noob, man ^^.
I don't think you need to import all those classes because they are in the same folder. Try removing all the imports (in the errors).
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
You get more help if you also post your code.
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
Yeah, but I need to know if you put all the braces {} in the right places and everything because sometimes that's the reason for errors.
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
& can someone help with this code, I need to give it direction to where the interface is aka my sword texture & make it to where when I hit something it adds fire damage, also I need it to be crafted out of my own new ore.
I also need help fixing these errors
The last error is the same as above from the code here is the code for the other errors
&
Diggity dope.
I'll check your code after this but to copy and paste from the cmd, right click, select 'select all', then press enter.
And here's Minecraft's error report:
You need to say and are you sure you put the line in Item.java?
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
Here's my error's:
You are either missing a brace } or have an extra. Read through your code again and check that each opening brace has a matching closing brace and every closing has a matching opening.
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
Thanks I feel like an idiot, but there are still two errors.
Edit: StrongJoshua, you have any ideas?
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
You mean you still have those other two errors after recompiling with all the braces in the right place? Can you show me your updated code?
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua