Repository navigation
reference api usable
cheaterbob edited this page Oct 3, 2026
·
1 revision
Generated from
usable.schema.json. Runtime validation remains authoritative for cross-file and engine-dependent rules.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
schemaVersion |
const: 1
|
yes | stable | |
type |
const: usable
|
yes | stable | |
id |
ref: usableId
|
yes | stable | |
displayName |
string | yes | stable | min length: 1
|
extends |
ref: coreUsableId
|
no | stable | |
description |
string | no | stable | |
visual |
ref: visual
|
yes | experimental | |
stats |
ref: stats
|
no | experimental | |
effectMode |
enum: inherit, add, replace
|
no | experimental | default: inherit
|
effects |
array of ref: effect
|
no | experimental | max items: 16
|
Schema form: string.
Constraints: pattern: ^[a-z0-9][a-z0-9._-]*:item/usable/[a-z0-9][a-z0-9._/-]*$.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
| No named properties | This definition is composed through references or conditional schemas. |
Schema form: string.
Constraints: pattern: ^core:item/usable/[a-z0-9][a-z0-9._/-]*$.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
| No named properties | This definition is composed through references or conditional schemas. |
Schema form: string.
Constraints: pattern: ^(?!/)(?!.*(?:^\|/)\.\.(?:/\|$))(?!.*\\).+\.[pP][nN][gG]$.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
| No named properties | This definition is composed through references or conditional schemas. |
Schema form: object.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
type |
enum: coreUsableSprites, originalUsableSprites
|
yes | ||
icon |
ref: pngPath
|
yes | ||
world |
ref: pngPath
|
no | ||
pixelsPerUnit |
number | no | exclusive min: 0; max: 1024; default: 32
|
|
pivotX |
number | no | min: 0; max: 1; default: 0.5
|
|
pivotY |
number | no | min: 0; max: 1; default: 0.5
|
|
colliderWidth |
number | no | exclusive min: 0; max: 16; default: 0.75
|
|
colliderHeight |
number | no | exclusive min: 0; max: 16; default: 0.75
|
|
sortingOrder |
integer | no | min: -1000; max: 1000; default: 0
|
Schema form: array of string.
Constraints: max items: 32.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
| No named properties | This definition is composed through references or conditional schemas. |
Schema form: object.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
weight |
integer | no | min: 0; max: 100000
|
|
value |
integer | no | min: 0; max: 100000000
|
|
equipSeconds |
number | no | min: 0; max: 60
|
|
marketable |
boolean | no | ||
goodEffectDescriptions |
ref: descriptionList
|
no | ||
badEffectDescriptions |
ref: descriptionList
|
no |
Schema form: oneOf.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
| No named properties | This definition is composed through references or conditional schemas. |
Schema form: object.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
type |
enum: restoreHealth, restoreStrength, restoreStamina, reducePleasure, refillAmmo, gainMoney
|
yes | ||
amount |
number | yes | min: 0.01; max: 100000
|
Schema form: object.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
type |
enum: fillAllAmmo, repairClothing
|
yes |
Schema form: object.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
type |
enum: ragdoll, invulnerability
|
yes | ||
durationSeconds |
number | yes | min: 0.01; max: 600
|
Schema form: object.
| Field | Type | Required | Stability | Constraints and meaning |
|---|---|---|---|---|
type |
const: statModifier
|
yes | ||
stat |
enum: HealthMax, SpeedAccel, SpeedMax, Traction, DamageMultiplierGun, SpeedSprint, PowerJump, PowerDash
|
yes | ||
value |
number | yes | min: -100000; max: 100000
|
|
durationSeconds |
number | yes | min: 0.01; max: 3600
|
|
stackable |
boolean | no |
Published from Docs/Modding/Public. The repository documentation is the canonical source.
Captivity Reloaded wiki* Captivity Reloaded Wiki
- Getting started
- Core concepts
- Content types
- Authoring tools
-
Reference
- Example pack index
- Schema index
- Field-by-field API reference
- Public asset-slot catalog
- Core enemy asset slots
- Validation and errors
- Validation/error-code catalog
- Mod API changelog
- Migration guides
- Troubleshooting
- Glossary
- Defaults and compatibility
- Resource limits
- Mod-author test matrix
- Implementation status
- Mod API v1 release checklist
- Release verification runbook
- Release evidence template
- Licensing and redistribution
- Development