NPC Fluid Layers
Estimated reading time: 3 minutesOverview
The NPC fluid layer system lets mod authors render bodily fluid effects on NPC Sidebar dynamic mannequins, including drip animations and static residue. The system manages fluid data via NPCFluids and automatically applies the corresponding fluid layers in the sidebar.
Fluid Parts
NPCFluids supports the following body parts:
Each part's fluid value ranges from 0 to 5:
0= No fluid1= Slight2= Light3= Moderate4= Heavy5= Very heavy
NPCFluids API
NPCFluids is a singleton object for managing all NPC fluid data.
Get Fluid Data
Set Fluid Value
Add / Reduce Fluid Value
Clear Fluids
Global Decay
Sidebar Fluid Layers
Fluid layers are pre-registered NPC Sidebar layers. They require no extra configuration in boot.json. As long as an NPC uses dynamic model mode, fluid layers are applied automatically.
Layer List
Drip Animation Layers
Drip animations select a speed variant based on the fluid value (1–5):
Static Residue Layers
Where {n} is the fluid level number (1–5).
Layer Config Structure
Fluid layer rendering callbacks are generated by factory functions in fluids_layers.ts, following the same layer config structure as the NPC Sidebar:
Visibility Rules
- Face (
face): Must not be covered bymaskorface_coveringclothing type - Mouth (
mouth): Must not be face-covered - Left arm (
leftarm): Arm must not be innoneorcoverpose - Right arm (
rightarm): Arm must not be innone,cover, orholdpose
Image Asset Paths
Fluid images are located in the BeautySelectorAddon image directory:
Related Documentation
- NPC Sidebar — Sidebar display system
- NPC Registration — NPC registration and base configuration
