My error report is: I can't really get time to see it but it just says it is addOres is not installed and I deleted the META~INF.
Edit:
I found the error report! error report:
java.lang.NumberFormatException: For input string: " 400"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at AddOres_newMaterials.toInt(AddOres_newMaterials.java:37)
at AddOres_newMaterials.readModFile(AddOres_newMaterials.java:27)
at AddOres_newMaterials.<init>(AddOres_newMaterials.java:18)
at mod_LoadAddOres.<init>(mod_LoadAddOres.java:9)
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 ModLoader.addMod(ModLoader.java:272)
at ModLoader.readFromClassPath(ModLoader.java:1104)
at ModLoader.init(ModLoader.java:812)
at ModLoader.AddAllRenderers(ModLoader.java:183)
at th.<init>(th.java:60)
at th.<clinit>(th.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:318)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Unknown Source)
i have idea's for you for when you make a updated version
i see you are adding the recipe xml, very good.
here is what you should put in a update
for the metal = true/false setting, you should change it to block type and add more values because when i want to create a block that simply gives you a block when you mine it (not a gemstone) and it does not say "so and so" ORE such as limestone and when you mine a block with this setting you get a simple limestone block, it should not say "limestone ore" or block of limestone but just limestone, also you should add values for liquid (makes a block liquid and gives it liquid physics), non-solid (makes a block non solid), plant (creates a non solid plant block like a mushroom), and item (creates a block that is a item (eg. Cake)
also you should have liquid properties such as
- drytime (how fast it will dry up when it's source is cut off, eg water is fast, lava is slow)
- if it will hurt you (eg. lava)
- how much damage it will do to you (eg. lava is 3)
- flowtime (how fast it will flow, eg. water is faster than lava)
for the fall setting instead of just true and false, there should be three settings, these would be 1, 0, and -1
for 1 blocks would fall
for 0 they would do nothing
for -1 they would float up towards the sky instead a falling (eg, Unobtainium from avatar which floats in the sky)
and here are some new options to add
a option to determine in what world the rock will spawn (eg: in the nether, real world, or the sky dimension in 1.8)
a option to determine if a material is a liquid (eg, oil)
a option to determine if a material is flammable (eg, oil or wood)
a option to determine if a new block will hurt you if you touch it (eg cactus, and lava)
- how many hearts it will take (eg. Cactus is 1.5)
a option to determine if a new block has a chance of exploding when it is mined (eg magnesium would have a 10% chance)
a option to determine if a new block is magnetic (eg magnetite, it will screw up a compass when you get close to it)
a option to determine is a new block is solid or non solid
a option to determine if a new block is editable
- if it will heal x amount of hearts
- if it will take away x amount of hearts (eg, poisonous mushroom)
a option to determine if a new block is a plant (eg. a new mushroom or flower)
- uses one texture and crosses them like this "X"
a option to determine what sounds a block will make when it is stepped on, smashed, or eaten
a option to determine how many blocks a custom explosion will destroy (eg, 3x3x3 from the explosion source for magnesium)
also you should add triggers for items such as if they are editable (cake), they explode (suicide bomb), they poison you (poison mushroom), or they simply are used as recipe ingredients (eg. TNT plus circuit board = suicide bomb)
My error report is: I can't really get time to see it but it just says it is addOres is not installed and I deleted the META~INF.
Edit:
I found the error report! error report:
java.lang.NumberFormatException: For input string: " 400"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at AddOres_newMaterials.toInt(AddOres_newMaterials.java:37)
at AddOres_newMaterials.readModFile(AddOres_newMaterials.java:27)
at AddOres_newMaterials.<init>(AddOres_newMaterials.java:18)
at mod_LoadAddOres.<init>(mod_LoadAddOres.java:9)
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 ModLoader.addMod(ModLoader.java:272)
at ModLoader.readFromClassPath(ModLoader.java:1104)
at ModLoader.init(ModLoader.java:812)
at ModLoader.AddAllRenderers(ModLoader.java:183)
at th.<init>(th.java:60)
at th.<clinit>(th.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:318)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Unknown Source)
You have a space before the 400, you need to delete it.
At first When i launched minecraft i would get a black screen and it crashed, now it runs but my ore is not ingame, and it dosent appear in TooManyItems,the ore im trying too add it called adminium (stronger than dimand)
See anything wrong??? Also i do have the sprite file in the minecraft.jar but whenever i drag it in there it goes in ass all the files in the file (Ex. in minecraft.jar, insted of having just the sprites folder i have the axe folder the gem folder the pickaxe foler ext.....)\
Please help! :smile.gif:
Rollback Post to RevisionRollBack
I used to have a banner, but the link broke, this is my place holder
I can't really get time to see it again but it just says it is addOres is not installed and I deleted the META~INF.
Error Report:
FINER: THROW
java.lang.NullPointerException
at AddOres_newOres.readModFile(AddOres_newOres.java:43)
at AddOres_newOres.<init>(AddOres_newOres.java:14)
at mod_LoadAddOres.<init>(mod_LoadAddOres.java:10)
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 ModLoader.addMod(ModLoader.java:272)
at ModLoader.readFromClassPath(ModLoader.java:1104)
at ModLoader.init(ModLoader.java:812)
at ModLoader.AddAllRenderers(ModLoader.java:183)
at th.<init>(th.java:60)
at th.<clinit>(th.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:318)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Unknown Source)
At first When i launched minecraft i would get a black screen and it crashed, now it runs but my ore is not ingame, and it dosent appear in TooManyItems,the ore im trying too add it called adminium (stronger than dimand)
See anything wrong??? Also i do have the sprite file in the minecraft.jar but whenever i drag it in there it goes in ass all the files in the file (Ex. in minecraft.jar, insted of having just the sprites folder i have the axe folder the gem folder the pickaxe foler ext.....)\
Please help! :smile.gif:
The fact that it doesn't go correctly in the minecraft.jar is your problem :/
theayin321: Open your .xml files in Windows Notepad or a similar program. If you don't know how to do that, you probably don't know much about your OS. For Windows, this can be done many ways (assuming XP or higher):
- Right-click the XML file, go to "Open With", and then select "Choose Program"; when the dialog box appears, select Notepad out of the list. If it's not there, click Browse, and search for the program; on XP, it should be in C:\Windows\.
- Create a shortcut to Notepad on your desktop if it's not there already. You can create a shortcut on your desktop by going through the start menu, and going to Accessories, and finding the Notepad in there; drag it onto the desktop with the right mouse button and when the menu appears, select 'copy here' or 'create shortcut here'. Once this is on your desktop, find your .xml file and drag-and-drop it over the Notepad icon.
XML files are kinda dumb, if you want to think about it; they're just glorified text documents, yet Windows treats them specially, they open in Internet Explorer with all this pretty formatting, when in reality they're nothing special. FritzC could've probably programmed his mod to easily open .txt documents instead of .xml files, because other than the extension, it's the exact same thing. Either way, not a big deal -- just open them in your favorite text editor and get working!
theayin321: Open your .xml files in Windows Notepad or a similar program. If you don't know how to do that, you probably don't know much about your OS. For Windows, this can be done many ways (assuming XP or higher):
- Right-click the XML file, go to "Open With", and then select "Choose Program"; when the dialog box appears, select Notepad out of the list. If it's not there, click Browse, and search for the program; on XP, it should be in C:\Windows\.
- Create a shortcut to Notepad on your desktop if it's not there already. You can create a shortcut on your desktop by going through the start menu, and going to Accessories, and finding the Notepad in there; drag it onto the desktop with the right mouse button and when the menu appears, select 'copy here' or 'create shortcut here'. Once this is on your desktop, find your .xml file and drag-and-drop it over the Notepad icon.
XML files are kinda dumb, if you want to think about it; they're just glorified text documents, yet Windows treats them specially, they open in Internet Explorer with all this pretty formatting, when in reality they're nothing special. FritzC could've probably programmed his mod to easily open .txt documents instead of .xml files, because other than the extension, it's the exact same thing. Either way, not a big deal -- just open them in your favorite text editor and get working!
XML files carry some special properties with tagging however. Also, they are nice and organized so I decided to use them over a .txt format.
well when i do that there is a file that is called sprites in it, but when i delete the oter files, nothing happens
*other
If you know a way to fix this it would be awsome, i really want to add my own ores and this mod makes it verry easy, exept for my delema :sad.gif: Here are some for your hard work :tongue.gif:
Rollback Post to RevisionRollBack
I used to have a banner, but the link broke, this is my place holder
If you know a way to fix this it would be awsome, i really want to add my own ores and this mod makes it verry easy, exept for my delema :sad.gif: Here are some for your hard work :tongue.gif:
Also, you should work on a GUI.
New Materials:
Minecraft refuses to load it.
What do?
What error do you get?
(ignore the ores/materials that come with the thing)
Ore/Material: Test/TEST
Heres: newMaterials.xml:
<?xml version="1.0"?>
<newMaterials>
<configs>
<startindex>5</startindex>
</configs>
<materials>
<newmaterial>
<name>OPAL</name>
<harvestlevel>2</harvestlevel>
<maxuses>340</maxuses>
<efficiency>5F</efficiency>
<damage>2</damage>
</newmaterial>
<newmaterial>
<name>AQUARIUS</name>
<harvestlevel>1</harvestlevel>
<maxuses>145</maxuses>
<efficiency>3.5F</efficiency>
<damage>1</damage>
</newmaterial>
<newmaterial>
<name>TEST</name>
<harvestlevel>4</harvestlevel>
<maxuses> 400</maxuses>
<efficiency>6.9F</efficiency>
<damage>5</damage>
</newmaterial>
</materials>
</newMaterials>
Heres: newOres.xml:
<?xml version="1.0"?>
<newOres>
<configs>
<blockstartindex>200</blockstartindex>
<itemstartindex>5000</itemstartindex>
</configs>
<ores>
<newore>
<name>Aquarius</name>
<metal>true</metal>
<doeffectonhit>true</doeffectonhit>
<spawninworld>true</spawninworld>
<fall>false</fall>
<toolset>true</toolset>
<maxheight>128</maxheight>
<maxingroup>10</maxingroup>
<maxtries>10</maxtries>
<mindropped>1</mindropped>
<maxdropped>1</maxdropped>
<lightemitted>0.625F</lightemitted>
<hardness>3F</hardness>
<particletype>splash</particletype>
<material>AQUARIUS</material>
</newore>
<newore>
<name>Opal</name>
<metal>false</metal>
<doeffectonhit>false</doeffectonhit>
<spawninworld>true</spawninworld>
<fall>true</fall>
<toolset>true</toolset>
<maxheight>64</maxheight>
<maxingroup>10</maxingroup>
<maxtries>8</maxtries>
<mindropped>1</mindropped>
<maxdropped>5</maxdropped>
<lightemitted>0F</lightemitted>
<hardness>1F</hardness>
<particletype>splash</particletype>
<material>OPAL</material>
</newore>
<newore>
<name>Test</name>
<metal>false</name>
<doeffectonhit>false</doeffectonhit>
<spawninworld>true</spawninworld>
<fall>true</fall>
<toolset>true</toolset>
<maxheight>64</maxheight
<maxingroup>5</maxingroup>
<maxtries>8</maxtries>
<mindropped>1</mindropped>
<maxdropped>2</maxdropped>
<lightemitted>0.7</lightemitted>
<hardness>1F</hardness>
<particletype>splash</particletype>
<material>TEST</material>
</newore<
</ores>
</newOres>
Please Help,
TizNarniaz2
My error report is: I can't really get time to see it but it just says it is addOres is not installed and I deleted the META~INF.
Edit:
I found the error report! error report:
java.lang.NumberFormatException: For input string: " 400"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at AddOres_newMaterials.toInt(AddOres_newMaterials.java:37)
at AddOres_newMaterials.readModFile(AddOres_newMaterials.java:27)
at AddOres_newMaterials.<init>(AddOres_newMaterials.java:18)
at mod_LoadAddOres.<init>(mod_LoadAddOres.java:9)
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 ModLoader.addMod(ModLoader.java:272)
at ModLoader.readFromClassPath(ModLoader.java:1104)
at ModLoader.init(ModLoader.java:812)
at ModLoader.AddAllRenderers(ModLoader.java:183)
at th.<init>(th.java:60)
at th.<clinit>(th.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:318)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Unknown Source)
Rules posted here: http://rules.mcf.li/ or click signature.
i see you are adding the recipe xml, very good.
here is what you should put in a update
for the metal = true/false setting, you should change it to block type and add more values because when i want to create a block that simply gives you a block when you mine it (not a gemstone) and it does not say "so and so" ORE such as limestone and when you mine a block with this setting you get a simple limestone block, it should not say "limestone ore" or block of limestone but just limestone, also you should add values for liquid (makes a block liquid and gives it liquid physics), non-solid (makes a block non solid), plant (creates a non solid plant block like a mushroom), and item (creates a block that is a item (eg. Cake)
also you should have liquid properties such as
- drytime (how fast it will dry up when it's source is cut off, eg water is fast, lava is slow)
- if it will hurt you (eg. lava)
- how much damage it will do to you (eg. lava is 3)
- flowtime (how fast it will flow, eg. water is faster than lava)
for the fall setting instead of just true and false, there should be three settings, these would be 1, 0, and -1
for 1 blocks would fall
for 0 they would do nothing
for -1 they would float up towards the sky instead a falling (eg, Unobtainium from avatar which floats in the sky)
and here are some new options to add
a option to determine in what world the rock will spawn (eg: in the nether, real world, or the sky dimension in 1.8)
a option to determine if a material is a liquid (eg, oil)
a option to determine if a material is flammable (eg, oil or wood)
a option to determine if a new block will hurt you if you touch it (eg cactus, and lava)
- how many hearts it will take (eg. Cactus is 1.5)
a option to determine if a new block has a chance of exploding when it is mined (eg magnesium would have a 10% chance)
a option to determine if a new block is magnetic (eg magnetite, it will screw up a compass when you get close to it)
a option to determine is a new block is solid or non solid
a option to determine if a new block is editable
- if it will heal x amount of hearts
- if it will take away x amount of hearts (eg, poisonous mushroom)
a option to determine if a new block is a plant (eg. a new mushroom or flower)
- uses one texture and crosses them like this "X"
a option to determine what sounds a block will make when it is stepped on, smashed, or eaten
a option to determine how many blocks a custom explosion will destroy (eg, 3x3x3 from the explosion source for magnesium)
also you should add triggers for items such as if they are editable (cake), they explode (suicide bomb), they poison you (poison mushroom), or they simply are used as recipe ingredients (eg. TNT plus circuit board = suicide bomb)
You have a space before the 400, you need to delete it.
It gos to the Mojang screen and then crashes. Im quite lazy at the moment and dont feel like dealing with putting it in and removing it afterwards.
Lol ok :/
Here is my newOres.xml file:
<?xml version="1.0"?>
<newOres>
<configs>
<blockstartindex>200</blockstartindex>
<itemstartindex>5000</itemstartindex>
</configs>
<ores>
<newore>
<name>Adminium</name>
<metal>true</metal>
<doeffectonhit>false</doeffectonhit>
<spawninworld>true</spawninworld>
<fall>false</fall>
<toolset>true</toolset>
<maxheight>20</maxheight>
<maxingroup>5</maxingroup>
<maxtries>10</maxtries>
<mindropped>1</mindropped>
<maxdropped>1</maxdropped>
<lightemitted>0F</lightemitted>
<hardness>10F</hardness>
<particletype>splash</particletype>
<material>ADMINIUM</material>
</newore>
</ores>
and here is my newMaterials.xml file
<?xml version="1.0"?>
<newMaterials>
<configs>
<startindex>5</startindex>
</configs>
<materials>
<newmaterial>
<name>ADMINIUM</name>
<harvestlevel>4</harvestlevel>
<maxuses>2964</maxuses>
<efficiency>9F</efficiency>
<damage>28</damage>
</newmaterial>
<newmaterial>
<name>AQUARIUS</name>
<harvestlevel>1</harvestlevel>
<maxuses>145</maxuses>
<efficiency>3.5F</efficiency>
<damage>50</damage>
</newmaterial>
</materials>
</newMaterials>
See anything wrong??? Also i do have the sprite file in the minecraft.jar but whenever i drag it in there it goes in ass all the files in the file (Ex. in minecraft.jar, insted of having just the sprites folder i have the axe folder the gem folder the pickaxe foler ext.....)\
Please help! :smile.gif:
I could have thought of that. I need to re-read better.Lol
Rules posted here: http://rules.mcf.li/ or click signature.
(ignore the ores/materials that come with the thing)
Ore/Material: Test/TEST
Heres: newMaterials.xml:
<?xml version="1.0"?>
<newMaterials>
<configs>
<startindex>5</startindex>
</configs>
<materials>
<newmaterial>
<name>OPAL</name>
<harvestlevel>2</harvestlevel>
<maxuses>340</maxuses>
<efficiency>5F</efficiency>
<damage>2</damage>
</newmaterial>
<newmaterial>
<name>AQUARIUS</name>
<harvestlevel>1</harvestlevel>
<maxuses>145</maxuses>
<efficiency>3.5F</efficiency>
<damage>1</damage>
</newmaterial>
<newmaterial>
<name>TEST</name>
<harvestlevel>4</harvestlevel>
<maxuses>400</maxuses>
<efficiency>6.9F</efficiency>
<damage>5</damage>
</newmaterial>
</materials>
</newMaterials>
Heres: newOres.xml:
<?xml version="1.0"?>
<newOres>
<configs>
<blockstartindex>200</blockstartindex>
<itemstartindex>5000</itemstartindex>
</configs>
<ores>
<newore>
<name>Aquarius</name>
<metal>true</metal>
<doeffectonhit>true</doeffectonhit>
<spawninworld>true</spawninworld>
<fall>false</fall>
<toolset>true</toolset>
<maxheight>128</maxheight>
<maxingroup>10</maxingroup>
<maxtries>10</maxtries>
<mindropped>1</mindropped>
<maxdropped>1</maxdropped>
<lightemitted>0.625F</lightemitted>
<hardness>3F</hardness>
<particletype>splash</particletype>
<material>AQUARIUS</material>
</newore>
<newore>
<name>Opal</name>
<metal>false</metal>
<doeffectonhit>false</doeffectonhit>
<spawninworld>true</spawninworld>
<fall>true</fall>
<toolset>true</toolset>
<maxheight>64</maxheight>
<maxingroup>10</maxingroup>
<maxtries>8</maxtries>
<mindropped>1</mindropped>
<maxdropped>5</maxdropped>
<lightemitted>0F</lightemitted>
<hardness>1F</hardness>
<particletype>splash</particletype>
<material>OPAL</material>
</newore>
<newore>
<name>Test</name>
<metal>false</name>
<doeffectonhit>false</doeffectonhit>
<spawninworld>true</spawninworld>
<fall>true</fall>
<toolset>true</toolset>
<maxheight>64</maxheight
<maxingroup>5</maxingroup>
<maxtries>8</maxtries>
<mindropped>1</mindropped>
<maxdropped>2</maxdropped>
<lightemitted>0.7</lightemitted>
<hardness>1F</hardness>
<particletype>reddust</particletype>
<material>TEST</material>
</newore<
</ores>
</newOres>
Please Help again,
TizNarniaz2
I can't really get time to see it again but it just says it is addOres is not installed and I deleted the META~INF.
Error Report:
FINER: THROW
java.lang.NullPointerException
at AddOres_newOres.readModFile(AddOres_newOres.java:43)
at AddOres_newOres.<init>(AddOres_newOres.java:14)
at mod_LoadAddOres.<init>(mod_LoadAddOres.java:10)
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 ModLoader.addMod(ModLoader.java:272)
at ModLoader.readFromClassPath(ModLoader.java:1104)
at ModLoader.init(ModLoader.java:812)
at ModLoader.AddAllRenderers(ModLoader.java:183)
at th.<init>(th.java:60)
at th.<clinit>(th.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:318)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Unknown Source)
Rules posted here: http://rules.mcf.li/ or click signature.
The fact that it doesn't go correctly in the minecraft.jar is your problem :/
- Right-click the XML file, go to "Open With", and then select "Choose Program"; when the dialog box appears, select Notepad out of the list. If it's not there, click Browse, and search for the program; on XP, it should be in C:\Windows\.
- Create a shortcut to Notepad on your desktop if it's not there already. You can create a shortcut on your desktop by going through the start menu, and going to Accessories, and finding the Notepad in there; drag it onto the desktop with the right mouse button and when the menu appears, select 'copy here' or 'create shortcut here'. Once this is on your desktop, find your .xml file and drag-and-drop it over the Notepad icon.
XML files are kinda dumb, if you want to think about it; they're just glorified text documents, yet Windows treats them specially, they open in Internet Explorer with all this pretty formatting, when in reality they're nothing special. FritzC could've probably programmed his mod to easily open .txt documents instead of .xml files, because other than the extension, it's the exact same thing. Either way, not a big deal -- just open them in your favorite text editor and get working!
XML files carry some special properties with tagging however. Also, they are nice and organized so I decided to use them over a .txt format.
well when i do that there is a file that is called sprites in it, but when i delete the oter files, nothing happens
*other
If you know a way to fix this it would be awsome, i really want to add my own ores and this mod makes it verry easy, exept for my delema :sad.gif: Here are some
Try using a fresh minecraft.jar