-
Couldn't load subscription status.
- Fork 1
Registrations
Mackenzie McClane edited this page Feb 6, 2020
·
1 revision
Registrations are the main way to add new content to the game.
@Register.item("argus", {
attack: 1,
damageType: DamageType.Blunt,
equip: EquipType.Held,
onEquip: item => Argus.INSTANCE.onEquip(item),
onUnequip: item => Argus.INSTANCE.onUnequip(item),
use: [Registry<Argus>().get("actionSeeAll")],
recipe: {
components: [
RecipeComponent(ItemType.Lens, 2, 2, 2),
RecipeComponent(ItemType.Log, 1, 1, 1),
RecipeComponent(ItemType.String, 1, 1, 1),
RecipeComponent(ItemTypeGroup.Sharpened, 1, 0),
],
skill: SkillType.Tinkering,
level: RecipeLevel.Advanced,
reputation: 10,
},
disassemble: true,
durability: 500,
})
public itemArgus: ItemType;An item registration excerpt from the mod Argus.
(todo)
Getting Started
- Introduction
- Prerequisites
+mod create&+mod update- mod.json
- Extracting Assets
- Resources & Examples
- Frequently Asked Questions
Mod Content
Script Documentation
- Using Translations
- Registrations
- Event Handlers
- Injection
- Adding Items
- Adding Doodads
- Adding Creatures
- Adding Magical Properties
- Actions & Multiplayer
- Adding Dialogs
- Context Menu/Action Bar Actions
- Inter-mod Registries
(apologies for all the missing guides, we'll get to them at some point)