Effective Instruments

Effective Instruments adds an aura system to musical instrument mods (Genshin Instruments, Even More Instruments, Immersive Melodies). While you play, nearby allies receive effects from your chosen aura, or swap to offensive to debuff every mob in range.
Back to Files

Effective Instruments 1.7.0 (Forge 1.20.1)

File nameeffectiveinstruments-1.7.0.jar
Uploader
OtectusOtectus
Uploaded
Dec 2, 2026
Downloads
137
Size
916.8 KB
Mod Loaders
Forge
File ID
9973486
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:effective-instruments-1466704:9973486")

Learn more about Curse Maven

What's new

[1.7.0] - 2026-12-02

1.7.0 is the integrated Forge 1.20.1 release. It reconciles the two builds that were both called 1.6.0 — the published CurseForge file 8387034 (SHA-256 9c96e6b0027bcd1923ed374fb8be39d4a27b4b3c9735fb00d68ae220875b7996, protocol 5, datapack loader and client data sync) and the GitHub main lineage (ec4f328, NPC performers) — and includes the Iron's Spells 'n Spellbooks work that was developed as 1.6.1 and never released. Baseline file id, SHA and protocol are recorded in gradle.properties and the jar manifest (EI-Baseline-*).

Added — data, selection and performance

  • Datapack data model (from the published 1.6.0). Presets, instrument mappings and durability ship in the jar under data/effectiveinstruments/effectiveinstruments/aura/{presets,instrument_map,mobile_instrument_map,durability}/ (84 presets, 31 stationary + 11 mobile mappings, 42 durability rows — identical to file 8387034). Packs override them at data/<namespace>/effectiveinstruments/aura/.... The config directory is an optional override layer (general.allowConfigOverrides, default true); nothing is generated or rewritten there any more. Config files earlier versions generated and nobody edited are recognised and no longer mask datapack changes.
  • One validated snapshot. /reload and /effectiveinstruments reload rebuild presets, both mappings, durability, entity classification and the spell catalog together and publish them atomically. A bad file or row is reported with source, key and reason while the rest loads; a preset that breaks keeps its previous valid version; a rebuild that would leave no presets is rejected. Cross-namespace collisions have a fixed order (shipped namespace first, then alphabetical) and every replacement is logged. /effectiveinstruments data shows the layers and problems.
  • Client data sync. The server sends the resolved catalog and its durability view (custom maxima, repair materials, wear policy) on login and after every reload; a client with no matching files shows the server's bars, tooltips and choices. Cleared on disconnect.
  • Default / Off / explicit choices per instrument and tier, persisted per player (and per NPC) in the world (effectiveinstruments_mobile_selections.dat, legacy mobile entries read and still written). Use instrument default follows pack changes; Off is practice mode (the instrument plays, EI adds no aura or spell; wear follows general.practiceModeWearsInstrument). A removed, disabled or wrong-tier saved aura falls back to the default and says so. The server answers every choice (accepted, rejected or throttled) with the authoritative state.
  • Accessible selector. One selector for Genshin/EMI and Immersive Melodies: Default and Off tiles, paging (overlay.maxRows), polarity shown by shape (▲/▼) as well as colour, focus ring, keyboard control with Alt+arrows / Alt+Enter / Alt+PgUp/PgDn (note keys stay free), narration, and a tooltip toggle.
  • Performance status indicator (overlay.showPerformanceStatus): active aura and polarity with targets actually affected, waiting for notes with progress, practising, suppressed mobile playback, broken instrument, auras disabled. Also /effectiveinstruments status for every player (other players: operators).
  • In-game mapping editor (operators). /effectiveinstruments mapping inspect | edit | default | allow | disallow | preview | apply | discard | remove | undo | export with suggestions. Edits are validated like pack data, stored per world in <world>/effectiveinstruments/mapping_overrides.json (top layer), resync every client, survive restart and can be undone; export writes equivalent datapack JSON. general.allowOperatorMappingEdits = false locks them. Players can choose any allowed aura with /effectiveinstruments aura [default|off|<aura>].
  • Safer reset-mappings. reset-mappings [stationary|mobile] [preview|confirm|restore] previews the effect, moves the override file to a timestamped backup and can restore it.
  • Companion bards. /effectiveinstruments bard <entity> [info | mode automatic|quiet | play | aura default|off|<aura>], or sneak + use with an empty hand on an NPC holding an instrument (Automatic → Quiet → play a phrase). Owner or operator only; ownerless performers are operator-only. npcs.companionControls switches it off.
  • Opt-in enemy bards (npcs.enemyBards, tag effective_instruments:enemy_bard): hostile musicians support other hostile mobs and hinder players, villagers and iron golems; owned and tamed animals are left alone. They perform while their target is more than 8 blocks away.
  • Tags now act. never_performer vetoes every adapter; force_performer makes a tagged mob with a playable instrument a performer (still subject to policy); player_proxy_owner stands for its owning player (shares that player's performer cap; as a target it is treated as that player or as the performer's own).
  • Duets ([duets]): two or more nearby performers actively playing support auras get a shared visual accent and an optional chime, once per group per cooldown. Cosmetic only; client toggles visuals.showDuetCues / visuals.duetSound.
  • Offensive presets. offensiveTargeting.preset = FROM_FLAGS (default, unchanged behaviour) | BROAD | HOSTILES_ONLY.
  • Public API. EffectiveInstrumentsAPI.notifyNotePlayed(player, NoteContext) runs the full played-note behaviour (hand or placed block, held-note phases, broken gate, immediate application, wear); the old notifyNotePlayed(player) keeps recording activity only. notifyInstrumentOpen(player, id, hand) binds a session.
  • Instruments item tag effectiveinstruments:instruments (also effective_instruments:instruments) for addon instruments.
  • GameTests that run everywhere. Eight backend-independent GameTests (shipped data, first note, first flute choice, Off, master switch, effect overlap, outside effects) run in CI on a dedicated server.

Fixed — timing and lifecycle

  • First use. "Never" is explicit everywhere (GameClock): the first mobile choice, the first immediate application and the first autoplay discovery all work at any world time, per dimension, and after loading a second world in the same game.
  • Master switch. general.enabled = false now stops every path (immediate notes, mobile pulses, NPCs, API, spells, particles) and releases EI-owned effects; music keeps playing.
  • Immersive Melodies open/close. Closes are never throttled and apply at once; the aura then lingers for mobileTier.lingerTicks before release. State is retired on logout, death, dimension change, NPC removal and server stop; mobile NPCs are ticked in the level they are in.
  • Selections by id. The running aura is re-resolved against the current data, so a reload that changes radius, effects or amplifier applies at once; changing instrument, hand or placed block rebinds the choice and clears the note window.
  • Held notes count once. A GI held note's attack counts; its release never counts, wears or gets cancelled.
  • The instrument actually played. Notes, the broken gate and wear use the hand (or placed block, within reach) the backend reports; a broken off-hand item no longer blocks a healthy main-hand instrument. Accessories (EMI violin bow, bachi, records, looper) are no longer worn: durability applies to explicitly configured items, mapped instruments and the instruments tag, not whole namespaces.
  • Effect contributions are tracked. Only effects a target accepted are recorded, per dimension, target, effect and performer. On stop or switch the strongest surviving contribution of another musician is kept; stronger or longer outside effects are never removed; cleanup reaches the dimension the effect was applied in.
  • Targeting precedence. The ignore tag now beats adapter hints; an OWN_PET + requireTamed override only applies to the musician's own tamed animal; bats and snow golems are passive. entity_classification.json rows are isolated (a bad row no longer discards the file) and delegateTo is reported as reserved.
  • NPC performers play again after cooldown (game-time eligibility), resolve instrument, tier and aura together (an Immersive Melodies instrument enters the mobile path), recheck the session while playing, and release effects, spell session, mobile registration and capacity on every exit. Goal installation is idempotent and a host that rebuilds its goals gets exactly one back.
  • NPC policy enforced. Per-chunk (4), per-owner (8) and server (256) caps with fair waiting, performerScanIntervalTicks, maxTargetsPerTickPerPerformer, allowTargets, respectScoreboardTeams, every adapter's enabled / allowPerformers / allowOffensiveAuras, doggytalents.requireSittingOrDocile, mca.respectRelationships, recruits.respectRecruitsFaction, pehkui.respectScaleForRadius, and the Guard Villagers hero radius (also as owner when the guard is a target). ars_nouveau.allowFamiliars is reported as reserved.
  • Audible NPC performances. NPCs play short phrases of vanilla note sounds at a musical cadence (RECORDS volume slider; npcs.cue*), swinging the hand that holds the instrument, with one wear charge per phrase note.
  • Anvil. Widened arithmetic; prior work on a combine is the larger of both inputs; clearing the name field removes a custom name; repairs that gain nothing produce no recipe; the kept stack retains all its NBT.
  • Mobile free play charges per verified pulse and never runs on a quiet screen; where the free-play hook is unavailable an open screen is a documented, wear-free compatibility mode for legacy auras.
  • Durability rows missing maxDurability no longer read an unloaded SERVER config.
  • Packets are registered with declared directions.

Added — Iron's Spells 'n Spellbooks spell provider

With a supported Iron's Spells 'n Spellbooks release installed (tested: 1.20.1-3.16.3), every shipped instrument aura is replaced in memory by a curated native Iron's spell: 42 instruments, 84 positive and offensive presets, eight spells (Healing Circle, Fortify, Cleanse, Frostwave, Heat Surge, Shockwave, Earthquake, Poison Splash). Files on disk are not rewritten. Full details are in docs/irons-spellbooks-compat.md.

  • Action model and schema 3. AuraPreset gains an action: legacy effects, or irons_spell with spell id, level, placement and minimum interval. Aura JSON schema 3 supports spell-only presets, per-preset "provider" overrides (auto / legacy / irons_spells), strict field types and future-schema skipping. Schema 1/2 files load unchanged.

  • Automatic in-memory replacement. Gameplay fingerprints identify untouched shipped presets (including ones generated by 1.6.0); those resolve to their catalog spell. Customized presets, disabled entries, custom presets, IDs and mappings are preserved. The resolver is deterministic, and no preset runs potion effects and a spell at the same time.

  • One controlled execution model. Stationary and mobile, player and NPC activity all feed one scheduler, with:

    • warmup, a per-performer minimum interval and native cooldowns;
    • a persistent cooldown ledger (effectiveinstruments_spell_cooldowns);
    • tier precedence and a reentrancy guard;
    • at most one commit per performer per tick, within a fair per-dimension budget and with no burst after lag.

    Close/reopen, instrument swaps, aliases, relog and reload cannot bypass a cooldown.

  • Native lifecycle. Each cast runs the spell's own onCast once with scratch MagicData.

    • Players fire one SpellPreCastEvent and one SpellOnCastEvent (CastSource.NONE) and share the native per-spell cooldown.
    • NPCs fire the new cancellable PerformanceSpellCastEvent (api.event, CastSource.MOB).
    • An ordinary spellbook cast is never interrupted.
    • The new resourceMode = MANA_AND_INSTRUMENT charges a player's native mana once per cast.
  • Target-safe native hooks. Two optional, non-required mixin configs carry narrowly scoped hooks. Wave targets, field pulses, the delayed Poison Cloud, healing/shield/cleanse checks and Shockwave's creeper charge all go through EI's policy. Every hook is inert outside an EI cast.

  • Version gate. A config plugin reads the untransformed Iron's class files and verifies the API family (1.20.1-3.16.) and every pinned method and call site before any transformation. On any mismatch all gameplay hooks are skipped and AUTO keeps the legacy auras.

  • Field lifecycle. EI-owned native entities carry cast provenance and are capped per performer. They are removed on close, silence, break, death, logout, dimension change, reload and server stop, and discarded if they ever load from disk again. Ordinary Iron's entities are never touched.

  • Immersive Melodies free-play verification. A server-side hook on NoteBroadcastRequest.handle counts only free-play notes the server actually received. Browsing the melody list never casts.

  • Server-driven UI. The server sends the resolved catalog on login and after every reload or provider refresh, and stale selections resynchronize. Tooltips name the spell, level, cooldown, cost and availability. Native spell icons replace default aura icons for spell auras. A status line shows warmup, cooldown and denial reasons. particlesMode / reducedMotion filter the native particles and camera shake of EI casts per player.

  • Configuration. New [ironsSpellbooks] server section:

    • providerMode, replaceBuiltInDefaults, resourceMode, respectSharedSpellCooldowns;
    • stationary/mobile minimum intervals, warmup, mobile radius multiplier;
    • field-family, owned-entity and per-level commit caps;
    • allowMobTransformations, debugSpells.
  • Diagnostics.

    • /effectiveinstruments spells and spells list [page] show the catalog, provider and hook state, and each aura's resolution with its reason.
    • diagnose and npcs diagnose add the spell session, cooldowns, last outcome, target exclusions by reason and IM free-play evidence.
  • Strict reload. /effectiveinstruments reload builds a complete candidate and publishes it atomically, or rejects it and keeps the last valid snapshot.

  • GameTests. A separate gametest source set, not shipped in the jar, runs native Iron's GameTests with runGameTestServer -PdevRuntimeIrons=true -PdevRuntimeGenshin=true. Dev runtime profiles: -PdevRuntimeGenshin, -PdevRuntimeEmi, -PdevRuntimeIrons, -PdevRuntimeImJar=<path>.

Changed — Iron's integration and targeting

  • Minimum Forge is now 47.4.0, matching Iron's 3.16.3.

  • ignore is a genuine exclusion. Ignored entities are neither buffed nor attacked in either polarity. They were previously only dropped from positive auras.

  • Targeting applies to legacy auras too. Offensive auras no longer reach:

    • the musician, an NPC performer's owner, own pets, sibling summons and allies;
    • teammates with friendly fire off;
    • other players and their pets while PvP is off;
    • summons with unresolved ownership.

    Targets beyond the cap are chosen by category, then distance, then UUID.

  • Immersive Melodies free-play now charges durability per verified pulse, like autoplay. Browsing the melody list stays free.

  • Closing an instrument ends the spell performance at once and removes its EI fields. Native status effects expire naturally.

  • Schema versions. Aura presets may now use schema 3. Generated legacy defaults still declare schema 2 and mapping files keep schema 2, so a downgrade to 1.6.0 still reads them.

Fixed — targeting (Iron's work)

  • Entity-type tags in the documented namespace now apply. The classifier read effectiveinstruments:<tag>, while the shipped defaults and the docs use effective_instruments:<tag>, so datapacks written as documented were ignored. Both namespaces are honored now.
  • Player-side ownership. A player's Iron's summon, Recruits recruit or MCA spouse (any registered owner provider) is the player's own pet in targeting (OWN_PET). Previously it classified as hostile and could be hit by its owner's offensive aura.
  • Duplicate-preset audit. The audit is tier-aware and no longer warns about untouched shipped defaults.