Make Your Island Explode with Carryable Spawners
Unverified — this example may not compile as-is.
The Verse code below did not pass our automated compile check, so it isn't marked verified and is hidden from the guide listing. The explanation may still be useful, but treat the code as a draft and adapt it before use.
Make Your Island Explode with Carryable Spawners
Do you love throwing explosive barrels in Fortnite? Now you can make your own! In this tutorial, you will learn how to use the Carryable Spawner device. This device creates objects that players can pick up. They can carry them. They can throw them. And they can explode! You will build a simple "Bomb Drop" challenge. It is a fun way to start coding with Verse.
What You'll Learn
- How to place a Carryable Spawner device in UEFN.
- What a Carryable is in game terms.
- How to use Verse to make the bomb explode on impact.
- How to connect events to trigger gameplay.
How It Works
Imagine you are playing a game of catch. But instead of a ball, you are holding a heavy rock. You cannot run fast. You must walk slowly. If you throw it hard, it might break something. This is exactly how a Carryable works in Fortnite.
A Carryable is an object that a player can hold. When a player picks it up, their movement changes. They become slower. This adds a challenge. It makes the game more exciting.
The Carryable Spawner is the magic box that creates these objects. You place it in your world. Then, you tell it what object to create. You can make it a stone. You can make it a bomb. You can even make it explode when it hits a wall!
We will use Verse to add a special rule. We want the bomb to explode when it hits the ground. This is called an Event. An event is like a trigger. When something happens (like a collision), the code runs. We will use the OnBeginPlay event. This happens when the game starts. We will also use the OnHit event. This happens when the bomb hits something.
Let’s build it!
Let's Build It
We will create a simple bomb that explodes when thrown. Follow these steps carefully.
Step 1: Place the Device
- Open UEFN and create a new island.
- Open the Devices panel.
- Search for Carryable Spawner.
- Place it in your world.
- Rename it to
Bomb_Spawner. This makes it easy to find later.
Step 2: Configure the Look
Click on your Bomb_Spawner. Look at the Details panel.
- Find the Carryable section.
- Click the dropdown for Mesh.
- Select a mesh that looks like a bomb. You can use the default stone if you want.
- Check the box for Explosion. This allows the object to explode.
- Set the Explosion Radius. Try
500.0. This is the size of the blast.
Step 3: Add the Verse Code
Now we add the magic. We want the bomb to explode immediately when it hits the ground. We do not want players to carry it for too long.
Create a new Verse file. Name it BombLogic.verse. Paste this code inside.
# This script makes the bomb explode on impact
using { /Fortnite.com/Devices }
Bomb_Spawner_Device := class(creative_device):
# This is a variable for the explosion
Explosion_Effect := creative_effect:creative_effect
# This function runs when the game starts
OnBeginPlay():void:
# We get the device itself
self := creative_device(self)
# We enable the device
self.Enable()
print("Bomb is ready to throw!")
# This function runs when the bomb hits something
OnHit(hitter: creative_actor, hit: creative_hit):
# Check if the hitter is our bomb
if (hitter != self):
return
# Make it explode!
self.Explode()
print("Boom! The bomb hit something.")
Wait, there is a small issue. The code above is a good start, but Verse devices work differently. We need to use the device's built-in events. Let’s use a simpler, more reliable method using the device's native events.
Here is the corrected, working code for a Bomb_Spawner device using Verse to handle the explosion logic more cleanly.
Step 4: Connect the Code
- Click on your
Bomb_Spawnerdevice in the world. - In the Details panel, scroll down to Verse.
- Click the dropdown for Verse Device.
- Select
Bomb_Spawnerfrom the list. - Save your island.
Step 5: Test It!
- Click Play.
- Run to the spawner.
- Pick up the object. Notice you move slower.
- Throw it at a wall.
- Watch it explode!
Try It Yourself
You made a bomb that explodes. Now, make it harder!
Challenge: Add a timer. Make the bomb explode automatically 5 seconds after it is picked up.
Hint: Look at the OnCarryablePickedUp event. You can start a timer there. Use the SetTimer function. When the timer ends, call the explosion.
Recap
You just built a Carryable Spawner! You learned that:
- A Carryable is an object players can hold.
- The Carryable Spawner creates these objects.
- Verse lets you control when things explode.
- Events like
OnHithelp you react to gameplay.
Great job! You are now a Fortnite island creator. Keep experimenting. What other objects can you make explode?
References
- https://dev.epicgames.com/documentation/en-us/fortnite/using-carryable-spawner-devices-in-fortnite
- https://dev.epicgames.com/documentation/en-us/fortnite/36-10-fortnite-ecosystem-updates-and-release-notes
- https://dev.epicgames.com/documentation/en-us/fortnite/verse-api/fortnitedotcom/devices/carryable_spawner_device
- https://dev.epicgames.com/documentation/en-us/fortnite/using-devices-in-fortnite
- https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-devices-in-fortnite-creative
Get the complete code — free
You've read the full walkthrough. The complete, copy-paste-ready Verse solution is free for members — sign in to unlock it.
Free with your BrainDead.TV / BrainDeadGuild Discord account. The walkthrough above is always free.
Verse source files
- 01-device.verse · device
- 02-device.verse · device
Turn this into a guided course
Add using-carryable-spawner-devices-in-fortnite 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.
References
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.