Skip to main content

Antliontrinket

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

Overview

The antliontrinket prefab represents a collectible trinket used as mole bait and as a tradable resource sold to the Antlion boss. It is a lightweight inventory item that supports stacking and integrates with the tradable and stackable components for game-wide economy and inventory mechanics.

Usage example

-- Typical usage in a prefab definition
local inst = CreateEntity()
-- ... entity setup ...
inst:AddTag("molebait") -- Enables interaction with moles

-- In a player inventory context, the item automatically supports:
-- - Stacking up to TUNING.STACK_SIZE_SMALLITEM
-- - Trading for gold (TUNING.GOLD_VALUES.ANTLION) or rock tribute (9 rocks)

Dependencies & tags

Components used: inspectable, inventoryitem, tradable, stackable
Tags: Adds molebait

Properties

PropertyTypeDefault ValueDescription
animstate.bankstring"antliontrinket"Animation bank for rendering.
animstate.buildstring"antliontrinket"Animation build name.
scrapbook_animstring"1"Animation used in the scrapbook.
components.tradable.goldvaluenumberTUNING.GOLD_VALUES.ANTLIONGold value when sold to Antlion.
components.tradable.rocktributenumber9Number of rocks required for tribute to Antlion.
components.stackable.maxsizenumberTUNING.STACK_SIZE_SMALLITEMMaximum stack size.

Main functions

Not applicable.

Events & listeners

None identified.