Maybe you could consider using the Java reflection to avoid import statements. Just for example:
Class onlySilverAPI = Class.forName("OnlySilver.code.api.OnlySilverAPI");
silverOre = onlySilverAPI.getField("silverOre ").get(null).get();
Edit: corrected class name.
You have been absolutely amazing today.
I will do some reading on that this week, and try that next weekend with Arsenic. If I can get that working, I can put silver, sterling steel, and the arsenides in separate classes called if the modID exists. I could get rid of the mini packs, and just put a line at the top of the main packs' description:
Simple Fusion Recycling version 1.2.48 now includes beyond vanilla, Simple Ores, and Fusion: Only Silver, Netherrocks, Simple Arsenic, Sterling Steel, Francium (NEW), and Pig Armor (NEW).
Thanks for the answer, re: Metallurgy. I figured it was likely to be something too painful to really want to deal with, but I hadn't thought about needing the code in order to make it work.
Rollback Post to RevisionRollBack
[Scott]: Things I have managed to get in the last five minutes, in order of ascending importance: cobblestone, planks, lapis lazuli, redstone, gold, coal, diamond. VERY LOST.
Thanks for the answer, re: Metallurgy. I figured it was likely to be something too painful to really want to deal with, but I hadn't thought about needing the code in order to make it work.
This is the recipe block from Sterling Steel.
// Sterling Steel
FusionRecipes.smelting().addSmelting(new ItemStack(SSc.sterlingSteelHelm), new ItemStack(Block.gravel), new ItemStack(Item.coal), new ItemStack(SSc.largeSterlingSteelChunkItem), 15.0F);
FusionRecipes.smelting().addSmelting(new ItemStack(SSc.sterlingSteelChest), new ItemStack(Block.gravel, 2, 0), new ItemStack(Item.coal, 2, 0), new ItemStack(SSc.largeSterlingSteelChunkItem, 2, 0), 30.0F);
FusionRecipes.smelting().addSmelting(new ItemStack(SSc.sterlingSteelLegs), new ItemStack(Block.gravel, 2, 0), new ItemStack(Item.coal, 2, 0), new ItemStack(SSc.largeSterlingSteelChunkItem, 2, 0), 30.0F);
FusionRecipes.smelting().addSmelting(new ItemStack(SSc.sterlingSteelBoots), new ItemStack(Block.gravel), new ItemStack(Item.coal), new ItemStack(SSc.largeSterlingSteelChunkItem), 15.0F);
FusionRecipes.smelting().addSmelting(new ItemStack(SSc.sterlingSteelSword), new ItemStack(Block.gravel), new ItemStack(Item.coal), new ItemStack(SSc.largeSterlingSteelChunkItem), 15.0F);
FusionRecipes.smelting().addSmelting(new ItemStack(SSc.sterlingSteelShovel), new ItemStack(Block.gravel), new ItemStack(Item.coal), new ItemStack(SSc.largeSterlingSteelChunkItem), 15.0F);
FusionRecipes.smelting().addSmelting(new ItemStack(SSc.sterlingSteelPickaxe), new ItemStack(Block.gravel), new ItemStack(Item.coal), new ItemStack(SSc.largeSterlingSteelChunkItem), 15.0F);
FusionRecipes.smelting().addSmelting(new ItemStack(SSc.sterlingSteelAxe), new ItemStack(Block.gravel), new ItemStack(Item.coal), new ItemStack(SSc.largeSterlingSteelChunkItem), 15.0F);
FusionRecipes.smelting().addSmelting(new ItemStack(SSc.sterlingSteelHoe), new ItemStack(Block.gravel), new ItemStack(Item.coal), new ItemStack(SSc.largeSterlingSteelChunkItem), 15.0F);
In each item stack, the item is designated by (OriginatingJavaClass.ItemID). "Item" and "Block" are the main java classes for Minecraft's core, which are imported. "SCc" is a variable declared early on, which stands for "SterlingSteelCore", and SterlingSteelCore is also imported at the beginning of the Recycle class file. SSc is where the Sterling Steel items are declared.
Just to be clear, the structure of this command is:
(initiate fusion recipe) ("input slot" item) ("input slot" item) ("catalyst slot" item) (generated output) (XP given)
So, it's not particularly difficult, *if* you have the source code. You have to copy block of code into something like Notepad++, use the find-and-replace feature, double check your code, paste it back in, make sure your inputs are there, and make sure all the names resolve. Personally, I also do a lot of checking. Also, you have to add other items you want to recycle, like bows or horse armor or heavy equipment.
If you want to have a go at it with Metallurgy, you're more than welcome. And that reminds me....
I want to ask AleXndr if making the Fusion Furnace metadata-aware will also make the inputs number-aware. All my recipes are set up so that if you get two output items, you need two input "ore-base" blocks (usually gravel, sometimes netherrack). However, in the game, this is stripped from input, so you only need one gravel block. Will that change? (I'm posting that in the main thread.)
AleXndr has updated SimpleOres. I have to go to work, so it will be this evening before I can do anything with this.
Please let me know if any of my mods break, and which ones.
Well I like using 5 small chunks to make a big one. I hope it can stay that way. So the only thing that would need changing is the OP so it says it uses 5, not 7.
Well I like using 5 small chunks to make a big one. I hope it can stay that way. So the only thing that would need changing is the OP so it says it uses 5, not 7.
5 is correct. My weekly antivirus scan is running, so I don't want to try updating the main post now, and having the AV cause a problem with the update. I won't wan to repeat this past weekend's problem.1.6.4 update
I will try to get this updated this evening. I cannot right now. If any of my mods fail with the Minecraft / Forge / Simple Ores update, please let me know here.
You do not need to post the crash dump. Please just let me know which mod/file the crash dump blames. I will work on those first. Also, please let me know if the fusion recipes work.
Until then:
If the Arsenic and/or Sterling Steel items are OK, and the recipes break, then keep playing until I update the files.
If the Arsenic and/or Sterling items get deleted, you can stat at 1.6.2 until I update those.
At this point, I am avoiding any changes to the mods. Config files should carry over.
Higher Dimension Generation, Simple Ores and Only Silver:: did not need changes. However, all have version 1.0.1 available, which were recompiled.
Simple Arsenic, and Old Lace:: some tweaks to Fusion Furnace recipes to make them work. Small change in that tool crafting recipes use Ore Directory sticks rather than the Minecraft item sticks. Registered sticks from other mods should work.
Sterling Steel:: Some tweaks to the Fusion Furnace recipes to make them work. Also has Ore Director sticks.
Simple Fusion Recycle, Recycle Your Silver, Recycle Your Arsenides, and Recycle Your Sterling Steel are all up.
Clay & Cobble is up, and it supports mixing all colors of colored clay.
Clay and Cobble will wait for a bit. I did that first because it's tiny, but I may have to add either all stained blocks, or drop them. (If I have to do all, that will be over 256 recipes added, which means they will be dropped.)
This is an INTERIM replacement for Simple Arsenic and Old Lace.
This is an INTERIM replacement for Simple Fusion Recycle.
Sept 26: I have to take a break, but I should have the recycle packs (main + specialized) up tonight.
The amazing Zot (of Only Silver) pointed me to integer loops. There is now one recipe for stained clay + bricks, one for stained clay + hardened clay, and 16 for stained clay + stained clay.
What if instead of making the slimeball, you made something that allowed you to spawn a fully grown slime?
Aaaannnd... done!
I've posted two small recipe packs that I considered a while back, and now they are possible since the Fusion Furnace properly reads metadata on input items.
These two packs are very small, and marked "Optional" because they should be viewed as optional. Some could find them useful, and they were interesting exercises, and I now present them.
The first is Simple Saplings. This is a way to create saplings in a very controlled way. You use a wood block and leaf block of the same type (oak + oak, birch + birch), and a dirt block as the catalyst, and you get a sapling of the matched type. If the wood & leaf type does not match, nothing happens (jungle + oak = nothing).
The recipes have all metadata values, from 0 through 15. Only 0, 1, 2, and 3 are used (oak, spruce, birch, and jungle, respectively) by vanilla Minecraft at this time. However, this should work with any of the new tree types added in 1.7. Further, if used with any mods that add trees to the metadata of the vanilla wood/leaf/sapling blocks, it should reproduce those trees.
The second is Fusion Spawner Eggs. This is from DoubleABuilder's suggestion. Again, this mod is optional, and many will not want it, which is fine. It only has recipes for common hostile mobs (creeper, spider / cave spider, skeleton, zombie, and slime), the farm mobs (sheep, cow, chicken, pig, and horse), and the neutral mobs (wolf, ocelot, and squid). Yes, you can turn a chicken egg into a chicken spawn egg. For those who have not been able to find horses in their worlds, or if their worlds will not spawn horses, this is a way to introduce horses.
The first is Simple Saplings. This is a way to create saplings in a very controlled way. You use a wood block and leaf block of the same type (oak + oak, birch + birch), and a dirt block as the catalyst, and you get a sapling of the matched type. If the wood & leaf type does not match, nothing happens (jungle + oak = nothing).
The recipes have all metadata values, from 0 through 15. Only 0, 1, 2, and 3 are used (oak, spruce, birch, and jungle, respectively) by vanilla Minecraft at this time. However, this should work with any of the new tree types added in 1.7. Further, if used with any mods that add trees to the metadata of the vanilla wood/leaf/sapling blocks, it should reproduce those trees.
And suddenly, setting up orchards of Pam's trees that require jungle saplings to make has become SO MUCH EASIER. *swoons*
Rollback Post to RevisionRollBack
[Scott]: Things I have managed to get in the last five minutes, in order of ascending importance: cobblestone, planks, lapis lazuli, redstone, gold, coal, diamond. VERY LOST.
This is what I was working on before updating everything this week.
Hadite Coal is a utility ore in the Nether. Basically, it's super-coal. It will burn for a little longer than it takes one full stack of items and the storage block burns ten times as long.
It is absolutely wonderful irony that a block of Hadite coal burns for about 108 minutes. That was entirely unplanned. (Ask your Buddhist friends, or anyone who is a fan of Anime.)
Besides burning for a long time, one chunk (with 8 sticks, anything registered as a "stickWood") will make 64 torches, and you can make gunpowder. Further, there is an extra set of equipment recycling recipes. Hadite Coal can be used as a catalyst to recycle Onyx equipment, in addition to a lava bucket (from the Recycling pack).
As is obvious, light and particles are the latest thing I have learned. They were in Sterling Steel, are here, will be in Simple Golden Glitter, and will be in Ashenwheat. Adding a charge / redstone charge will be next, which will allow the Arsenic pressure plate I want so much. (I want a zombie-faced welcome mat SO BAD.)
EDIT: Hadite Coal 1.0.1 includes the hard dependency statements for Simple Ores & Fusion. I've forgotten to do this several times in the last few days. The update is entirely optional, and nothing else is changed. This line makes Hadite shut down Minecraft if Simple Ores is gone, rather than crashing.
So will this be useable on 1.6.2 and 1.6.4 or just 1.6.4?
It requires Simple Ores 1.1.0, as the location for the Fusion Furnace interface code has changed.
I could not get 1.1.0 to start on 1.6.2, but I think something else may be interfering. If you can get the new Simple Ores to run (save your game if you haven't tried), then Hadite should load.
Maybe you could consider using the Java reflection to avoid import statements. Just for example:
Edit: Corrected class name AND DELETED A SPACE.
You have been absolutely amazing today.
I will do some reading on that this week, and try that next weekend with Arsenic. If I can get that working, I can put silver, sterling steel, and the arsenides in separate classes called if the modID exists. I could get rid of the mini packs, and just put a line at the top of the main packs' description:
Simple Fusion Recycling version 1.2.48 now includes beyond vanilla, Simple Ores, and Fusion: Only Silver, Netherrocks, Simple Arsenic, Sterling Steel, Francium (NEW), and Pig Armor (NEW).
Thank you.
This is the recipe block from Sterling Steel.
In each item stack, the item is designated by (OriginatingJavaClass.ItemID). "Item" and "Block" are the main java classes for Minecraft's core, which are imported. "SCc" is a variable declared early on, which stands for "SterlingSteelCore", and SterlingSteelCore is also imported at the beginning of the Recycle class file. SSc is where the Sterling Steel items are declared.
Just to be clear, the structure of this command is:
(initiate fusion recipe) ("input slot" item) ("input slot" item) ("catalyst slot" item) (generated output) (XP given)
So, it's not particularly difficult, *if* you have the source code. You have to copy block of code into something like Notepad++, use the find-and-replace feature, double check your code, paste it back in, make sure your inputs are there, and make sure all the names resolve. Personally, I also do a lot of checking. Also, you have to add other items you want to recycle, like bows or horse armor or heavy equipment.
If you want to have a go at it with Metallurgy, you're more than welcome. And that reminds me....
I want to ask AleXndr if making the Fusion Furnace metadata-aware will also make the inputs number-aware. All my recipes are set up so that if you get two output items, you need two input "ore-base" blocks (usually gravel, sometimes netherrack). However, in the game, this is stripped from input, so you only need one gravel block. Will that change? (I'm posting that in the main thread.)
I wonder if there is more?
Ok.
AleXndr has updated SimpleOres. I have to go to work, so it will be this evening before I can do anything with this.
Please let me know if any of my mods break, and which ones.
Well I like using 5 small chunks to make a big one. I hope it can stay that way. So the only thing that would need changing is the OP so it says it uses 5, not 7.
5 is correct. My weekly antivirus scan is running, so I don't want to try updating the main post now, and having the AV cause a problem with the update. I won't wan to repeat this past weekend's problem.1.6.4 update
I will try to get this updated this evening. I cannot right now. If any of my mods fail with the Minecraft / Forge / Simple Ores update, please let me know here.
You do not need to post the crash dump. Please just let me know which mod/file the crash dump blames. I will work on those first. Also, please let me know if the fusion recipes work.
Until then:
If the Arsenic and/or Sterling Steel items are OK, and the recipes break, then keep playing until I update the files.
If the Arsenic and/or Sterling items get deleted, you can stat at 1.6.2 until I update those.
At this point, I am avoiding any changes to the mods. Config files should carry over.
This is an INTERIM replacement for Simple Arsenic and Old Lace.This is an INTERIM replacement for Simple Fusion Recycle.Sept 26: I have to take a break, but I should have the recycle packs (main + specialized) up tonight.Clay & Cobble ("Simple Clay") is up.
I've stabbed it with a fork. I have the day off, so I'm finishing this, and then getting a few things exported.
All of my 1.6.2 plug-ins have 1.6.4 / F884 / Simple Ores 1.1.0 builds.
Thank you, Zot201.
Aaaannnd... done!
I've posted two small recipe packs that I considered a while back, and now they are possible since the Fusion Furnace properly reads metadata on input items.
These two packs are very small, and marked "Optional" because they should be viewed as optional. Some could find them useful, and they were interesting exercises, and I now present them.
The first is Simple Saplings. This is a way to create saplings in a very controlled way. You use a wood block and leaf block of the same type (oak + oak, birch + birch), and a dirt block as the catalyst, and you get a sapling of the matched type. If the wood & leaf type does not match, nothing happens (jungle + oak = nothing).
The recipes have all metadata values, from 0 through 15. Only 0, 1, 2, and 3 are used (oak, spruce, birch, and jungle, respectively) by vanilla Minecraft at this time. However, this should work with any of the new tree types added in 1.7. Further, if used with any mods that add trees to the metadata of the vanilla wood/leaf/sapling blocks, it should reproduce those trees.
The second is Fusion Spawner Eggs. This is from DoubleABuilder's suggestion. Again, this mod is optional, and many will not want it, which is fine. It only has recipes for common hostile mobs (creeper, spider / cave spider, skeleton, zombie, and slime), the farm mobs (sheep, cow, chicken, pig, and horse), and the neutral mobs (wolf, ocelot, and squid). Yes, you can turn a chicken egg into a chicken spawn egg. For those who have not been able to find horses in their worlds, or if their worlds will not spawn horses, this is a way to introduce horses.
And generated in the Nether (at least in the eclipse environment), next to onyx.
And suddenly, setting up orchards of Pam's trees that require jungle saplings to make has become SO MUCH EASIER. *swoons*
This is what I was working on before updating everything this week.
Hadite Coal is a utility ore in the Nether. Basically, it's super-coal. It will burn for a little longer than it takes one full stack of items and the storage block burns ten times as long.
It is absolutely wonderful irony that a block of Hadite coal burns for about 108 minutes. That was entirely unplanned. (Ask your Buddhist friends, or anyone who is a fan of Anime.)
Besides burning for a long time, one chunk (with 8 sticks, anything registered as a "stickWood") will make 64 torches, and you can make gunpowder. Further, there is an extra set of equipment recycling recipes. Hadite Coal can be used as a catalyst to recycle Onyx equipment, in addition to a lava bucket (from the Recycling pack).
As is obvious, light and particles are the latest thing I have learned. They were in Sterling Steel, are here, will be in Simple Golden Glitter, and will be in Ashenwheat. Adding a charge / redstone charge will be next, which will allow the Arsenic pressure plate I want so much. (I want a zombie-faced welcome mat SO BAD.)
EDIT: Hadite Coal 1.0.1 includes the hard dependency statements for Simple Ores & Fusion. I've forgotten to do this several times in the last few days. The update is entirely optional, and nothing else is changed. This line makes Hadite shut down Minecraft if Simple Ores is gone, rather than crashing.
It requires Simple Ores 1.1.0, as the location for the Fusion Furnace interface code has changed.
I could not get 1.1.0 to start on 1.6.2, but I think something else may be interfering. If you can get the new Simple Ores to run (save your game if you haven't tried), then Hadite should load.
If you can't get 1.1.0 to work, I will try to get it exported from my 1.6.2 / F804 workspace.