Module Functions
Module functions change an item at the Tech Table. They go in the effects of a module, or in the functions of a Customize slot or button. Entries marked "Modules only" can't be used in Customize files. On a suit module, powers and attribute bonuses go on the chestplate (or the first piece the suit has) and the other functions go on every piece, unless pieces says otherwise.
10 listed · Argon 1.1.0
Add Power
Gives the item a Palladium power while it is in one of the listed slots. The power is taken away when the function stops applying.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
power | Identifier | The power to give. | ✓ | / |
slots | String, String[] | Player slots such as mainhand, chest or curios:body. | ✗ | The slots the item already gives powers in, else its equipment slot, else mainhand |
pieces | String[] | On a suit module, the armor pieces it goes on: head, chest, legs, feet. | ✗ | See above |
Attribute Modifier
Adds an attribute bonus while the item is worn or held. On a module the amount is multiplied by the installed level.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
attribute | Identifier | The attribute to change. | ✓ | / |
amount | Double | How much to change it by. | ✓ | / |
operation | add_valueadd_multiplied_baseadd_multiplied_total | How the amount is applied. | ✗ | add_value |
slots | String, String[] | mainhand, offhand, hand, head, chest, legs, feet, armor, body, any, or curios:<slot>. | ✗ | The curios slot the item gives powers in, else its equipment slot, else mainhand |
pieces | String[] | On a suit module, the armor pieces it goes on: head, chest, legs, feet. | ✗ | See above |
Copy Component
Copies a data component from the inserted item to the base item, for example a dye color. Only does something in a Customize slot, where there is an inserted item.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
component | Identifier | The component written on the base item. | ✓ | / |
from | Identifier | The component read from the inserted item. | ✗ | The value of component |
pieces | String[] | On a suit module, the armor pieces it goes on: head, chest, legs, feet. | ✗ | See above |
Custom Value
Modules only. Stores a named number on the item that depends on which material was used. Each level adds its own number. Read it with the argon:item_custom_value value.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
key | Identifier | The name the number is stored under. | ✓ | / |
values | Object[] | Entries with item (an ingredient) and value (a whole number). | ✗ | [] |
fallback | Integer | The number used when no entry matches. | ✗ | 0 |
tooltip | String | A tooltip line, with %s for the total. | ✗ | / |
Energy Capacity
Modules only. Raises the energy capacity of an item that stores energy.
Fluid Capacity
Modules only. Raises the capacity of an item that stores fluid, up to the item's own maximum.
Integer Component
Modules only. Sets a whole number data component to the level multiplied by per_level.
Item ID To Component
Writes the inserted item's name (the part after the namespace) to a text component. Nothing is written if the name does not start with strip_prefix. Only does something in a Customize slot.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
component | Identifier | A text data component. | ✓ | / |
strip_prefix | String | Text removed from the start of the name. | ✗ | Empty |
pieces | String[] | On a suit module, the armor pieces it goes on: head, chest, legs, feet. | ✗ | See above |
Set Component
Sets any data component on the item. When the function stops applying, the component goes back to the item's default.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
component | Identifier | The component to set. | ✓ | / |
value | Any | The value, written the way the component is written in an item file. | ✓ | / |
clears | Identifier[] | Other components reset along with this one. | ✗ | [] |
pieces | String[] | On a suit module, the armor pieces it goes on: head, chest, legs, feet. | ✗ | See above |
Tooltip
Adds a line to the item's tooltip.