Examples

These examples are adapted from the public-only sections of FTK2.ModAPI.ExampleMod 0.5.9 and checked against the current API:

  • Basic Mod — owner registration and lifecycle;
  • Custom Weapon — Ember Axe equipment, stats, actions, and skill rolls;
  • Custom Armor — Warden Armor defense/resistance and an existing immunity;
  • Custom Consumable — Field Tonic stackability, use context, and a custom ability reference;
  • Custom Ability — the complete Flame Cleave tutorial.

Use your own namespace and validate native template/reference IDs against the supported FTK2 version. Example IDs are not reserved for third-party mods.