Skip to main content

Yotr Token

Based on game build 714014 | Last updated: 2026-03-07

Overview​

yotr_token is a prefab representing a collectible currency item introduced during the YotR event. It functions as a standard inventory item with floatable physics when dropped, and supports stacking up to a small item stack size. It carries the tags cattoy, renewable, and yotr_token to enable event-specific logic and interactions (e.g., cat behavior or event currency redemption). The component composition includes inventoryitem, stackable, inspectable, and tradable, indicating full integration into the game’s inventory, stacking, trading, and inspection systems.

Usage example​

While yotr_token is typically spawned as a prefab rather than instantiated manually, here is a minimal example of how to spawn and configure a token programmatically:

local inst = Prefab("yotr_token", nil, {
Asset("ANIM", "anim/yotr_token.zip"),
})()
inst:AddComponent("inventoryitem")
inst:AddComponent("stackable")
inst.components.stackable.maxsize = TUNING.STACK_SIZE_SMALLITEM
inst:AddTag("yotr_token")

Dependencies & tags​

Components used: inventoryitem, stackable, inspectable, tradable, transform, animstate, network Tags: Adds cattoy, renewable, yotr_token. Checks none explicitly.

Properties​

PropertyTypeDefault ValueDescription
stackable.maxsizenumberTUNING.STACK_SIZE_SMALLITEMMaximum number of tokens allowed per stack.

Main functions​

Not applicable (prefab factory function fn() is internal; no public methods beyond standard component APIs like stackable:GetSize() or stackable:Push()).

Events & listeners​

None identified.