1201-forge-modding

1201-forge-modding is a skill for Claude Code, Codex from code-onigiri/mc-modding-skill. It costs 118 tokens per session (2,189 once invoked), scanned A, original, MIT.

A development guide for making Minecraft 1.20.1 mods with the Forge modding framework. It covers adding blocks, items, entities, recipes, network handling, and other standard mod features.

In plain words
What is it for?
Use it when creating or debugging a Minecraft 1.20.1 Forge mod, setting up Gradle or the Mod Development Kit, or working with registries, events, and client/server behavior.
Why use it?
It helps avoid common Forge mistakes involving registration, generated data, client/server code, networking, and saved game data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or debugging a Minecraft 1.20.1 Forge mod, setting up Gradle or the Mod Development Kit, or working with registries, events, and client/server behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/code-onigiri/mc-modding-skill/1201-forge-modding
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.

Any agent
npx skills add code-onigiri/mc-modding-skill --skill 1201-forge-modding
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 1201-forge-modding

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-onigiri/mc-modding-skill/1201-forge-modding/github.svg)](https://agentmods.dev/skills/code-onigiri/mc-modding-skill/1201-forge-modding)
Your own site
<a href="https://agentmods.dev/skills/code-onigiri/mc-modding-skill/1201-forge-modding"><img src="https://agentmods.dev/badge/skills/code-onigiri/mc-modding-skill/1201-forge-modding/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 1201-forge-modding

Your own site · 80×15
<a href="https://agentmods.dev/skills/code-onigiri/mc-modding-skill/1201-forge-modding"><img src="https://agentmods.dev/badge/skills/code-onigiri/mc-modding-skill/1201-forge-modding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00118 $0.02189
Opus 5.5 $0.00047 $0.00876
Sonnet 5.5 $0.00024 $0.00438
Haiku 4.5 $0.00012 $0.00219

Measured 1mo ago against content hash 72dac5e440f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

1201-forge-modding 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 1mo ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/check-build.sh, scripts/scaffold-asset-brief.sh, scripts/validate-datapack.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/1201-forge-modding/SKILL.md · 117 lines

How it starts

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

概要

このSkillは Minecraft 1.20.1 Forge 向けMod開発の標準パターンと落とし穴をまとめたものです。

✅ やるべきこと

  1. DeferredRegister + RegistryObject を使う — 旧来の RegistryEvent ベースの登録は非推奨。
  2. DataGen を使う — 手書きJSONはミスとメンテナンスコストが爆発する。
  3. Mojang Mappings(official)が標準 — Parchmentでパラメータ名を補完する。
  4. すべてのDeferredRegisterをModBusにregisterする — コンストラクタで IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); を取得し、各 register(modEventBus) を呼ぶ。
  5. Block登録時はBlockItemも登録する — Blockだけではインベントリに出ない。
  6. level.isClientSide で論理サイド判定 — 物理サイドではなく論理サイドで分岐。
  7. Networkingのハンドラでは ctx.enqueueWork() でメインスレッドに戻す — ネットワークスレッドでワールド変更を行うとクラッシュ。
  8. Capability取得時は LazyOptional を使う — isPresent() / ifPresent() で安全にアクセス。invalidateCaps() も必ず実装する。
  9. BlockEntityのデータ変更時は setChanged() + level.sendBlockUpdated() を呼ぶ — どちらか欠けると保存/同期されない。
  10. sourceSets.main.resources { srcDir 'src/generated/resources' } を忘れない — DataGenの出力が読み込まれなくなる。

❌ やってはいけないこと

  1. @OnlyIn をModコードで使わない — Forge内部専用。使うとマルチプレイでクラッシュ。クライアント限定コードは @Mod.EventBusSubscriber(value = Dist.CLIENT) または FMLClientSetupEvent で分離する。
  2. ResourceLocation に大文字・ハイフンを使わない — 小文字と _ / . / / のみ。
  3. ContainerDataの各スロットは16bit — 32bit整数(エネルギー量など)は2スロットに分割すること。
  4. PacketのID(int)を重複させない — SimpleChannelのregisterMessageでID衝突は通信破損。
  5. Capabilityを通常のBlockに直接付けない — BlockEntityが必要。
  6. runClientクラッシュ後は ./gradlew --stop — Daemonがポートを占有していることがある。

開発ワークフロー(新規Mod作成時)

  • 1. Forge MDK(1.20.1)を入手し、Gradleプロジェクトとしてインポート
  • 2. gradle.properties / build.gradle / mods.toml を確認・編集
  • 3. メインModクラス(@Mod)と DeferredRegister + RegistryObject のセットアップ
  • 4. Block/Item/Entity などの登録とプロパティ定義
  • 5. Data Provider(Recipe, LootTable, BlockState, Tags)の実装
  • 6. 必要に応じてNetworking(SimpleChannel)、Capability、WorldGenを追加
  • 7. runClient / runData で動作確認

よく使うGradleタスク

./gradlew build              # 配布用jar生成
./gradlew runClient          # クライアント起動
./gradlew runServer          # サーバー起動
./gradlew runData            # DataGen実行
./gradlew runGameTestServer  # GameTest実行
./gradlew clean              # ビルドキャッシュ削除

Read the full file on GitHub · 117 lines

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. 1mo ago First seen · 117 lines · 118 tokens per session scan A 72dac5e440f0

Subscribe to this mod's changes

1201-forge-modding is a skill published in the GitHub repository code-onigiri/mc-modding-skill (2 stars, last pushed 4mo ago), licensed MIT. It adds 118 tokens to every session and 2,189 once invoked, about $0.0005 per session on Opus 5.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.

Related

Other skills, from other repositories

setup-fabric

Step 1 of 4 of the Minecraft Java MCP setup. Install Minecraft Java Edition with the Fabric loader — either a single-player client or a headless dedicated server — as the foundation the MCP mod runs inside. Use when the user wants to set up Minecraft Java for AI/MCP control from scratch, or asks how to get Fabric…

chapmanjw/minecraft-java-fabric-claude-plugin · 80 tokens

setup-mod

Step 2 of 4 of the Minecraft Java MCP setup. Download the minecraft-java MCP mod jar and its matching Fabric API jar and install both into the Minecraft mods folder. Use when the user has Minecraft Java with the Fabric loader ready and needs the MCP mod and Fabric API installed.

chapmanjw/minecraft-java-fabric-claude-plugin · 60 tokens

survey-research

Researches real-world buildings, cities, landmarks, vehicles, and mechanisms so they can be represented faithfully as Minecraft structures. Use when a build request references a real or historical thing and the exec-plan or exec-blueprint skill needs accurate proportions, layouts, materials, or details. Part of the…

chapmanjw/minecraft-java-fabric-claude-plugin · 66 tokens

setup-server

Step 3 of 4 of the Minecraft Java MCP setup. Configure the MCP mod's config.json (host, port, auth, tool categories), launch Minecraft or the dedicated server, verify the embedded MCP server is listening on /healthz, and capture the bearer token for remote setups. Use when the user has the MCP mod and Fabric API…

chapmanjw/minecraft-java-fabric-claude-plugin · 82 tokens

setup-connect

Step 4 of 4 of the Minecraft Java MCP setup. Register the running minecraft-java MCP server (the Fabric mod) with Claude (Claude Code or Claude Desktop) so the Java world tools become available, then verify the connection with a live test call. Use when the user has the MCP server running and needs to connect Claude…

chapmanjw/minecraft-java-fabric-claude-plugin · 74 tokens

minecraft-modpack-server

Host modded Minecraft servers (CurseForge, Modrinth).

NousResearch/hermes-agent · 19 tokens