using { /Fortnite.com/Devices }
using { /Fortnite.com/Game }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /Verse.org/Native }
using { /UnrealEngine.com/Temporary/Diagnostics }
# This is our main device. Think of it as the "Brain" of the crafting station.
# It holds all the logic for what happens when a player interacts.
crafting_station_device := class(creative_device):
# These are editor-exposed device references. Wire them up in UEFN:
# - TriggerDevice: a trigger_device placed in your Crafting Zone
# - BaconGranter: an item_granter_device set to grant Bacon (count -1 to remove)
# - PlankGranter: an item_granter_device set to grant Planks (count -1 to remove)
# - RewardGranter: an item_granter_device set to grant the Makeshift Revolver
# note: Verse has no runtime string-based inventory API; item_granter_device is
# the supported way to give/remove items and act as a reward spawner.
@editable
TriggerDevice : trigger_device = trigger_device{}
@editable
BaconGranter : item_granter_device = item_granter_device{}
@editable
PlankGranter : item_granter_device = item_granter_device{}
@editable
RewardGranter : item_granter_device = item_granter_device{}
Verse Library
verse
01 Device
Defines a creative device that grants crafting rewards like bacon, planks, or weapons when players trigger the zone.
verse-library/using-nature-items-in-fortnite-creative/01-device.verse
Sign in free to read the full source 🌴
This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.