Skip to main content

Pigskin

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

Overview

pigskin is a lightweight, stackable inventory item representing raw pork that spawns naturally in the world (e.g., dropped by Pigs). It supports stacking, floating on water, burning, igniting, and being traded to Pig merchants for gold. It is classified as FOODTYPE.HORRIBLE, indicating it is unsuitable for consumption by most characters.

Usage example

-- Example of creating and configuring a pigskin item programmatically
local inst = SpawnPrefab("pigskin")
inst.components.stackable:SetStackSize(5) -- override default max stack
inst.components.tradable.goldvalue = 10 -- custom trade price

Dependencies & tags

Components used: stackable, inspectable, tradable, inventoryitem, edible, and utility functions MakeInventoryPhysics, MakeInventoryFloatable, MakeSmallBurnable, MakeSmallPropagator, MakeHauntableLaunchAndIgnite. Tags: None explicitly added or checked.

Properties

PropertyTypeDefault ValueDescription
components.stackable.maxsizenumberTUNING.STACK_SIZE_SMALLITEMMaximum stack size (30 items).
components.tradable.goldvaluenumberTUNING.GOLD_VALUES.MEATGold value when traded to pigs.
components.edible.foodtypeenumFOODTYPE.HORRIBLEFood category affecting eatability.

Main functions

No custom methods are defined on this prefab. Its behavior is entirely driven by attached components and prefabricated utility functions.

Events & listeners

None identified.