promotional bannermobile promotional banner

Tinker's Construct Crafting Station Fix

Fixes TConstruct Crafting Station bugs: shift-click ItemCraftedEvent receiving empty ItemStacks (#5599), and KubeJS modifyResult() callbacks failing to get the crafting player in non-vanilla crafting containers via ForgeHooks fallback.

CurseForge Description

Crafting Station Fix

A lightweight mixin mod that fixes two bugs in TConstruct's Crafting Station related to how it interacts with Forge events and KubeJS recipes.

Bug 1: Empty ItemStack on Shift-Click (TConstruct#5599)

When shift-clicking the result slot of the Crafting Station, ItemCraftedEvent fires with an empty ItemStack instead of the actual crafted item. This breaks any mod or script listening to that event.

Root cause: quickMoveStack() passes the crafted stack through inventory movement operations that empty it in-place before passing it to takeResult(), which fires the event.

Fix: A @Redirect mixin re-fetches the crafted result directly from the recipe before the event fires.

Bug 2: KubeJS modifyResult() Fails in Crafting Station

KubeJS recipes using modifyResult() that depend on the crafting player (e.g. dimension checks, player-specific NBT) produce incorrect results when crafted in the Crafting Station. The callback receives null for the player.

Root cause: KubeJS extracts the player by checking for vanilla CraftingMenu or InventoryMenu instances only. TConstruct uses its own CraftingStationContainerMenu with a CraftingContainerWrapper that has no menu reference. TConstruct correctly calls ForgeHooks.setCraftingPlayer() before recipe assembly, but KubeJS never checks that fallback.

Fix: An @Inject mixin on ModifyRecipeCraftingGrid.getPlayer() adds a ForgeHooks.getCraftingPlayer() fallback, which works for any modded crafting container that properly sets the ForgeHooks context.

Requirements

  • Minecraft 1.20.1
  • Forge 47+
  • Tinkers' Construct 3.8+
  • KubeJS 2001.6+

Technical Details

This mod contains two mixins and no runtime code beyond them

The Tinker's Construct Crafting Station Fix Team

profile avatar
Owner
  • 23
    Followers
  • 22
    Projects
  • 1.4M
    Downloads

More from SaerethView all

  • Neo Vitae project image

    Neo Vitae

    • 145.0K
    • Mods

    Spill blood for power. Altars that consume life, sigils that bend the world, custom demons in an endless dungeon, sentient armor that drinks souls, a shield that pays your damage in essentia. Datapack-driven from the ground up.

    • 145.0K
    • June 25, 2026
    • Mods
    • +2
  • FTB Presents: Direwolf20 - Season 14 project image

    FTB Presents: Direwolf20 - Season 14

    • 185.5K
    • Modpacks

    Join Direwolf20 for an immersive Minecraft journey set in the minecraft 1.21 mod ecosystem. Brought to you by an FTB and Direwolf20 collaboration!

    • 185.5K
    • June 24, 2026
    • Modpacks
    • +2
  • Animus project image

    Animus

    • 5.9M
    • Mods

    Bloodmagic addon with rituals and more

    • 5.9M
    • June 23, 2026
    • Mods
    • +1
  • FTB Evolution project image

    FTB Evolution

    • 355.8K
    • Modpacks

    FTB Evolution re-imagines modded MC with a vast collection of advanced tech, intricate magic, and limitless exploration. Whether you're into building high-tech machinery or wielding powerful spells.

    • 355.8K
    • June 19, 2026
    • Modpacks
  • Neo Vitae project image

    Neo Vitae

    • 145.0K
    • Mods

    Spill blood for power. Altars that consume life, sigils that bend the world, custom demons in an endless dungeon, sentient armor that drinks souls, a shield that pays your damage in essentia. Datapack-driven from the ground up.

    • 145.0K
    • June 25, 2026
    • Mods
    • +2
  • FTB Presents: Direwolf20 - Season 14 project image

    FTB Presents: Direwolf20 - Season 14

    • 185.5K
    • Modpacks

    Join Direwolf20 for an immersive Minecraft journey set in the minecraft 1.21 mod ecosystem. Brought to you by an FTB and Direwolf20 collaboration!

    • 185.5K
    • June 24, 2026
    • Modpacks
    • +2
  • Animus project image

    Animus

    • 5.9M
    • Mods

    Bloodmagic addon with rituals and more

    • 5.9M
    • June 23, 2026
    • Mods
    • +1
  • FTB Evolution project image

    FTB Evolution

    • 355.8K
    • Modpacks

    FTB Evolution re-imagines modded MC with a vast collection of advanced tech, intricate magic, and limitless exploration. Whether you're into building high-tech machinery or wielding powerful spells.

    • 355.8K
    • June 19, 2026
    • Modpacks