Build a Mechanical Crafting System in UEFN (Without Writing Code)
Tutorial beginner compiles

Build a Mechanical Crafting System in UEFN (Without Writing Code)

Updated beginner Code verified

Build a Mechanical Crafting System in UEFN (Without Writing Code)

Ever wonder how to make players feel like actual engineers instead of just looting random trash? It's time to stop handing out healing items and start handing out Rusty Mechanical Parts. In this tutorial, we're building a crafting station where players collect mechanical scrap to unlock high-tier gear. No coding required—just pure, unadulterated UEFN device wizardry.

What You'll Learn

  • Consumables vs. Crafting Materials: Understanding the difference between eating a shield potion and hoarding parts for a machine.
  • The "Recipe" Logic: Using the Conditional Button to check if a player has the right inventory.
  • Inventory Management: Spawning parts and granting rewards using Item Spawners and Item Granters.
  • Scene Graph Basics: How devices talk to each other through signals (the "wires" of logic).

How It Works

In Fortnite, a consumable is any item you pick up. Some you eat (like a Slurp Juice), and some you use as ingredients. Crafting consumables are the ingredients. They don't do anything by themselves; they just sit in your inventory waiting for a purpose.

Think of it like this:

  • Normal Consumable: Like a medkit. You use it, it's gone, you're healed.
  • Crafting Consumable: Like a key. You don't "use" it to open a door directly; you need to be standing at the door (the device) and have the key (the item) to trigger the unlock.

We are going to build a Mechanical Upgrade Station. Players will need to find Rusty Mechanical Parts and Simple Mechanical Parts scattered around the map. When they bring both to a specific terminal, the terminal checks their inventory. If they have the right "keys," it spits out a better item (like a Sturdy Mechanical Part or a weapon).

The Scene Graph: The "Wiring"

In Unreal Engine, everything exists in a Scene Graph—a hierarchy of objects. Think of it like a blueprint of your island.

  • Entities: The individual objects (the button, the spawner, the player).
  • Components: The abilities of those objects (the button can be pressed, the spawner has an item).
  • Signals: The connections between them. When you press a button, it sends a signal down the wire to the next device.

We aren't writing code to make these talk. We are physically connecting them in the editor, just like wiring a real trap.

Let's Build It

We'll create a simple "Scrap Exchange."

  1. Input: Player holds 1 Rusty Part + 1 Simple Part.
  2. Check: A Conditional Button verifies the inventory.
  3. Output: An Item Granter gives the player a Sturdy Mechanical Part.
  4. Cost: The Rusty and Simple parts are removed from the player's inventory.

Step 1: Place the Devices

Open your Creative island. Place these devices near each other:

  1. Conditional Button (This is the brain).
  2. Item Granter (This gives the reward).
  3. Item Spawner (Optional: Place this elsewhere to spawn the raw materials for players to find).

Step 2: Configure the Conditional Button

Click on the Conditional Button. In the details panel, look for Conditions. This is where we define the "recipe."

  • Add Condition: Click the + button.
  • Type: Select Has Item.
  • Item: Search for and select Rusty Mechanical Part.
  • Quantity: Set to 1.
  • Repeat: Add another condition for Simple Mechanical Part with quantity 1.

Now the button knows: "I only work if you have BOTH of these specific items."

Step 3: Connect the Logic (The Signals)

This is where the magic happens. We need to tell the devices what to do when the button is satisfied.

  1. Click on the Conditional Button.
  2. In the On Success section (this fires when the conditions are met), click the + to add an action.
  3. Select Grant Item.
  4. Click the dropdown that says "Target" and select your Item Granter.
  5. Wait, no—we want to grant directly to the player for simplicity, or use the Item Granter to handle the visual effect. Let's use the Item Granter properly.
    • Set the Item Granter's Item to Sturdy Mechanical Part.
    • Set the Item Granter's Target to Player.
    • Now, go back to the Conditional Button. In On Success, select Activate Device.
    • Select your Item Granter as the target.

Step 4: Handle the "Cost" (Removing Items)

By default, the Conditional Button checks for items but doesn't remove them. We need to consume them.

  1. Add another action to the Conditional Button's On Success list.
  2. Select Consume Item.
  3. Item: Rusty Mechanical Part.
  4. Quantity: 1.
  5. Add a second Consume Item action for Simple Mechanical Part.

Note: The order matters! The check happens first, then the grant, then the consume. If you consume first, the check fails.

The "Code" Equivalent

If this were Verse code, it would look something like this (but we don't need to write it!):

using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Game }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/UI }

crafting_station := class(creative_device):

    @editable
    ItemGranter : item_granter_device = item_granter_device{}

    # Triggered by the Conditional Button's On Success signal in the editor.
    # Wire the Conditional Button's "On Button Activated" event to this device's
    # "Activate" input so this runs only when all conditions pass.
    OnButtonActivated(Agent : agent) : void =
        if (FortCharacter := Agent.GetFortCharacter[]):
            # Grant the crafting reward via the Item Granter device
            ItemGranter.GrantItem(Agent)
            # Note: Item removal (cost) is handled by "Consume Item" actions
            # configured directly on the Conditional Button in the editor.
            Print("Crafting Complete!")

Try It Yourself

Challenge: Make a "Trash to Treasure" system.

  1. Find Adhesive Resin and Duct Tape in the consumables list.
  2. Set up a Conditional Button that requires 1 of each.
  3. Make it grant a Shield Potion or a Weapon.
  4. Hint: Remember to add the Consume Item actions so players can't spam the button infinitely with the same parts!

Need a hint? If the button isn't working, check if your Conditional Button is set to One-Time Use or Rechargeable. For crafting, you usually want it to be Rechargeable (or just leave it default) so players can craft multiple items. Also, ensure the Item Granter is actually set to grant to the Player and not the button itself!

Recap

  • Crafting Consumables are inventory items used as ingredients, not for direct use.
  • Conditional Buttons act as the logic gate, checking if a player has specific items.
  • Item Granters/Spawners handle the distribution of rewards.
  • Signals connect these devices, allowing them to trigger each other in sequence.

You've just built a functional economy system without writing a single line of Verse. Go forth and make your players work for that loot!

References

  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-mechanical-crafting-consumables-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-nature-consumables-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-consumables-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite/using-mechanical-crafting-items-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-crafting-consumables-in-fortnite-creative

Verse source files

Turn this into a guided course

Add using-mechanical-crafting-consumables-in-fortnite-creative to your free study plan — we'll suggest related pages and stitch the lot into one compile-checked, self-guided lesson with worked examples and quizzes.

Original tutorial generated by Verse Island from the Verse/UEFN knowledge base, with references to the Epic Games sources above. Code is validated against the knowledge base.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in