# This is our main script for the crafting table. using { /Fortnite.com/Devices } using { /Verse.org/Sim } # This is the device that holds our code. # Think of it as the brain of our table. actor MyCraftingTable() : Device() is # This is the button players press. CraftButton : ConditionalButtonDevice = self:GetDevice("CraftButton") # This is the rule for unlocking. # We need 5 herbs to craft. RequiredHerbs := 5 # This is the event when a player walks up. OnBegin():void= # We wait for the player to interact. # The button checks if the player has herbs. if CraftButton.IsReady(): # If the button is ready, we can use it. # The button knows to check the player's inventory. pass