1211-mods-exsample

1211-mods-exsample is a skill for Claude Code, Codex from code-onigiri/mc-modding-skill. It costs 135 tokens per session (6,634 once invoked), scanned A, original, MIT.

A reference for practical design patterns in Minecraft 1.21.1 NeoForge mod development. It also explains migration differences from Forge 1.20.1, including newer approaches to saved data, capabilities, and network messages.

In plain words
What is it for?
Use it when designing or migrating NeoForge systems such as block entities, Data Components, Data Attachments, capabilities, energy or chemical storage, synchronization, multiblocks, recipes, GUIs, rendering, spells, artificial intelligence, or scripting.
Why use it?
It helps developers choose current NeoForge structures while understanding what must change when moving from Forge 1.20.1. The guidance is based on patterns found in major mods and covers architecture, performance, APIs, and data-driven design.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/code-onigiri/mc-modding-skill/1211-mods-exsample
Any agent
npx skills add code-onigiri/mc-modding-skill --skill 1211-mods-exsample
Clone the repo
git clone --depth 1 https://github.com/code-onigiri/mc-modding-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 1211-mods-exsample

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-onigiri/mc-modding-skill/1211-mods-exsample.svg)](https://agentmods.dev/skills/code-onigiri/mc-modding-skill/1211-mods-exsample)
Your own site
<a href="https://agentmods.dev/skills/code-onigiri/mc-modding-skill/1211-mods-exsample"><img src="https://agentmods.dev/badge/skills/code-onigiri/mc-modding-skill/1211-mods-exsample.svg" alt="Measured on agentmods" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,634 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00135 $0.06634
Opus 5 $0.00068 $0.03317
Sonnet 5 $0.00027 $0.01327
Haiku 4.5 $0.00014 $0.00663

Measured 5d ago against content hash 3df7111a32a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

1211-mods-exsample scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/skills/1211-mods-exsample/SKILL.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

概要

このSkillは Minecraft 1.21.1 NeoForge における設計パターンを、主要Modの実装から抽出したリファレンスです。 Forge 1.20.1からの移行(LazyOptional→直接Capability、NBT→Data Component、SimpleChannel→Payload System等) に加え、NeoForge 1.21.1特有のAPI(Data Component / Data Attachment / Payload System)を活用した 設計パターンを提供します。

✅ やるべきこと — 設計パターン別

BlockEntity設計

  1. BEが必要かどうかを最初に判断する — Botania機能花はBlock.tick() + scheduleTickで動作。BEは持続状態/Tick/ネットワーク参加が必要な場合のみ。
  2. BE登録方式はModの規模に合わせて選ぶ — 小規模: DeferredRegister / 中規模: Registrate / 大規模: 型安全ラッパーかMachineBuilder / マルチローダー: abstract bind。
  3. 保存データと同期データは分離して考える — 永続化(Data Component)・全量同期(getUpdateTag)・差分同期(Payload System/SyncData/@SyncToClient)の3層構造。
  4. NeoForgeではData Component + Payload Systemが基本同期方式 — 低頻度: Data Component + getUpdateTag / 高頻度: Payload Systemカスタムパケット / 宣言的: @SyncToClient。
  5. Capabilityは@Nullable T直接取得に移行 — 1.20.1のLazyOptional/CapabilityTokenは廃止。BlockCapabilityを使う。

エネルギーシステム

  1. 独自電力型のData Component化はGregTech / Mekanismを参考にする — FloatingLongやChemicalStackをDataComponentとして定義し、Codec+StreamCodecで永続化+同期。
  2. 魔法エネルギーのNeoForge適応はBotania(80+ Component) / Ars Nouveauを参考にする — Mana/Sourceの保持と送受信をData Component + AttachmentTypeで再設計。
  3. 他Modエネルギーとの互換はMekanismのBlockCapability/ItemCapabilityラッパーを参考にする@Nullable T 直接取得パターンに移行。

GUI/UIフレームワーク

  1. NeoForge対応WidgetツリーはLDLib ModularUIを参考にする — Widget親子構造 + SyncData自動双方向同期。1.21.1ではData Componentと連携。
  2. 高パフォーマンスUIはModernUIのスレッド分離+Granite GPUを参考にする — 1.21.1ではPayload Systemでのメッセージパイプ置き換え。
  3. Containerのデータ同期はData Component + Payload Systemの組み合わせを理解する — ContainerDataに代わるData Component同期パターン。

ネットワーク/同期

  1. Payload Systemへの移行はCreate CatnipPacketRegistry / Mekanism PayloadRegistrarを参考にする — SimpleChannel → CustomPacketPayload record + StreamCodec + PayloadRegistrar
  2. 大規模ネットワークグラフはAE2 ME Network(27 Component化)を参考にする — MEネットワークのData Component + Payload 移行パターン。
  3. ブロック状態の自動同期はFarmer's DelightのPayload版調理Componentを参考にする — 調理状態のComponent管理 + Payload同期。

マルチブロック

  1. NeoForge対応マルチブロックはGregTech / Multiblocked2を参考にする — Trait分離 + Capability直接取得 + Payload移行。
  2. Mekanismの4層マルチブロック抽象は1.21.1でも維持 — MultiblockManager/Data/Cache/FormationProtocol の構造はそのままCapability直接取得に置き換え。

Read the full file on GitHub · 243 lines

Files

What ships with it

39 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 243 lines · 135 tokens per session scan A 3df7111a32a5

Subscribe to this mod's changes

1211-mods-exsample is a skill published in the GitHub repository code-onigiri/mc-modding-skill (2 stars, last pushed 2mo ago), licensed MIT. It adds 135 tokens to every session and 6,634 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.