.claude/skills/new-item/SKILL.md
Scaffold a complete new Mega Knights item. Creates all required files: BP item JSON, item_texture.json registration, and lang entries in both packs. Use when the user wants to add a new tool, scroll, token, or other custom item to the add-on.
npx skillsauth add henderni/minecraft-mega-knights new-itemInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create all required files for a new Mega Knights item.
$ARGUMENTS
If arguments were provided, parse them (e.g. "siege_horn Siege Horn"). If not, ask the user:
mk_ prefix, e.g. siege_horn)Siege Horn)items, equipment, or nature (default: items)minecraft:use_duration and remind the user to wire a scriptevent handler.Once you have answers, proceed without further prompting.
SHORT_NAME = input without mk_ prefix (e.g. siege_horn)IDENTIFIER = mk:mk_<SHORT_NAME> (e.g. mk:mk_siege_horn)ICON_KEY = mk_<SHORT_NAME> (e.g. mk_siege_horn) — used in item_texture.json and minecraft:iconTEXTURE_PATH = textures/items/<SHORT_NAME> (no extension — Bedrock appends .png automatically)DISPLAY_NAME = input (e.g. Siege Horn)MegaKnights_BP/items/tools/mk_<SHORT_NAME>.json)Base template for a non-wearable tool/scroll/token:
{
"format_version": "1.21.40",
"minecraft:item": {
"description": {
"identifier": "mk:mk_SHORTNAME",
"menu_category": {
"category": "CATEGORY"
}
},
"components": {
"minecraft:icon": "mk_SHORTNAME",
"minecraft:display_name": {
"value": "item.mk:mk_SHORTNAME.name"
},
"minecraft:max_stack_size": STACKSIZE
}
}
}
If the item has on-use behavior (triggers a scriptevent or ability when right-clicked), also add:
"minecraft:use_duration": 1.6,
"minecraft:use_animation": "eat"
Do NOT add
minecraft:food— theeatanimation is used for activation feedback without making the item consumable.
Read MegaKnights_RP/textures/item_texture.json.
Find the "texture_data" object and add a new entry. Keep entries alphabetical by key if possible:
"mk_SHORTNAME": {
"textures": "textures/items/SHORTNAME"
}
Note: The key is ICON_KEY (e.g. mk_siege_horn). The texture path has no file extension.
Use the Edit tool for a surgical insertion — do not rewrite the whole file.
Add this line to both lang files:
MegaKnights_BP/texts/en_US.langMegaKnights_RP/texts/en_US.langitem.mk:mk_SHORTNAME.name=DISPLAY_NAME
Read each file first, then append after the last item.mk: entry to keep it organized.
The texture PNG is not created by this skill. Remind the user:
"Create
MegaKnights_RP/textures/items/<SHORT_NAME>.png(16×16 or 32×32 px). You can copy the closest existing item texture as a starting point."
If the item has on-use behavior, remind the user:
"Wire up the handler in the relevant system file. Listen for
ItemUseOnBeforeEventorItemUseBeforeEventinsrc/systems/<SystemName>.ts, checkevent.item.typeId === 'mk:mk_<SHORT_NAME>', then callsystem.run(() => { ... })for any world mutations."
Run npm run build and report the result. Item files are JSON-only so TS errors are unlikely, but the build confirms the project still compiles cleanly.
After creating files, print a checklist:
✓ MegaKnights_BP/items/tools/mk_<name>.json
✓ item_texture.json — entry added for mk_<name>
✓ Lang entry added to MegaKnights_BP/texts/en_US.lang
✓ Lang entry added to MegaKnights_RP/texts/en_US.lang
⚠ MegaKnights_RP/textures/items/<name>.png — NEEDS MANUAL CREATION
⚠ On-use handler — NEEDS WIRING IN SYSTEM FILE (if applicable)
testing
Capture learnings from the current session and update CLAUDE.md and MEMORY.md. Use after significant work sessions, architectural decisions, or when new patterns/conventions are established.
testing
Save a snapshot of the current working context (what you're doing, key decisions, open questions) to a file that can be loaded in a future session. Use before long breaks, when context is getting large, or before /clear.
development
Write and run tests for changed or specified code. Use when the user says /qa, asks for tests, or wants to validate recent changes. Runs the QA agent in a forked context.
tools
Scaffold a complete new Mega Knights entity. Creates all required files: BP behavior JSON, RP client entity JSON, lang entries in both packs, and optionally spawn rules for naturally-spawning enemies. Use when the user wants to add a new ally or enemy entity to the add-on.