EnumToolMaterial OBSIDIAN = new EnumToolMaterial("OBSIDIAN", 5, 5, 2673, 17F, 9, 15);
public static final Item ingotObsidian = new Item(156).setItemName("Obsidian Ingot");
public static final Item pickaxeObsidian = new ItemPickaxe(157, OBSIDIAN ).setItemName("pickaxeObsidian");
public static final Item shovelObsidian = new ItemSpade(158,OBSIDIAN).setItemName("shovelObsidian");
public static final Item hoeObsidian = new ItemHoe(159, OBSIDIAN).setItemName("hoeObsidian");
public static final Item axeObsidian = new ItemAxe(160, OBSIDIAN).setItemName("axeObsidian");
public static final Item swordObsidian = new ItemSword (161, OBSIDIAN).setItemName("swordObsidian");
When it says it can't instantiate a type, it means that your data type is not classified. I'm not sure how much you know about Java, but a data type is an int, String, double, float, long, short, char, byte and boolean. One can also create a data type (any new file can function as a data type). You have several public static final variables which are all of the data type Item (a created data type), and they are named and initialized as new files. You are using the data type EnumToolMaterial, naming a variable and initializing is how you should be. However, the program isn't told whether or not the type is public, private or protected, whether or not it is static, and whether or not it is final. Therefore, for future reference, be sure to include those keywords where needed. This should fix your error:
public static final EnumToolMaterial OBSIDIAN = new EnumToolMaterial("OBSIDIAN", 6, 5, 2673, 17F, 9, 15);
I made an ore called topaz and everything is working and I used the item tutorial and followed that and I got a picture of a topaz gem and all but when in game I break the ore it comes out as a block not a gem can you guys help me please
Did you override the idDropped method in your BlockTopazOre file?
== MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) ==
> 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\patc
hes\ga.java conf\patches\Start.java' failed : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_WaterBottle.java:20: error: cannot find symb
ol
" ", "#$ ", " ", Character.valueOf('#'), Item.bucketWater, Character
.valueOf('$'), bottle
^
symbol: variable bottle
location: class mod_WaterBottle
1 error
1 warning
==================
FATAL ERROR
Traceback (most recent call last):
File "runtime\recompile.py", line 31, in recompile
commands.recompile(CLIENT)
File "C:\Users\Admin\Desktop\Everything\Minecraft\Created\Mods\MCP\MCP\runtime
\commands.py", line 736, in recompile
self.runcmd(forkcmd)
File "C:\Users\Admin\Desktop\Everything\Minecraft\Created\Mods\MCP\MCP\runtime
\commands.py", line 779, in runcmd
raise CalledProcessError(returncode, forkcmd, output)
CalledProcessError: Command 'javac.exe -g -source 1.6 -target 1.6 -classpath "li
b;lib\*;jars\bin\minecraft.jar;jars\bin\jinput.jar;jars\bin\lwjgl.jar;jars\bin\l
wjgl_util.jar" -sourcepath src\minecraft -d bin\minecraft src\minecraft\net\mine
craft\client\*.java src\minecraft\net\minecraft\isom\*.java src\minecraft\net\mi
necraft\src\*.java conf\patches\ga.java conf\patches\Start.java' returned non-ze
ro exit status 1
Press any key to continue . . .
My code...
package net.minecraft.src;
public class mod_WaterBottle extends BaseMod
{
public String Version()
{
return "1.0.0";
}
public mod_WaterBottle()
{
WaterBottle.iconIndex = ModLoader.addOverride("/gui/items.png", "/Doombob/Water Bottle.png");
ModLoader.AddName(WaterBottle, "Water Bottle");
ModLoader.AddRecipe(new ItemStack(WaterBottle, 1), new Object[] {
" ", "#$ ", " ", Character.valueOf('#'), Item.bucketWater, Character.valueOf('$'), bottle
});
}
public static Item WaterBottle = (new ItemFood(401, 4, 1F, false)).setItemName("Water Bottle");
@Override
public String getVersion() {
// TODO Auto-generated method stub
return null;
}
@Override
public void load() {
// TODO Auto-generated method stub
}
}
bottle isn't a variable declared in your class. If you are trying to use the already existing bottle, you need to use Item.glassBottle, or you need to make a variable in your mod_ file if you are not.
bottle isn't a variable declared in your class. If you are trying to use the already existing bottle, you need to use Item.glassBottle, or you need to make a variable in your mod_ file if you are not.
Ya im trying to use a bottle that i have already created in the recipe...
So how would i do that?
But, like I said, there is not variable for your item. If I'm missing the line that starts with public static Item bottle =, please point it out, because I don't think it exists.
Just saying. Why the heck did you remake over your website? Your gonna lose so much people if you don't update it quick. I hope realised it took a while to post all those topics on the last forum and build the community.
Hi minecrafters,
what i want to do is when is use a pickaxe on a block it drops an ITEM not a block how can i do that?
thanks very much Ziddia for your awesome tuts and to you
Rollback Post to RevisionRollBack
Me: Hey notch can i ask you a question? Notch: Yes. Me: WHAT THE HELL WERE YOU THINKING WHILE CREATING CREEPERS !?!?
Well you could make a class mod_Recipes, then only store recipes in there (see the recipe tutorial to find out how to do that)
My code :
Error
Want more Spawner Eggs ? http://www.minecraftforum.net/topic/1216130-125spawneggs-ultimate-10/
When it says it can't instantiate a type, it means that your data type is not classified. I'm not sure how much you know about Java, but a data type is an int, String, double, float, long, short, char, byte and boolean. One can also create a data type (any new file can function as a data type). You have several public static final variables which are all of the data type Item (a created data type), and they are named and initialized as new files. You are using the data type EnumToolMaterial, naming a variable and initializing is how you should be. However, the program isn't told whether or not the type is public, private or protected, whether or not it is static, and whether or not it is final. Therefore, for future reference, be sure to include those keywords where needed. This should fix your error:
RSMC - A massive RPG mod which adds skills and tons of content to Minecraft, one block at a time!
Did you override the idDropped method in your BlockTopazOre file?
RSMC - A massive RPG mod which adds skills and tons of content to Minecraft, one block at a time!
make it:
public int idDropped(int i, Random random, int j)
{
return mod_OreFrenzy.Topaz.shiftedIndex;}
and what do you mean two world gens in one file?
I'm assuming you mean by two generators, two ores? You only need one mod file. Any more is considered poor form.
RSMC - A massive RPG mod which adds skills and tons of content to Minecraft, one block at a time!
My code...
bottle isn't a variable declared in your class. If you are trying to use the already existing bottle, you need to use Item.glassBottle, or you need to make a variable in your mod_ file if you are not.
RSMC - A massive RPG mod which adds skills and tons of content to Minecraft, one block at a time!
Ya im trying to use a bottle that i have already created in the recipe...
So how would i do that?
RSMC - A massive RPG mod which adds skills and tons of content to Minecraft, one block at a time!
Go to his forum website, plenty of tutorials there.
RSMC - A massive RPG mod which adds skills and tons of content to Minecraft, one block at a time!
The only tutorial we have for creating a new flower is this one: http://www.zidmc.info/forum/user-tutorials/b1-7-1-creating-a-new-flower/
what i want to do is when is use a pickaxe on a block it drops an ITEM not a block how can i do that?
thanks very much Ziddia for your awesome tuts and to you
Me: WHAT THE HELL WERE YOU THINKING WHILE CREATING CREEPERS !?!?