cst-weapon-detect

Detect weapon usage types via Valheim base type, prefab name, and weapon name.

1|Updated Jul 15, 2025
One-click install
npx skills add https://github.com/KorCaptain/Valheim_Captain_SkillTree --skill cst-weapon-detect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cst-weapon-detect
Source: https://github.com/KorCaptain/Valheim_Captain_SkillTree/tree/main/.claude/skills/cst-weapon-detect
Command: npx skills add https://github.com/KorCaptain/Valheim_Captain_SkillTree --skill cst-weapon-detect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detect weapon usage types to drive weapon-aware logic in CaptainSkillTree.

Core Features & Use Cases

  • Three-step detection priority (Valheim base type → prefab name → weapon name) to reliably classify weapons across mods.
  • Uses the WeaponHelper class exclusively to perform weapon checks, ensuring consistent behavior and avoiding duplicate methods.
  • Supports vanilla and modded weapons, and logs a debug message if all checks fail for easier troubleshooting.

Quick Start

Initialize or call the detection logic within your weapon handling flow, ensuring WeaponHelper is available.

Frequently Asked Questions about cst-weapon-detect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect weapon types in a Valheim mod to trigger combat logic?

Weapon detection in Valheim mods can classify daggers, swords, bows, and shields by checking weapon types through a dedicated WeaponHelper class. This applies during combat to drive weapon-aware logic.

How does weapon detection handle custom weapons added by other Valheim mods?

Weapon detection for modded weapons uses a three-level priority system: checking the Valheim base type, then the prefab name, and finally the weapon name to reliably classify custom gear.

What causes weapon type detection to fail during equipment checks in Valheim?

Weapon type detection fails when all three classification levels—Valheim base type, prefab name, and weapon name—do not match. The system then logs a debug message for troubleshooting.

Do I need a specific class to perform weapon checks in Valheim modding?

Yes, weapon checks require the WeaponHelper class exclusively. This ensures consistent behavior across combat and equipment checks while avoiding duplicate methods in your weapon handling flow.

What is the best way to classify weapons across different Valheim mods?

The best way to classify weapons across mods is a three-step priority detection method: checking the Valheim base type first, followed by the prefab name, and then the weapon name.