Revision Difference
Item_Mods#526801
<cat>Dev.Modding</cat>
<title>Item Mods</title>
⤶
**Keep in mind that there is only a single `ItemMod` per `ItemDefinition`.**
⤶
This means that any changes you make will apply to all active items, not just the `Item` the `ItemMod` is attached to.⤶
⤶
Item mods provide additional functionality to an item.
⤶
<note>Keep in mind that there is only a single `ItemMod` per `ItemDefinition`⤶
⤶
This means that any changes you make will apply to all active items, not just the `Item` the `ItemMod` is attached to.</note>⤶
#ItemModUnwrap
Example: Presents, Loot Bags
| Field | Type | Purpose |
| - | - | - |
| `revealList` | `LootSpawn` | Provides possible items when item is unwrapped
| `minTries` | `int` | Will give a random amount of items from `minTries` - `maxTries`
| `maxTries` | `int` |
Will give out the loot items when `unwrap` is sent as an item action.
___
##Sub Types
`ItemModOpenWrapped` and `ItemModCrackOpen` are used by the clients to change the sound when unwrapping the item.
___
#ItemModUpgrade
Used to combine multiple of an item together into a new one.
Examples: Presents, Loot Bags
#ItemModWrap
#ItemModXMasTreeDecoration
#ItemModRFListener
#ItemModActionChange
#ItemModActionContainerChange
#ItemModAlterCondition
#ItemModAnimalEquipment
#ItemModBlueprintCraft
#ItemModBurnable
#ItemModConditionContainerFlag
#ItemModConditionHasContents
#ItemModConditionHasFlag
#ItemModConditionInWater
#ItemModConditionIsSleeping
#ItemModConsume
#ItemModConsumeContents
#ItemModContainer
#ItemModContainerRestriction
#ItemModCookable
#ItemModCycle
#ItemModEntity
#ItemModGiveOxygen
#ItemModKeycard
#ItemModMenuOption
#ItemModRecycleInto
#ItemModRepair
#ItemModReveal
#ItemModSound
#ItemModStudyBlueprint
#ItemModSwap
#ItemModSwitchFlag
#ItemModUseContent
#ItemModWearable
#ItemModXPWhenUsed