mixin-writing

Write SpongePowered Mixins with MixinExtras injectors and precise @Expression targeting.

5|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/muon-rw/MixinMCP --skill mixin-writing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mixin-writing
Source: https://github.com/muon-rw/MixinMCP/tree/main/src/main/resources/inject/cursor/skills/mixin-writing
Command: npx skills add https://github.com/muon-rw/MixinMCP --skill mixin-writing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Writing SpongePowered Mixins for Minecraft mods frequently causes cross-mod compatibility conflicts, fragile bytecode targeting that breaks across game versions, and runtime errors from incorrect injector usage or missing best practices.

Core Features & Use Cases

  • Chainable Injector Guidance: Prioritizes MixinExtras injectors over vanilla non-chaining patterns to ensure multiple mods can safely target the same method without silent conflicts.
  • Precise Targeting Support: Provides clear rules for choosing between standard @At injection points and MixinExtras @Expression annotations to eliminate fragile ordinal-based or offset-based targeting.
  • Comprehensive Best Practice Coverage: Includes guidance for local variable capture, value sharing between handlers, accessor/invoker patterns, interface injection, and common pitfall avoidance for all mixin development scenarios.
  • Use Case Example: A mod developer writing a mixin to modify entity fall behavior can use this skill to select the correct @ModifyExpressionValue injector with an @Expression targeting the fall distance check, ensuring compatibility with other mods that modify the same entity tick method.

Quick Start

Use the mixin-writing skill to review your existing mixin for the entity damage method and recommend the most compatible MixinExtras injector and targeting approach for your modification.

Frequently Asked Questions about mixin-writing

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

FAQPage Schema
How do I fix cross-mod compatibility conflicts in Minecraft mixins?

Cross-mod compatibility conflicts in Minecraft mixins are fixed by prioritizing chainable MixinExtras injectors over vanilla non-chaining patterns to ensure multiple mods can safely target the same method without silent conflicts.

What's the best way to target bytecode in a mixin without breaking across game versions?

The best way to target bytecode is using MixinExtras @Expression annotations instead of fragile ordinal-based or offset-based @At injection points to eliminate targeting errors across game versions.

How do I choose the right injector for modifying entity behavior in Minecraft mod development?

Choosing the right injector for modifying entity behavior involves evaluating MixinExtras chainable injectors like @ModifyExpressionValue to ensure compatibility when multiple mods modify the same entity tick method.

Does MixinExtras support local variable capture and accessor patterns for Minecraft mixins?

MixinExtras supports local variable capture, value sharing between handlers, and accessor/invoker patterns for interface injection, providing comprehensive best practice coverage for all Minecraft mixin development scenarios.

Why does my mixin cause a runtime error when targeting the same method as another mod?

Your mixin causes a runtime error because vanilla non-chaining injectors fail when multiple mods target the same method, requiring MixinExtras chainable injectors to resolve the cross-mod compatibility conflict.