.agents/skills/mc_cli/set_inventory/SKILL.md
指定した座標にあるブロックのインベントリにアイテムをセットします。
npx skillsauth add yadokari1130/MC-Redstone-AI minecraft_set_inventoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
このスキルは、Minecraft サーバー(Fabric)の HTTP API を使用して、指定した座標にあるブロック(チェスト、ホッパー、ドロッパー、ディスペンサーなど)のインベントリにアイテムをセットするためのものです。
mc-cli ツールを使用して、以下のコマンドを実行します。
./mc-cli/mc-cli set-inventory --x <x> --y <y> --z <z> --items '<JSON文字列>'
または、ファイルを指定してセットします。
./mc-cli/mc-cli set-inventory --x <x> --y <y> --z <z> --items '@path/to/items.json'
--x: 対象ブロックの X 座標。--y: 対象ブロックの Y 座標。--z: 対象ブロックの Z 座標。--items: セットするアイテム情報を含む JSON 配列、または @ を付けたファイルパス。デフォルトは [](空配列)。セットするアイテムのリストを JSON 配列形式で提供します。各要素は id(アイテム ID)と amount(数量)を持つオブジェクトです。
[
{
"id": "minecraft:redstone",
"amount": 64
},
{
"id": "minecraft:repeater",
"amount": 16
}
]
--items '[]' を指定します。tools
Minecraft の世界に指定したブロックを配置します。
tools
指定した座標のブロック(レバー、ボタンなど)を操作します。
tools
Minecraft の世界から指定した範囲のブロック情報を取得します。
tools
Minecraft の世界で指定した範囲を特定のブロックで埋めます。