0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Minecraftメモ

Last updated at Posted at 2025-07-13

Minecraftメモ

マインクラフトのメモです

#データパック作成の心得

  • Minecraftのコマンドが基礎
  • アイテムコンポーネントを活用しよう
  • 検知はadvancement
  • /minecraft内の記述を参考にしていこう

コマンド

コマンド 説明
/ability プレイヤーの能力(歩行速度など)を付与・剥奪
/advancement 実績(アドバンスメント)の操作
/attribute エンティティ属性(移動速度・体力など)操作
/ban, /ban-ip, /banlist プレイヤーまたはIPのBAN管理
/bossbar ボスバーの作成・調整
/camera, /camerashake カメラ制御(Edu/BE対応)
/changesetting サーバ設定の変更
/clear, /clearspawnpoint インベントリやスポーン地点の削除
/clone ブロックの複製
/connect, /wsserver WebSocket経由で接続
/damage 指定対象にダメージ付与
/data ブロック/エンティティNBT操作
/datapack データパックの管理
/daylock, /alwaysday 昼夜サイクルの固定
/debug デバッグセッションの開始/停止
/defaultgamemode デフォルトモード変更
/deop, /op, /ops, /permission OP権限の付与・剥奪・管理
/difficulty 難易度変更
/effect ステータス効果の付与/除去
/enchant アイテムにエンチャント付与
/event エンティティイベントの発火
/execute 条件付きコマンド実行(最重要)
/experience, /xp 経験値の付与/除去
/fill, /fillbiome ブロックやバイオームの大量配置
/fog フォグ(霧)効果制御
/forceload チャンクの強制ロード
/function 関数(.mcfunction)の実行
/gamemode ゲームモードの切替
/gamerule ゲームルールの設定
/gametest ゲームテストAPIの使用
/give アイテム付与(components対応)
/help, /? コマンドヘルプ表示
/immutableworld ワールドの書き換え上書き制御
/item インベントリ内アイテム操作
/jfr Java Flight Recorder操作
/kick, /list プレイヤーキックと一覧表示
/kill 対象即死処理
/locate 構造物やバイオームの位置取得
/loot 戦利品テーブルからアイテム排出
/me アクションチャット出力
/mobevent Mobイベントの開始/停止
/msg, /w, /tell プライベートメッセージ送信
/music 曲再生制御(Edu/BE用)
/particle パーティクル生成
/perf パフォーマンス計測
/place 構造物の設置(template loading)
/playanimation, /playsound, /stopsound アニメーションや音再生制御
/publish シングルプレイLAN公開
/random 乱数取得・制御
/recipe レシピ取得/削除
/reload データ(関数・Advancement 等)再読み込み
/remove Agent削除(Edu用)
/replaceitem アイテム置換(旧式、使用非推奨)
/return 関数内リターン制御
/ride 乗り物関連制御
/save, /save-all, /save-off, /save-on セーブ操作
/say 全体チャット送信
/schedule 関数の遅延実行
/scoreboard スコアボード管理
/seed ワールドシード取得
/setblock, /setworldspawn, /spawnpoint ブロック設置、スポーン地点設定
/setidletimeout, /setmaxplayers 放置タイムアウト・最大接続数設定
/spectate スペクテイターモード視点切替
/spreadplayers 広範囲へのランダムTP
/stop サーバ停止
/structure 構造物の保存/読み込み
/summon エンティティ召喚
/tag エンティティタグ操作
/teleport, /tp テレポート
/test, /testforblocks テスト用/比較テスト
/tick ワールド更新制御
/time 時間設定/確認
/transfer 他サーバへの転送
/trigger スコアボードトリガー
/version ゲームバージョン表示
/weather, /toggledownfall 天候変更
/whitelist, /setworldspawn ホワイトリスト、世界スポーン設定
/worldborder ワールドボーダーの制御
/volumearea 音量設定エリア追加

コンポーネント

コンポーネント名 説明
minecraft:custom_name アイテム名をJSON形式で設定(例: "text": "魔剣", "color": "gold"
minecraft:lore アイテムの説明文(ロア)をリスト形式のJSONで表示
minecraft:enchantments アイテムにエンチャントを付与(例: シャープネス5)
minecraft:stored_enchantments 本に保存されたエンチャント情報
minecraft:attribute_modifiers 攻撃力・移動速度などの属性補正
minecraft:damage 耐久値の設定(maxvalue
minecraft:unbreakable 耐久値が減らず壊れない
minecraft:repair_cost 金床使用時の修理コスト
minecraft:can_place_on 設置可能なブロックの制限(アドベンチャーモード用)
minecraft:can_destroy 壊せるブロックの制限(アドベンチャーモード用)
minecraft:item_lock アイテムをスロットから移動・削除できなくする
minecraft:keep_on_death 死亡時にもアイテムが消えない
minecraft:custom_data 任意のデータ(JSON)を格納
minecraft:max_stack_size スタック上限を変更(例: 1スタックのみ)
minecraft:foil エンチャント風のキラキラを常に表示
minecraft:intangibility アイテムが拾えない(観賞用やトラップ用途など)
minecraft:fire_resistant マグマ・火などで消えない
minecraft:food 食料アイテムとして栄養や効果を設定
minecraft:container シュルカーボックスなどの中身を定義

Advancement

トリガー名 説明 使用例(JSONスニペット)
minecraft:allay_drop_item_on_block アレイがアイテムをブロックに投げる "trigger": "minecraft:allay_drop_item_on_block", "conditions": { "item": { "items": ["minecraft:cookie"] } }
minecraft:avoid_vibration スニークで振動イベントを回避する "trigger": "minecraft:avoid_vibration"
minecraft:bee_nest_destroyed ハチの巣または巣箱を破壊する "trigger": "minecraft:bee_nest_destroyed", "conditions": { "block": "minecraft:bee_nest" }
minecraft:bred_animals 動物を2匹繁殖させる "trigger": "minecraft:bred_animals", "conditions": { "child": { "type": "minecraft:cow" } }
minecraft:brewed_potion 醸造台からポーションを取り出す "trigger": "minecraft:brewed_potion", "conditions": { "potion": "minecraft:strong_healing" }
minecraft:changed_dimension ディメンション間を移動する "trigger": "minecraft:changed_dimension", "conditions": { "from": "minecraft:overworld", "to": "minecraft:the_nether" }
minecraft:channeled_lightning 召雷のエンチャントで雷を落とす "trigger": "minecraft:channeled_lightning", "conditions": { "victims": [{ "type": "minecraft:creeper" }] }
minecraft:construct_beacon ビーコン構造を構築・更新する "trigger": "minecraft:construct_beacon", "conditions": { "level": { "min": 4 } }
minecraft:consume_item アイテムを使用または消費する "trigger": "minecraft:consume_item", "conditions": { "item": { "items": ["minecraft:golden_apple"] } }
minecraft:cured_zombie_villager 村人ゾンビを治療する "trigger": "minecraft:cured_zombie_villager"
minecraft:effects_changed ステータス効果を得る・変更される "trigger": "minecraft:effects_changed", "conditions": { "effects": { "minecraft:speed": {} } }
minecraft:enchanted_item エンチャントテーブルでアイテムをエンチャントする "trigger": "minecraft:enchanted_item", "conditions": { "item": { "items": ["minecraft:diamond_sword"] } }
minecraft:enter_block 特定のブロックの中に入る "trigger": "minecraft:enter_block", "conditions": { "block": "minecraft:bee_nest" }
minecraft:entity_hurt_player エンティティがプレイヤーにダメージを与える "trigger": "minecraft:entity_hurt_player", "conditions": { "damage": { "type": "mob" } }
minecraft:entity_killed_player エンティティがプレイヤーを倒す "trigger": "minecraft:entity_killed_player", "conditions": { "entity": { "type": "minecraft:zombie" } }
minecraft:fall_from_height 高所から落下して着地する "trigger": "minecraft:fall_from_height", "conditions": { "distance": { "min": 10 } }
minecraft:filled_bucket バケツを水などで満たす "trigger": "minecraft:filled_bucket", "conditions": { "item": { "items": ["minecraft:water_bucket"] } }
minecraft:fishing_rod_hooked 釣り竿で何かを引っ張る "trigger": "minecraft:fishing_rod_hooked"
minecraft:hero_of_the_village 襲撃イベントの勝利による村の英雄になる "trigger": "minecraft:hero_of_the_village"
minecraft:impossible コマンドでのみ達成される進捗 "trigger": "minecraft:impossible"
minecraft:inventory_changed インベントリの中身が変わる "trigger": "minecraft:inventory_changed", "conditions": { "items": [{ "items": ["minecraft:iron_ingot"] }] }
minecraft:item_durability_changed アイテムの耐久値が変化する "trigger": "minecraft:item_durability_changed", "conditions": { "delta": { "min": 1 } }
minecraft:item_used_on_block アイテムをブロックに使用する "trigger": "minecraft:item_used_on_block", "conditions": { "item": { "items": ["minecraft:name_tag"] } }
minecraft:kill_mob_near_sculk_catalyst スカルクカタリストの近くでMobを倒す "trigger": "minecraft:kill_mob_near_sculk_catalyst"
minecraft:killed_by_crossbow クロスボウでMobを倒す "trigger": "minecraft:killed_by_crossbow"
minecraft:levitation 浮遊のステータス効果を受ける "trigger": "minecraft:levitation", "conditions": { "duration": { "min": 10 } }
minecraft:lightning_strike 雷が近くで落ちる "trigger": "minecraft:lightning_strike"
minecraft:location 特定の座標・場所に到達する "trigger": "minecraft:location", "conditions": { "position": { "x": 100, "y": 64, "z": 100 } }
minecraft:nether_travel ネザーとオーバーワールド間を移動する "trigger": "minecraft:nether_travel"
minecraft:placed_block ブロックを設置する "trigger": "minecraft:placed_block", "conditions": { "block": "minecraft:diamond_block" }
minecraft:player_generates_container_loot ルートチェストを開けてアイテムを生成する "trigger": "minecraft:player_generates_container_loot"
minecraft:player_hurt_entity プレイヤーがエンティティにダメージを与える "trigger": "minecraft:player_hurt_entity", "conditions": { "entity": { "type": "minecraft:zombie" } }
minecraft:player_interacted_with_entity エンティティと相互作用する "trigger": "minecraft:player_interacted_with_entity", "conditions": { "entity": { "type": "minecraft:villager" } }
minecraft:player_killed_entity Mobや他プレイヤーを倒す "trigger": "minecraft:player_killed_entity", "conditions": { "entity": { "type": "minecraft:skeleton" } }
minecraft:recipe_unlocked レシピをアンロックする "trigger": "minecraft:recipe_unlocked", "conditions": { "recipe": "minecraft:golden_apple" }
minecraft:ride_entity_in_lava 溶岩の上を移動しているエンティティに乗る "trigger": "minecraft:ride_entity_in_lava"
minecraft:shot_crossbow クロスボウを撃つ "trigger": "minecraft:shot_crossbow"
minecraft:slept_in_bed ベッドで眠る "trigger": "minecraft:slept_in_bed"
minecraft:slide_down_block ブロックを滑り落ちる "trigger": "minecraft:slide_down_block"
minecraft:started_riding 乗り物に乗る "trigger": "minecraft:started_riding"
minecraft:summoned_entity エンティティを召喚する "trigger": "minecraft:summoned_entity", "conditions": { "entity": { "type": "minecraft:iron_golem" } }
minecraft:tame_animal 動物を手懐ける "trigger": "minecraft:tame_animal", "conditions": { "entity": { "type": "minecraft:cat" } }
minecraft:target_hit 的を撃つ "trigger": "minecraft:target_hit"
minecraft:thrown_item_picked_up_by_entity 投げたアイテムをエンティティが拾う "trigger": "minecraft:thrown_item_picked_up_by_entity"
minecraft:thrown_item_picked_up_by_player 投げたアイテムをプレイヤーが拾う "trigger": "minecraft:thrown_item_picked_up_by_player"
minecraft:tick 毎tick発生(1秒20回) "trigger": "minecraft:tick"
minecraft:used_ender_eye エンダーアイを使用する "trigger": "minecraft:used_ender_eye"
minecraft:used_totem 不死のトーテムを使用する "trigger": "minecraft:used_totem"
minecraft:using_item 継続的にアイテムを使用する "trigger": "minecraft:using_item", "conditions": { "item": { "items": ["minecraft:bow"] } }
minecraft:villager_trade 村人と取引する "trigger": "minecraft:villager_trade"
minecraft:voluntary_exile 襲撃イベントを開始する "trigger": "minecraft:voluntary_exile"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?