Skip to main content

Antchovies

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

Overview

antchovies is a lightweight, consumable item prefab used as a minimal food source in the game. Though shipped in the codebase, it is marked as unused in comments. It implements core functionality via the edible and stackable components to define its consumption properties and inventory stack size. The prefab includes standard visual, audio, and network infrastructure via transforms, animstates, sound emitters, and dynamic shadows.

Usage example

-- Example of spawning an antchovies instance and inspecting its edible properties
local inst = Prefab("antchovies", nil, nil)
inst:AddComponent("edible")
inst:AddComponent("stackable")

print(inst.components.edible.healthvalue) -- 0
print(inst.components.edible.hungervalue) -- TUNING.CALORIES_TINY
print(inst.components.stackable.maxsize) -- TUNING.STACK_SIZE_SMALLITEM

Dependencies & tags

Components used: inventoryitem, edible, stackable Tags: None identified.

Properties

PropertyTypeDefault ValueDescription
healthvaluenumber0Health restored on consumption.
hungervaluenumberTUNING.CALORIES_TINYHunger restored on consumption.
sanityvaluenumber0Sanity restored (or lost if negative) on consumption.
foodtypeFOODTYPEFOODTYPE.MEATCategory of food, used for crafting and dietary rules.
maxsizenumberTUNING.STACK_SIZE_SMALLITEMMaximum stack size for this item in inventories.

Main functions

No custom methods are defined in this prefab. All functionality is delegated to the edible and stackable components.

Events & listeners

None identified.