I had a mod back in Beta 1.8.1, but I quit for a while so it hasn't been updated since then. WTF <-- If you'd like to try and update it, let me know. (It won't be an easy task, I'm sure)
How can i do that? I almost have an item called the obsidian shard but it has 1 error
nvm I fixed it.
This is the code:
package net.minecraft.src;
public class mod_ObsidianShard extends BaseMod
{
public static final Item ObsidianShard = new Item(850).setItemName("ObsidianShard");
public mod_ObsidianShard()
{
ObsidianShard.iconIndex = ModLoader.addOverride("/gui/items.png", "/ObsidianShard.png");
ModLoader.AddName(ObsdianShard, "Obsidian Shard");
ModLoader.AddRecipe(new ItemStack(ObsidianShard, 4), new Object[] {
" X ", "X X", " X ", Character.valueOf('X'), Block.obsidian
});
}
public String Version()
{
return "1.8.1";
}
}
This is the Error:
== MCP v4.4 ==
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/pat
ches/*.java failed.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_ObsidianShard.java:10: cannot find symbol
symbol : variable ObsdianShard
location: class net.minecraft.src.mod_ObsidianShard
ModLoader.AddName(ObsdianShard, "Obsidian Shard");
^
1 error
==================
> Done in 8.21 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
Copy the ItemSword code
Paste in a new file
Rename the constructor and the class
Save the file under the new name
???
Profit
Rollback Post to RevisionRollBack
I had a mod back in Beta 1.8.1, but I quit for a while so it hasn't been updated since then. WTF <-- If you'd like to try and update it, let me know. (It won't be an easy task, I'm sure)
So I want to know how to put in custom damage for the sword
Can someone show me wat to put?
I will be so gratefull for you!
The damage i get right now is the same damage as a diamond sword.
Sorry for another post
You could also make a new item type.
I had a mod back in Beta 1.8.1, but I quit for a while so it hasn't been updated since then.
WTF <-- If you'd like to try and update it, let me know. (It won't be an easy task, I'm sure)
Yes this would work to, But... Alright I guess this would be easier :wink.gif:
How can i do that?
I almost have an item called the obsidian shard but it has 1 errornvm I fixed it.
This is the code:
This is the Error:
I had a mod back in Beta 1.8.1, but I quit for a while so it hasn't been updated since then.
WTF <-- If you'd like to try and update it, let me know. (It won't be an easy task, I'm sure)