This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hello all. I am trying to make a recipe that smelts Gravel to make my modded item "Sifted Dust". I am having some issues so I was wondering if you could help. Here's the source code from my ModRecipes class:
package com.TheTiltedIndian.TiltedCraft.init; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModRecipes{ public static void init() { GameRegistry.addSmelting(ModBlocks.COPPER_ORE, new ItemStack(ModItems.COPPER_INGOT, 1), 1.5f); GameRegistry.addSmelting(ModBlocks.ALUMINIUM_ORE, new ItemStack(ModItems.ALUMINIUM_INGOT, 1), 1.5f); GameRegistry.addSmelting(Block.gravel.BlockID, new ItemStack(ModItems.SIFTED_DUST, 1), 1.5f); } } Thanks!
First question. What version are you programming in?
Second question. Do your Ingots smelt as they should?
If answer to 2nd question is no, I think I might have a solution:
GameRegistry.addSmelting(new ItemStack(ModBlocks.COPPER_ORE, 1), new ItemStack(ModItems.COPPER_INGOT), 1.5F);
Do the same for the other 2, see if that helps.
Hello. The ingots work fine. I am modding in Forge 1.12.2 also. Any further help is appreciated!
Thanks for letting me know what version, it helps.
Try this:
GameRegistry.addSmelting(Blocks.GRAVEL, new ItemStack(ModItems.SIFTED_DUST) 1.5F);
You're a legend, it worked! Thank you so much!
I wouldn't say 'legend' but, thanks. You're welcome. Glad I could help.
Make sure to Tag this post as [Solved], or [Resolved], so others may know how to fix in case they have the same issue.
Hello all.
I am trying to make a recipe that smelts Gravel to make my modded item "Sifted Dust". I am having some issues so I was wondering if you could help.
Here's the source code from my ModRecipes class:
package com.TheTiltedIndian.TiltedCraft.init;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class ModRecipes{
public static void init() {
GameRegistry.addSmelting(ModBlocks.COPPER_ORE, new ItemStack(ModItems.COPPER_INGOT, 1), 1.5f);
GameRegistry.addSmelting(ModBlocks.ALUMINIUM_ORE, new ItemStack(ModItems.ALUMINIUM_INGOT, 1), 1.5f);
GameRegistry.addSmelting(Block.gravel.BlockID, new ItemStack(ModItems.SIFTED_DUST, 1), 1.5f);
}
}
Thanks!
First question. What version are you programming in?
Second question. Do your Ingots smelt as they should?
If answer to 2nd question is no, I think I might have a solution:
Do the same for the other 2, see if that helps.
Hello.
The ingots work fine. I am modding in Forge 1.12.2 also.
Any further help is appreciated!
Thanks for letting me know what version, it helps.
Try this:
You're a legend, it worked!
Thank you so much!
I wouldn't say 'legend' but, thanks. You're welcome. Glad I could help.
Make sure to Tag this post as [Solved], or [Resolved], so others may know how to fix in case they have the same issue.