Skip to main content

Mosquitosack

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

Overview

The mosquitosack prefab is an inventory item that serves dual functionality: it heals the player upon use and repairs damaged items in their inventory. Additionally, it functions as a small burnable fuel source. The component logic is embedded directly within its prefab definition via the fn() constructor, which attaches essential components (repairer, fillable, healer, inspectable, inventoryitem, stackable) and configures their behavior. It is only fully initialized on the master simulation, with client instances containing only visual and physical properties.

Usage example

-- Example: Spawning and using a mosquitosack
local sack = SpawnPrefab("mosquitosack")
-- The item is immediately usable due to its components
-- When used, it triggers healing and repair effects defined in its components

Dependencies & tags

Components used: inspectable, inventoryitem, stackable, repairer, fillable, healer, smallburnable, smallpropagator, hauntablelaunchandignite
Tags: None identified.

Properties

PropertyTypeDefault ValueDescription
repairmaterialMATERIALS.VITAEMATERIALS.VITAEMaterial used for repair operations.
perishrepairpercentnumber1Fraction of decay reversed per repair (1 = full decay reversal).
filledprefabstring"waterballoon"Prefab name used to represent a filled state (used by fillable component).
healthnumberTUNING.HEALING_MEDSMALLHealth restored when used, configured via SetHealthAmount.

Main functions

Not applicable — this is a prefab definition, not a component script. Its behavior is implemented through attached components, not custom methods.

Events & listeners

Not applicable — no event listeners are registered directly in this file. Event interaction occurs via standard component behavior (e.g., healer triggers healing on use, fillable responds to inventory interactions).