Jump to content

Minecraft mod to allow converting smelted ore back to raw ore 1.20


Recommended Posts

Is it possible to convert smelted ore back to raw ore?

the idea is to use smelted ore or even ingots to craft raw ore. to do this we would require placing cobblestone and 8 nuggets, in total 9 items in the 3*3 space of a crafting table to make raw ore of that particular item.

For example, look at code for inspiration:

import net.minecraft.inventory.CraftingInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.item.crafting.IRecipeSerializer;
import net.minecraft.item.crafting.SpecialRecipe;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.registries.ObjectHolder;

public class YourRecipe extends SpecialRecipe {

    public static final IRecipeSerializer<YourRecipe> SERIALIZER = null;

    public YourRecipe(ResourceLocation idIn) {

    public boolean matches(CraftingInventory inv, World worldIn) {
        // Check if the crafting ingredients match your recipe pattern
        // In this case, check for a 3x3 pattern with cobblestone and 8 ingots/nuggets
        // Modify this to fit your exact recipe pattern

    public ItemStack getCraftingResult(CraftingInventory inv) {
        // Return the result item (raw ore) for this recipe

    public boolean canFit(int width, int height) {
        return width * height >= 9;

    public IRecipeSerializer<?> getSerializer() {
        return SERIALIZER;

I am not a game developer or modder so I need help making something like this, It would be greatly beneficial, can you recommend where I can do something like this?

Link to comment
Share on other sites

You don't need code or even a mod for that, you just need a datapack with a custom recipe file.

Mods are automatically datapacks.

Or you can create custom recipes with mods like Kubejs or Crafttweaker.


If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.