ReferenceVerse
Item Spawner V6
item spawner v6
Updated
item-spawner-v6 in ~90 seconds.One step on the mossy stone plate, and the jungle pyramid instantly rewards you with a glowing keycard.
The item spawner device holds your loot in reserve, waiting for your code to enable it and spawn the item into the world.
We subscribe a trigger device to our handler, unwrap the stepping player, then wake the spawner and force it to drop the gear.
Reach for the item spawner device when you need Verse to control exactly when and where loot appears.
pyramid_loot := class(creative_device):
@editable
KeySpawner : item_spawner_device = item_spawner_device{}
@editable
Plate : trigger_device = trigger_device{}
OnStepped(Agent : ?agent) : void =
if (A := Agent?):
KeySpawner.Enable()
KeySpawner.SpawnItem()
OnBegin<override>()<suspends>:void =
Plate.TriggeredEvent.Subscribe(OnStepped)
Build your own lesson with item-spawner-v6
Generate a personalized, compile-checked lesson grounded in this exact reference.
Build a lesson →