Skip to content

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

Mod Content

Script Documentation

(apologies for all the missing guides, we'll get to them at some point)

Clone this wiki locally