promotional bannermobile promotional banner

Forging Table

Forging Table is an addon that introduces players a new forging mechanic that similar to an anvil or smithing table, but it is very easy for developers to customize with disenchanting weapon ability.

Forging Table is an addon that introduces players a new forging mechanic that similar to an anvil or smithing table. Still, it is very easy for developers to customize with disenchanting weapon ability.

Forging Table UI Panel

 

Forging Table Recipe

 

Features:

  • Forging Table API
  • Built-in disenchanting ability
  • Built-in curse-removing ability

Compatibility

If you are an addon developer who wants to add your custom forging table recipe, you can do it by copying the forging table module to your addon script folder from this behavior pack in the folder "scripts/module/ForgingTableModule.js".

Example code:

scripts/disenchant.js

import { ForgingTableModule } from "./module/ForgingTableModule";
import { ItemStack } from "@minecraft/server";

ForgingTableModule.registerForgingRecipe(
    {
        primary: {
            tag: [ "minecraft:is_tool", "minecraft:is_armor"]
        },
        secondary: {
            item: [ "minecraft:book", "minecraft:enchanted_book" ]
        },
        tool: {
            item: "minecraft:echo_shard"
        },
        cost: 4
    },
    data =>{
        let enchantable = data.result.getComponent("minecraft:enchantable");
        if(enchantable && data.secondary && data.secondary.amount == 1){
            let enchantments = enchantable.getEnchantments();
            if(enchantments.length > 0 && !enchantable.hasEnchantment("binding") && !enchantable.hasEnchantment("vanishing")){
                let book_enchantable = data.secondary.getComponent("minecraft:enchantable");
              if(!book_enchantable.hasEnchantment(enchantments[0].type)){
                    let out_book = new ItemStack("minecraft:enchanted_book");
                    out_book.getComponent("minecraft:enchantable").addEnchantments(book_enchantable.getEnchantments().concat(enchantments[0]));
                    data.secondary = out_book;
                    enchantable.removeEnchantment(enchantments[0].type);
                    if(data.tool.amount > 1){
                        data.tool.amount -= 1;
                    }else{
                        data.tool = undefined;
                    }
                    data.primary = undefined;
                }else{
                    data.cancel = true;
                }
            }else{
                data.cancel = true;
            }
        }else{
            data.cancel = true;
        }
    }
)

The Forging Table Team

profile avatar
Owner
  • 603
    Followers
  • 14
    Projects
  • 4.8M
    Downloads

More from qduoubpView all

  • UI Queue project image

    UI Queue

    • 434.0K
    • Scripts

    UI queue is a script that transforms the title command into a custom UI prompt. This script is created for preventing overlapping displayed titles that can break custom UI .

    • 434.0K
    • March 19, 2026
    • Scripts
  • Novelty API project image

    Novelty API

    • 385.0K
    • Addons

    Novelty is a small addons that add 24 additional equipment slot to player.

    • 385.0K
    • March 19, 2026
    • Addons
  • Magnificent Minimap project image

    Magnificent Minimap

    • 796.0K
    • Addons

    Magnificent Minimap is a realtime, responsive, and configurable minimap addon.

    • 796.0K
    • February 5, 2026
    • Addons
    • +4
  • Coldbar Indicator project image

    Coldbar Indicator

    • 110.4K
    • Addons

    Make your gameplay more immersive by add more bars such as armor toughness, extra overloaded armor, saturation and exhaustion hunger.

    • 110.4K
    • November 2, 2025
    • Addons
    • +3
  • UI Queue project image

    UI Queue

    • 434.0K
    • Scripts

    UI queue is a script that transforms the title command into a custom UI prompt. This script is created for preventing overlapping displayed titles that can break custom UI .

    • 434.0K
    • March 19, 2026
    • Scripts
  • Novelty API project image

    Novelty API

    • 385.0K
    • Addons

    Novelty is a small addons that add 24 additional equipment slot to player.

    • 385.0K
    • March 19, 2026
    • Addons
  • Magnificent Minimap project image

    Magnificent Minimap

    • 796.0K
    • Addons

    Magnificent Minimap is a realtime, responsive, and configurable minimap addon.

    • 796.0K
    • February 5, 2026
    • Addons
    • +4
  • Coldbar Indicator project image

    Coldbar Indicator

    • 110.4K
    • Addons

    Make your gameplay more immersive by add more bars such as armor toughness, extra overloaded armor, saturation and exhaustion hunger.

    • 110.4K
    • November 2, 2025
    • Addons
    • +3