Skip to main content

Cotl Trinket

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

Overview​

cotl_trinket is a game prefab representing a decorative, low-value item dropped by certain structures (e.g., Cattle Troughs of Light). It serves no gameplay mechanic beyond acting as mole bait (via the molebait tag) and contributing to item stacking, trade, and tribute systems. It is purely visual and consumable for specific interactions.

Usage example​

-- Example of adding a cotl_trinket to an entity's inventory and using it as mole bait
local inst = CreateEntity()
inst:AddComponent("inventoryitem")
inst:AddComponent("stackable")
inst:AddTag("molebait")
-- The actual trinket prefab is created via `TheWorld:PushEvent("spawn prefab", "cotl_trinket")`

Dependencies & tags​

Components used: inspectable, inventoryitem, tradable, stackable, hauntable Tags: Adds molebait to the entity.

Properties​

PropertyTypeDefault ValueDescription
scrapbook_animstring"1"Animation name used in the scrapbook UI (server-only).
tradable.goldvaluenumberTUNING.GOLD_VALUES.COTL_TRINKETIn-game gold value for trading.
tradable.rocktributenumber6Amount of tribute paid when trading to a Rock Tribute system.
stackable.maxsizenumberTUNING.STACK_SIZE_SMALLITEMMaximum stack size allowed for this item.

Main functions​

None identified.

Events & listeners​

None identified.