Main page:
Modding
This page contains modding information about
items added by this mod, including item builders, item scripts, weapon abilities, etc.
Note: Read more about item and object build scripts here: Alta Item Builders
Most items in this mod use a custom item builder. It extracts as much information as possible from an asset and calculates params and tooltips based on them.
It is currently used for:
/items/buildscripts/alta/item.luaRefer to the builder file for more documentation.
More info: Alta Item Builders - Items
All listed parameters are optional.
| Parameter | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| `level` | 1 | Item level. Will not be overridden by custom levels if `fixedLevel` is set to `true`. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| `price` | 0 | Can be fixed if `fixedPrice` is `true`, or level-dependant. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| `race` | `nil` | Will be displayed in a tooltip if set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| `fixedLevel` | `true` | Prevents the level param from being overwritten with custom values. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| `fixedPrice` | `false` | If false, the price will be calculated based on level using `itemLevelPriceMultiplier` calc function. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| `damageLevelMultiplier` | 1.0 | Calculates based on item level using the `weaponDamageLevelMultiplier` calc function. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| `elementalType` | `"physical"` | Can match any existing element, just like with original Starbound weapons. If set, replaces the `| `primaryAbility` | `nil` | Primary ability, supports `elementalConfig`. Not used by majority of items. | `altAbility` | `nil` | Special ability, supports `elementalConfig`. Not used by majority of items. | `palette` | `nil` | Used for color swaps like with original Starbound weapons. | `colorIndex` | 1 | Used for color swaps like with original Starbound weapons. | `baseDps` or `primaryAbility.baseDps` | 0 | Item's DPS. If set, will be displayed in some tooltips. | `fireTime` or `primaryAbility.fireTime` | 0.0 | Item's general Fire Rate. If set, will be displayed in some tooltips. | `energyUsage` or `primaryAbility.energyUsage` | 0 | Item's general Energy Usage. If set, will be displayed in some tooltips. | `baseShieldHealth` | 0.0 | Item's leveled Shield Health. If set, will be displayed in some tooltips. | `cooldownTime` | 0 | Item's general Cooldown Time. If set, will be displayed in some tooltips. | `knockback` | 0 | Item's general Knockback. If set, will be displayed in some tooltips. | `minActiveTime` | 0 | Item's general Min Time. If set, will be displayed in some tooltips. | `perfectBlockTime` | 0 | Item's general Parry Time. If set, will be displayed in some tooltips. | `forceWalk` | `false` | Item's general "Heaviness" determinator, used in shields to determine whether it will force you to walk when raise. Not currently displayed. | `primaryAbility.name` | `"unknown"` | Primary ability name for tooltips. | `primaryAbility.description` | `""` | Primary ability description for tooltips. | `altAbility.name` | `"unknown"` | Special ability name for tooltips. If not set, tries to use the ability default first, and only then the default mentioned here. | `altAbility.description` | `""` | Special ability description for tooltips. | `passiveAbility.name` | `"unknown"` | Passive ability name for tooltips. Will replace Special if set. | `passiveAbility.description` | `""` | Passive ability description for tooltips. Will replace Special if set. | `upgradeParameters` | `nil` | For upgrades: [Weapons: Upgrades](https://ceterai.github.io/MyEnternia/Wiki/AltaWeaponry#upgrades). | `upgradeParameters.shortdescription` | `nil` | Upgrade name for tooltips. | [Weapons](https://ceterai.github.io/MyEnternia/Wiki/Weapons)
Most [weapons and shields](https://ceterai.github.io/MyEnternia/Wiki/Weapons) in this mod use a custom item builder, custom logic and custom abilities.
The builder used is the same mentioned in the previous section.
### Weapon Builder Parameters
Weapons and shields support the same parameters as in [Supported Item Parameters](#supported-item-parameters).
### Abilities
Used custom weapon scripts and abilities can be found here:
Weapon Base:
- [`/items/active/weapons/ct_alta_weapon.lua`](https://github.com/Ceterai/Enternia/blob/main/items/active/weapons/ct_alta_weapon.lua)
Melee Bases:
- [`/items/active/weapons/melee/alta/melee.lua`](https://github.com/Ceterai/Enternia/blob/main/items/active/weapons/melee/alta/melee.lua)
- [`/items/active/weapons/melee/alta/enhanced.lua`](https://github.com/Ceterai/Enternia/blob/main/items/active/weapons/melee/alta/enhanced.lua)
- [`/items/active/weapons/melee/alta/special.lua`](https://github.com/Ceterai/Enternia/blob/main/items/active/weapons/melee/alta/special.lua)
Ranged Bases:
- [`/items/active/weapons/ranged/alta/ranged.lua`](https://github.com/Ceterai/Enternia/blob/main/items/active/weapons/ranged/alta/ranged.lua)
- [`/items/active/weapons/ranged/alta/rifle.lua`](https://github.com/Ceterai/Enternia/blob/main/items/active/weapons/ranged/alta/rifle.lua)
Special Ranged Abilities:
- [`/items/active/weapons/ranged/alta/abils/chakram/chakram.lua`](https://github.com/Ceterai/Enternia/blob/main/items/active/weapons/ranged/alta/abils/chakram/chakram.lua)
- [`/items/active/weapons/ranged/alta/abils/grapple/grapple.lua`](https://github.com/Ceterai/Enternia/blob/main/items/active/weapons/ranged/alta/abils/grapple/grapple.lua)
- [`/items/active/weapons/ranged/alta/abils/orbs/orbs.lua`](https://github.com/Ceterai/Enternia/blob/main/items/active/weapons/ranged/alta/abils/orbs/orbs.lua)
Read more about supported weapon abilities: [Weapon Mechanics](https://ceterai.github.io/MyEnternia/Wiki/AltaWeaponry#mechanics)
## Objects
Most objects in this mod use a custom item builder. It enhances the item builder mantioned above.
The builder is located here: [`/items/buildscripts/alta/object.lua`](https://github.com/Ceterai/Enternia/blob/main/items/buildscripts/alta/object.lua)
### Object Builder Parameters
More info: [Alta Item Builders - Objects](https://github.com/Ceterai/Enternia/blob/main/items/buildscripts/alta/README.md#objects)
All listed parameters are optional.
[Perfect Cooking](https://ceterai.github.io/MyEnternia/Wiki/PerfectCooking) mechanic.
## Monster Spawners
[Monster Spawners](https://ceterai.github.io/MyEnternia/Wiki/Spawners) in this mod use a custom item builder.
The builder is located here: [`/items/buildscripts/alta/spawner.lua`](https://github.com/Ceterai/Enternia/blob/main/items/buildscripts/alta/spawner.lua)
### Spawner Builder Parameters
More info: [Alta Item Builders - Spawners](https://github.com/Ceterai/Enternia/blob/main/items/buildscripts/alta/README.md#spawners)
All listed parameters are optional except for `asset`.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||