How to remove recipes - Classics-Craftworks/Better-Craftables GitHub Wiki

Are there recipes in Better Craftables that don’t interest you? No problem! Follow these steps to tailor Better Craftables to your needs.

Method 1 - Filter Data Pack

1. Create a folder

  1. Create a new folder in your Minecraft world's datapacks folder. Example: /datapacks/disable_recipes/

2. Create a pack.mcmeta file

  1. Inside your new datapack folder, create a file called pack.mcmeta
  2. Open it with a text editor (Notepad++, VS Code, etc.)

3. Write the pack.mcmeta content

  1. Copy/paste the following structure and adjust it to your needs
{
  "pack": {
    "min_format": 88,
    "max_format": 88,
    "description": "Disable Recipes"
  },
  "filter": {
    "block": [
      {
        "namespace": "new_recipes",
        "path": "recipe/bell.json"
      },
      {
        "namespace": "alternative_recipes",
        "path": "recipe/alt_bow.json"
      }
    ]
  }
}

"namespace" = the namespace where the recipe is registered. In the case of Better Craftables, these are:

  • alternative_recipes
  • minecraft
  • new_recipes
  • redyeing
  • sandstone_dyeing
  • smelting

"path" = the exact path to the recipe file inside that namespace.

4. (Optional) Add more recipes

  1. To disable more recipes, just add more blocks inside the "block" list.

Example format for each entry:

{
  "namespace": "new_recipes",
  "path": "recipe/recipe_name.json"
}

5. Create the data pack

  1. Select the pack.mcmeta file
  2. Compress it into a .zip file using a program such as WinRAR or 7-Zip

6. Load the data pack

  1. Move the .zip file you just created into your world's datapacks folder
  2. Run /reload in-game or restart the world/server
  3. The unwanted recipes should now be gone!

Method 2 - File Modifiction (not recommended)

Please keep in mind that support will not be provided to those who modify the pack.

Data Pack

  1. Extract the BetterCraftables.zip file using a program such as WinRAR or 7-Zip
  2. Open the extracted folder
  3. Open data folder
  4. Locate the recipe(s) you want to remove:
    • new_recipes folder = new crafting recipes added by the pack
    • alternative_recipes folder = alternative versions of vanilla crafting recipes added by the pack
    • minecraft folder = vanilla recipes that have been tweaked
    • redyeing folder = redyeing recipes for blocks such as Concrete or Terracotta
    • sandstone_dyeing folder = dyeing recipes for Sandstone and its many variants
    • smelting folder = new smelting (furnace) recipes added by the pack
  5. Delete the relevant .json file(s) of the recipes you want to remove
  6. Return back to the root of the extracted folder (contains the data folder, pack.png & pack.mcmeta)
  7. Compress all of the files into a .zip archive using your program of choice

Mod

  1. Extract the BetterCraftables.jar file using a program such as WinRAR or 7-Zip
  2. Open the extracted folder
  3. Open data folder
  4. Locate the recipe(s) you want to remove:
    • new_recipes folder = new crafting recipes added by the pack
    • alternative_recipes folder = alternative versions of vanilla crafting recipes added by the pack
    • minecraft folder = vanilla recipes that have been tweaked
    • redyeing folder = redyeing recipes for blocks such as Concrete or Terracotta
    • sandstone_dyeing folder = dyeing recipes for Sandstone and its many variants
    • smelting folder = new smelting (furnace) recipes added by the mod
  5. Delete the relevant .json file(s) of the recipes you want to remove
  6. Return back to the root of the extracted folder (contains the data folder, pack.png & pack.mcmeta)
  7. Compress all of the files into a .zip archive using your program of choice
  8. Rename the .zip file to have a .jar extension