05-events Cursor ruleA
05-events 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/05-events.mdc@git:20261011.087abcfPins git:20261011.087abcf 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/05-events.mdc- Versions recorded
- 8
- Latest version
- git:20261011.087abcf, committed Oct 11, 2026
- First version recorded
- Jul 11, 2026
- Size
- 9,279 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
# 05 — 事件系统 > 适用版本:Fabric 1.14.4 --- ## 约束 ### 核心原则 - Fabric 使用**事件回调**(Event Callback)而非 Forge 的 `@SubscribeEvent` - 每个事件类型有自己的回调接口(如 `ServerTickEvents.END_SERVER_TICK`、`UseItemCallback`) - 在 `onInitialize()` / `onInitializeClient()` 里对静态 `Event` 调用 `.register(lambda)` - Fabric 事件是**静态 `Event` 字段**(单例),**没有** `@EventHandler` 注解 ### 与 Forge 事件系统的区别 | Forge | Fabric | |-------|--------| | `@SubscribeEvent` 注解 | `SomeCallback.EVENT.register(lambda)`(或 `PlayerBlockBreakEvents.BEFORE.register`) | | `MinecraftForge.EVENT_BUS` | 各事件类型上的静态 `Event` 字段 | | `EventPriority` | Fabric **Phase**(`Event.DEFAULT_PHASE`),不是 Forge 的优先级枚举 | | `event.setCanceled(true)` | 返回 `ActionResult` / `boolean`;不是 `CanceledEvent` | 不要编造 `ItemEvents` / `BlockEvents` / `EntityEvents` / `PlayerTickEvents` / `EntityTickEvents` / `AttackEvents`。 --- ## Decision Flow ### Decision: 选择事件类型 ``` IF 处理玩家每 tick 逻辑 → 客户端 ClientTickEvents.END_CLIENT_TICK → 服务端 ServerTickEvents.END_SERVER_TICK(再遍历 playerManager) → 不要 PlayerTickEvents(不是 Fabric API) IF 处理实体每 tick 逻辑 → 重写实体 tick(),或 ServerTickEvents.END_SERVER_TICK 里遍历世界实体 → 不要 EntityTickEvents IF 处理方块破坏 …
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/05-events.mdc@sha256:b744aec91600a22aThe line at the top of this page pins the label git:20261011.087abcf, 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_4fsbi7e7hxb435sk)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 8 versions of this file, between Jul 11, 2026 and Oct 11, 2026, about one every 13 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261011.087abcf latest | 2026-10-11 | 087abcf | 9,279 B | A | view · diff |
| git:20261006.4d96a84 | 2026-10-06 | 4d96a84 | 9,292 B | A | view · diff |
| git:20260918.44141e2 | 2026-09-18 | 44141e2 | 7,794 B | A | view · diff |
| git:20260906.582f55f | 2026-09-06 | 582f55f | 7,540 B | A | view · diff |
| git:20260827.8ccbbc4 | 2026-08-27 | 8ccbbc4 | 7,377 B | A | view · diff |
| git:20260819.ca99162 | 2026-08-19 | ca99162 | 7,613 B | A | view · diff |
| git:20260818.b1ccba0 | 2026-08-18 | b1ccba0 | 7,509 B | A | view · diff |
| git:20260711.586c86f | 2026-07-11 | 586c86f | 3,919 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (9279 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_4fsbi7e7hxb435sk GET https://markdownregistry.com/api/v1/resolve?ref=guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/05-events.mdc GET https://markdownregistry.com/api/v1/blob/b744aec91600a22abebf58239c81c9d3314ea88d3fa301947336e19aebdec0fc
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.