How to Build a Magic Potion Recipe in Fortnite Creative
Tutorial beginner

How to Build a Magic Potion Recipe in Fortnite Creative

Updated beginner

How to Build a Magic Potion Recipe in Fortnite Creative

Do you want to make a potion that gives you super speed? You can't just buy it at a store. You have to make it! In this tutorial, we will use special ingredients like mushrooms and honey. We will build a crafting station. When players bring the right items, they get a magic potion. This is called "Wild Edible" crafting. It is fun and tasty!

What You'll Learn

  • What Wild Edible items are.
  • How to use the Conditional Button device.
  • How to check if a player has the right ingredients.
  • How to give a reward item when the recipe is complete.

How It Works

Imagine you are baking a cake. You need flour, sugar, and eggs. If you miss one, you can't bake! Fortnite works the same way. We use special items called Wild Edible items. These are natural foods found in the wild.

Here are the main ingredients:

  • Honey
  • Blue Mushroom
  • Pink Mushroom
  • Red Mushroom
  • White Mushroom
  • Yellow Mushroom

We also have Food items like Wheat, Pumpkin, and Herb. You can mix these too!

To make this work, we use a smart device called a Conditional Button. Think of it as a bouncer at a club. It checks your bag. If you have the right items, it lets you in. If not, it says "No entry!"

When the button is happy, it sends a signal. This signal tells another device to give you the reward. The reward is usually a special item or a weapon. This whole process is called Crafting. Crafting means combining materials to make something new.

Let's Build It

We will build a simple recipe. Let's make a "Speed Potion." To make it, you need:

  1. One Honey
  2. One Blue Mushroom

When you give these to the button, you get a Speed Potion item.

Step 1: Set Up the Island

First, place a Conditional Button on your island. Name it "Crafting Station." Next, place an Item Granter next to it. This device gives items to players. Name it "Reward."

Step 2: Configure the Button

Click on the Conditional Button. Open its settings. You need to tell it what items to look for. Look for the Required Items section. Add Honey to the list. Add Blue Mushroom to the list. Set the count for each to 1.

This means the button will only work if a player has both.

Step 3: Connect the Reward

Now, we need to link the button to the reward. Go to the Item Granter. Look for the Trigger settings. Select the Conditional Button as the trigger source. Set the item to give as Speed Potion (or any item you like).

Now, when the button is pressed and the items are present, the granter fires!

Step 4: Test It!

Play your island. Walk up to the button. Try to press it without items. Nothing happens. Good! Now, pick up a Honey and a Blue Mushroom. Press the button. Poof! You get your reward.

Here is a simple Verse script example. This shows how the code checks the items. It uses a simple list of requirements.

# This is a simple example of checking items
# In real UEFN, you mostly use the device settings!

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

crafting_station := class(creative_device):

    # Drag these devices into the slots in the UEFN editor
    @editable
    ConditionalButton : conditional_button_device = conditional_button_device{}

    @editable
    RewardGranter : item_granter_device = item_granter_device{}

    OnBegin<override>()<suspends> : void =
        # Listen for the event the conditional button fires when
        # all required items are present and the player presses it.
        # Configure the required items (Honey, Blue Mushroom, count 1 each)
        # in the Conditional Button device settings inside the UEFN editor.
        ConditionalButton.ItemRequirementPassedEvent.Subscribe(OnRecipeComplete)

    # Called when the conditional button confirms all ingredients are present
    OnRecipeComplete(Agent : agent) : void =
        Print("Recipe Complete!")
        # Grant the reward item configured in the Item Granter device settings
        RewardGranter.GrantItem(Agent)

Note: In UEFN, you usually do this with the visual device links, not code. But this shows the logic!

Try It Yourself

Can you make a different recipe? Try adding a Red Mushroom to your list. Or try using Wheat and Herb from the Food category. See if you can make a "Healing Salad." Remember to update the Conditional Button settings with the new items.

Recap

  • Wild Edible items are natural ingredients like mushrooms and honey.
  • The Conditional Button checks your bag for specific items.
  • Crafting is combining items to make something new.
  • You can link the button to an Item Granter to give rewards.

References

  • https://dev.epicgames.com/documentation/en-us/fortnite/using-wild-edible-crafting-items-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-wild-edible-crafting-consumables-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite/using-food-crafting-items-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-items-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite/using-items-in-fortnite-creative

Verse source files

Turn this into a guided course

Add using-wild-edible-crafting-items-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