Custom Weapon: Ember Axe
ExampleMod builds Ember Axe from AXE_BANDIT_LIGHT_01. Its gameplay recipe demonstrates a main-hand weapon, stat modifiers, an existing immunity, a custom ability, a native ability, and a shuffled ability bag.
var gameplay = new ItemGameplayOverrides(
2, 3, ItemRarity.Rare, false, 0, ItemUseContext.None,
new ItemEquipmentOverride(
new[] { ItemEquipmentSlot.MainHand },
new[] {
new ItemStatModifier(ItemStat.ATK, 18),
new ItemStatModifier(ItemStat.CRT, 12),
new ItemStatModifier(ItemStat.EVD, 5),
},
new[] { "STATUS_IMMUNITY_FIRE" },
maxCharges: -1),
new ItemInteractionOverride(
new[] {
new ItemAbilityReference(
"community.example:flame_cleave",
new ItemSkillRoll(.5m, 1m, 0, ItemStat.STR, 3)),
new ItemAbilityReference(
"AXE_HEAVY_ATTACK",
new ItemSkillRoll(0m, 1.5m, -20, ItemStat.STR, 4)),
},
new[] {
"community.example:flame_cleave",
"community.example:flame_cleave",
"AXE_HEAVY_ATTACK",
},
true));
ItemDefinition emberAxe = draft!
.WithValue(210)
.WithGameplay(gameplay)
.WithLocalization(nameId, descriptionId);
Activate Flame Cleave first. Then register and activate Ember Axe as shown in the full tutorial.