๐ Integration: Wiring Skills to Items and MythicMobs โ
QS itself listens to no keypress, draws no particle, and computes no damage โ it is a "skill brain" sandwiched between "item input" and "MythicMobs execution." That makes this Integration chapter the most important section of the whole system: it answers two things โ how a keypress / item use / NPC click turns into "cast a particular QS skill," and how a skill, once fired, gets particles, movement, and damage.
There are three paths to wire a skill onto an item: โ the QinhItems native handler (handler: qinhskills:cast, most full-featured, can carry a JSON payload), โก the command bridge (usable by any plugin that can run qs cast), and โข the MythicMobs execution backend (the presentation layer everyone must configure). โ and โก are mutually exclusive "trigger entry points," while โข is the "presentation" everyone needs โ whichever trigger you use, you must ultimately write a same-named skill in MM.
The prerequisite for the whole chapter is one four-way division-of-labor iron rule: the item handles "the press," QS handles "whether it can fire," MythicMobs handles "what it looks like when it fires," and the attribute plugin (AttributePlus) handles "how much damage it deals" โ each owning one segment, none stealing another's authority. Suggested reading order: start with the Integration Overview for the big picture and decision tables; if you're new, read the "why not call MM directly" opening of Integrating MythicMobs to understand the architectural motivation; then pick a trigger approach based on your item plugin; finally use Execution chain and events to understand the full chain and learn to diagnose.
In this section โ
- ๐บ๏ธ Integration Overview: three approaches โ The four-way division-of-labor iron rule, the three trigger approaches, the dependency-degradation table, and the "which page should I read for plugin X" decision table.
- โ๏ธ Integrating QinhItems (native handler) โ Use
handler: qinhskills:castto cast skills on keypress in QI items, with the expanded form, atom mappings, and a complete template. - ๐ฒ Integrating MythicMobs (execution backend) โ Explains thoroughly "why insert a QS layer" + teaches you to write skill presentation in MM (particles / damage / target / variables).
- ๐ Integrating other item plugins โ Use the command bridge
qs castto trigger skills from any plugin: NeigeItems / MMOItems / NPC / GUI, and more. - ๐ Execution chain and events โ The full chain from keypress to MM, events such as
QISkillUseEvent, and how to diagnose problems when they arise.