Skip to main content

Cutstone

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

Overview​

cutstone is a prefab representing a crafted stone item used for baiting moles, repairing stone structures, and trading. It is a passive item without state-driven behavior; its functionality is delegated to attached components (stackable, inventoryitem, tradable, bait, repairer). The prefab is valid on both client and server, though components are only added on the master simulation.

Usage example​

local inst = SpawnPrefab("cutstone")
inst.components.stackable:SetSize(5) -- Stack size up to TUNING.STACK_SIZE_LARGEITEM
inst.components.tradable:GetRockTribute() -- Returns 3
inst.components.repairer:GetRepairAmount() -- Returns TUNING.REPAIR_CUTSTONE_HEALTH

Dependencies & tags​

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

Properties​

PropertyTypeDefault ValueDescription
pickupsoundstring"rock"Sound played when the item is picked up.
components.stackable.maxsizenumberTUNING.STACK_SIZE_LARGEITEMMaximum stack size.
components.tradable.rocktributenumber3Tribute cost to trade this item to the Moon Rock monument.
components.repairer.repairmaterialenumMATERIALS.STONEMaterial type used for repair matching.
components.repairer.healthrepairvaluenumberTUNING.REPAIR_CUTSTONE_HEALTHAmount of health restored per repair action.

Main functions​

Not applicable. The prefab itself has no public methods beyond its attached components’ APIs. All functionality is provided by the components listed in "Dependencies & tags".

Events & listeners​

None identified. The cutstone prefab does not define custom event listeners or push events directly.