Skip to main content

Voidcloth

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

Overview

voidcloth is a prefab definition for an in-game item that serves as a stacking, inventory-bound consumable with floatable behavior (likely for use in water-based mechanics). It uses the stackable component to define its maximum stack size and integrates with the inventory system, inspectable interface, and physics for floating on water.

Usage example

This prefab is instantiated by the engine when the game loads it; modders typically do not instantiate it directly. However, an instance can be created programmatically:

local inst = SpawnPrefab("voidcloth")
if inst and inst.components.stackable then
inst.components.stackable:SetStackSize(5)
end

Dependencies & tags

Components used: inspectable, inventoryitem, stackable, hauntable Tags: None identified.

Properties

PropertyTypeDefault ValueDescription
maxsize (via stackable component)numberTUNING.STACK_SIZE_MEDITEMMaximum number of voidcloths allowed per stack.

Main functions

None.

Events & listeners

None.