03-item Cursor ruleA

03-item from guguzea/mc-ai-coding-assistant-tool is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/03-item.mdc@git:20260819.ca99162

Pins git:20260819.ca99162 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
Cursor rule
Repository
guguzea/mc-ai-coding-assistant-tool
Path
fabric/1.14.4/.cursor/rules/03-item.mdc
Versions recorded
2
Latest version
git:20260819.ca99162, committed Aug 19, 2026
First version recorded
Jul 11, 2026
Size
7,019 bytes
Repository stars
135
License
a license file GitHub does not identify

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 03 — 物品开发

> 适用版本:Fabric 1.14.4
> Yarn:[`Item.mapping`](https://github.com/FabricMC/yarn/blob/1.14.4/mappings/net/minecraft/item/Item.mapping)、[`FoodComponent.mapping`](https://github.com/FabricMC/yarn/blob/1.14.4/mappings/net/minecraft/item/FoodComponent.mapping)、[`ToolMaterial.mapping`](https://github.com/FabricMC/yarn/blob/1.14.4/mappings/net/minecraft/item/ToolMaterial.mapping)

---

## 约束

### 核心原则

- 物品必须在 `Registry.register(Registry.ITEM, id, item)` 中注册
- mod ID 使用 `new Identifier(MOD_ID, "name")` 构造
- **禁止**通过 `new Item()` 后不注册的方式使用
- Yarn `Item.Settings` 默认 `maxCount(64)`、`maxDamage` 为 0(不可损坏)。不要写 MCP `Item.Properties` / `maxStackSize`,也不要说默认耐久是 `Integer.MAX_VALUE`

---

## Decision Flow

### Decision: 选择物品类型

```
IF 只是手持物品(无特殊行为)
  → new Item(new Item.Settings())

IF 是工具(剑/镐/斧/铲)
  → SwordItem / PickaxeItem / AxeItem / ShovelItem(镐斧铲的公共父类是 MiningToolItem)
  → 不要 DiggerItem(那是后期 Yarn 名)

IF 是盔甲
  → 使用 ArmorItem + ArmorMaterial

IF 是食物
  → Item.Settings.food(FoodComponent)

IF 是可耐久工具
  → Settings.maxDamage(...);工具材质实现 ToolMaterial(含 getRepairIngredient)

IF 需要自定义行为
  → 继承 Item 并重写 use()、useOnBlock()、useOnEntity() 等
```

---

## 基本物品

```java
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/03-item.mdc@sha256:0ab0f6c0a1ed7035

The line at the top of this page pins the label git:20260819.ca99162, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ae3nsaivqnh2qi46.svg)](https://markdownregistry.com/a/art_ae3nsaivqnh2qi46)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Jul 11, 2026 and Aug 19, 2026, about one every 39 days.

versioncommittedcommitsizeaudit
git:20260819.ca99162 latest2026-08-19 ca99162 7,019 BA view · diff
git:20260711.586c86f2026-07-11 586c86f 4,794 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (7019 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

guguzea/mc-ai-coding-assistant-tool · 135 stars · license a license file GitHub does not identify · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ae3nsaivqnh2qi46
GET https://markdownregistry.com/api/v1/resolve?ref=guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/03-item.mdc
GET https://markdownregistry.com/api/v1/blob/0ab0f6c0a1ed70355d1e80ef063319be4b8bc9266e1e34b7f73f0009e70b8a4d

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: Cursor rules vs AGENTS.md · which agent file does what.

More from guguzea/mc-ai-coding-assistant-tool

AGENTS.md AGENTS.md file
guguzea/mc-ai-coding-assistant-tool · AGENTS.md
git:20261105.a32e7f9 · audit A · 135 stars
mc-addon-manifest SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-addon-manifest/SKILL.md · 基岩 manifest.json。触发词:format_version、min_engine_version、modules、capabilities、uuid
git:20260814.76af98c · audit A · 135 stars
mc-addon-setup SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-addon-setup/SKILL.md · 基岩 Add-On 工程结构。触发词:com.mojang、development_behavior_packs、RP/BP、Add-On 从零
git:20260827.8ccbbc4 · audit A · 135 stars
mc-bedrock-block-item SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-bedrock-block-item/SKILL.md · 基岩方块/物品 JSON。触发词:minecraft:block、minecraft:item、block-components、custom die
git:20260814.76af98c · audit A · 135 stars
mc-bedrock-entity SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-bedrock-entity/SKILL.md · 基岩实体 RP/BP 成对。触发词:client_entity、minecraft:entity、entity-components
git:20260827.8ccbbc4 · audit A · 135 stars
mc-bedrock-worldgen SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-bedrock-worldgen/SKILL.md · 基岩世界生成 JSON。触发词:feature、biome、jigsaw、worldgen
git:20260827.8ccbbc4 · audit A · 135 stars
mc-behavior-pack SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-behavior-pack/SKILL.md · 基岩行为包 BP。触发词:minecraft:block、minecraft:item、minecraft:entity、validate_bp_json
git:20260827.8ccbbc4 · audit A · 135 stars
mc-molang SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-molang/SKILL.md · 基岩 Molang。触发词:Molang、query.last_hit_by_player、q.、math.sin
git:20260814.76af98c · audit A · 135 stars
mc-publish-addon SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-publish-addon/SKILL.md · 基岩发布 mcpack/mcaddon。触发词:.mcpack、.mcaddon、市场、BDS、Preview
git:20260827.8ccbbc4 · audit A · 135 stars
mc-resource-pack SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-resource-pack/SKILL.md · 基岩资源包 RP。触发词:terrain_texture、item_texture、client_entity、attachables、sounds.json
git:20260827.8ccbbc4 · audit A · 135 stars
mc-script-api SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.agents/skills/mc-script-api/SKILL.md · 基岩 Script API。触发词:@minecraft/server、world.afterEvents、Beta APIs
git:20260827.8ccbbc4 · audit A · 135 stars
mc-addon-manifest SKILL.md skill
guguzea/mc-ai-coding-assistant-tool · bedrock/.continue/skills/mc-addon-manifest/SKILL.md · 基岩 manifest.json。触发词:format_version、min_engine_version、modules、capabilities、uuid
git:20260827.8ccbbc4 · audit A · 135 stars

Every file in guguzea/mc-ai-coding-assistant-tool

Browse by kind, by grade A, or by owner.