07-datagen Cursor ruleA
07-datagen from guguzea/mc-ai-coding-assistant-tool is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/07-datagen.mdc@git:20260818.b1ccba0Pins git:20260818.b1ccba0 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/07-datagen.mdc- Versions recorded
- 2
- Latest version
- git:20260818.b1ccba0, committed Aug 18, 2026
- First version recorded
- Jul 11, 2026
- Size
- 2,651 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
# 07 — 数据生成器
> 适用版本:Fabric 1.14.4
---
## 约束
### 核心原则
- Fabric 1.14.4 **没有** `fabric-datagen` / `DataGeneratorEntrypoint`(那是 1.17+)
- 配方、战利品表、标签、模型、语言都靠 **手写 JSON** 放到 `src/main/resources/`
- 手动 JSON 遵循当时的数据包 / 资源包格式
- **禁止**编造 `DataGeneratorInitializer`、`init_data`、`ExistingFileHelper`
- **禁止**手动编辑 Loom 管理的生成目录(如果工程里有)
---
## Decision Flow
### Decision: 选择生成数据类型
```
IF 生成物品/方块模型 JSON
→ 手动编写 JSON 在 src/main/resources/assets/{modid}/models/
IF 生成语言文件
→ 手动编写 JSON 在 src/main/resources/assets/{modid}/lang/
IF 生成配方/战利品表/进度
→ 手动编写 JSON 在 src/main/resources/data/{modid}/
IF 生成标签(tags)
→ 手动编写 JSON 在 src/main/resources/data/{modid}/tags/
```
---
## 手动资源文件(推荐方式)
### 物品模型 JSON
```json
// src/main/resources/assets/examplemod/models/item/my_item.json
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "examplemod:item/my_item"
}
}
```
### 语言文件
```json
// src/main/resources/assets/examplemod/lang/en_us.json
{
"item.examplemod.my_item": "My Item",
"block.examplemod.my_block": "My Block",
"entity.examplemod.my_entity": "My Entity"
}
```
### 方块状态 JSON
```json
// src/main/resources/assets/examplemod/blockstates/my_block.json
{
"variants": {
…Read the whole file at its exact version.
How to install
mdr add guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/07-datagen.mdc@sha256:4d629aecd15d7116The line at the top of this page pins the label git:20260818.b1ccba0, 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.
[](https://markdownregistry.com/a/art_zodsqhppewwaecht)
4 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 18, 2026, about one every 38 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260818.b1ccba0 latest | 2026-08-18 | b1ccba0 | 2,651 B | A | view · diff |
| git:20260711.586c86f | 2026-07-11 | 586c86f | 3,306 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (2651 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
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_zodsqhppewwaecht GET https://markdownregistry.com/api/v1/resolve?ref=guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/07-datagen.mdc GET https://markdownregistry.com/api/v1/blob/4d629aecd15d71166605ed95786dde5c857766b8183fb2e654d25f2345ddf112
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.