7 enchantment syntax error examples: count order, typos, old NBT

Common errors seen in prod:
- Count before brackets: sword 1[enchantments=...] → sword[enchantments=...] 1
- Typo: enchanments → enchantments
- Singular: enchantment → enchantments
- Old NBT: {Enchantments:[...]} → [enchantments={...}]
- Old abbreviated: {ench:[...]} → [enchantments={...}]

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 22:20:33 -04:00
parent a3d139e04f
commit b75a737c11
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -2208,3 +2208,10 @@
{"id": "audit-prod-0809", "source": "sudo_log", "category": "command_gen", "input": {"user_message": "sudo make the other player float", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08", "ZeroInjustice"], "player_details": {}, "time_of_day": "unknown", "weather": "unknown", "world_border": null, "player_position": {"x": -140, "y": 96, "z": -218}}}, "output": {"reasoning": "Live prod interaction from slingshooter08 via sudo mode.", "commands": ["summon fireball ~ ~10 ~ {Power:[0,1,0],ExplosionPower:0}"], "message": null, "safety_flags": []}, "metadata": {"difficulty": "medium", "validated": false, "extracted_from": "training audit log (prod)", "scoring_mode": "strict"}}
{"id": "audit-prod-0810", "source": "sudo_log", "category": "command_gen", "input": {"user_message": "sudo give me a fire bow", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08", "ZeroInjustice"], "player_details": {}, "time_of_day": "unknown", "weather": "unknown", "world_border": null, "player_position": {"x": -143, "y": 76, "z": -214}}}, "output": {"reasoning": "Live prod interaction from ZeroInjustice via sudo mode.", "commands": ["give ZeroInjustice minecraft:bow[enchantments={flame:1,unbreaking:3}] 1"], "message": null, "safety_flags": []}, "metadata": {"difficulty": "medium", "validated": false, "extracted_from": "training audit log (prod)", "scoring_mode": "strict"}}
{"id": "audit-prod-0811", "source": "sudo_log", "category": "command_gen", "input": {"user_message": "sudo tp me to a jungle temple", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08", "ZeroInjustice"], "player_details": {}, "time_of_day": "unknown", "weather": "unknown", "world_border": null, "player_position": {"x": -140, "y": 147, "z": -227}}}, "output": {"reasoning": "Live prod interaction from ZeroInjustice via sudo mode.", "commands": ["execute at ZeroInjustice run tp ZeroInjustice ~ ~100 ~"], "message": null, "safety_flags": []}, "metadata": {"difficulty": "medium", "validated": false, "extracted_from": "training audit log (prod)", "scoring_mode": "strict"}}
{"id": "err-enchant-order-000", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Count must come AFTER the item and components, not between item and brackets", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword 1[enchantments={sharpness:5}]"], "error": "Count must come AFTER the item and components, not between item and brackets"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-001", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Components attach to the item ID directly, count goes last", "commands": ["give slingshooter08 minecraft:netherite_pickaxe[enchantments={efficiency:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:netherite_pickaxe 1[enchantments={efficiency:5}]"], "error": "Components attach to the item ID directly, count goes last"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-002", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Brackets must follow item ID with no space or count between", "commands": ["give slingshooter08 minecraft:bow[enchantments={power:5,infinity:1}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:bow 1[enchantments={power:5,infinity:1}]"], "error": "Brackets must follow item ID with no space or count between"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-003", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Typo: enchanments -> enchantments", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword[enchanments={sharpness:5}] 1"], "error": "Typo: enchanments -> enchantments"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-004", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Wrong key: enchantment -> enchantments (plural)", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword[enchantment={sharpness:5}] 1"], "error": "Wrong key: enchantment -> enchantments (plural)"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-005", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Old NBT format. 1.21 uses [enchantments={name:level}] not {Enchantments:[...]}", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword{Enchantments:[{id:sharpness,lvl:5}]} 1"], "error": "Old NBT format. 1.21 uses [enchantments={name:level}] not {Enchantments:[...]}"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-006", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Old abbreviated NBT. 1.21 uses component syntax [enchantments={name:level}]", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword{ench:[{id:sharpness,lvl:5}]} 1"], "error": "Old abbreviated NBT. 1.21 uses component syntax [enchantments={name:level}]"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
+7
View File
@@ -0,0 +1,7 @@
{"id": "err-enchant-order-000", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Count must come AFTER the item and components, not between item and brackets", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword 1[enchantments={sharpness:5}]"], "error": "Count must come AFTER the item and components, not between item and brackets"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-001", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Components attach to the item ID directly, count goes last", "commands": ["give slingshooter08 minecraft:netherite_pickaxe[enchantments={efficiency:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:netherite_pickaxe 1[enchantments={efficiency:5}]"], "error": "Components attach to the item ID directly, count goes last"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-002", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Brackets must follow item ID with no space or count between", "commands": ["give slingshooter08 minecraft:bow[enchantments={power:5,infinity:1}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:bow 1[enchantments={power:5,infinity:1}]"], "error": "Brackets must follow item ID with no space or count between"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-003", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Typo: enchanments -> enchantments", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword[enchanments={sharpness:5}] 1"], "error": "Typo: enchanments -> enchantments"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-004", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Wrong key: enchantment -> enchantments (plural)", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword[enchantment={sharpness:5}] 1"], "error": "Wrong key: enchantment -> enchantments (plural)"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-005", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Old NBT format. 1.21 uses [enchantments={name:level}] not {Enchantments:[...]}", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword{Enchantments:[{id:sharpness,lvl:5}]} 1"], "error": "Old NBT format. 1.21 uses [enchantments={name:level}] not {Enchantments:[...]}"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}
{"id": "err-enchant-order-006", "source": "manual", "category": "negative", "input": {"user_message": "sudo give me an enchanted diamond sword", "server_context": {"server_type": "paper", "version": "1.21.x", "online_players": ["slingshooter08"]}}, "output": {"reasoning": "Old abbreviated NBT. 1.21 uses component syntax [enchantments={name:level}]", "commands": ["give slingshooter08 minecraft:diamond_sword[enchantments={sharpness:5}] 1"], "safety_flags": []}, "negative_output": {"commands": ["give slingshooter08 minecraft:diamond_sword{ench:[{id:sharpness,lvl:5}]} 1"], "error": "Old abbreviated NBT. 1.21 uses component syntax [enchantments={name:level}]"}, "metadata": {"difficulty": "medium", "validated": true, "risk_level": 3}}