この方法を使えば視点をあわせたブロック・エンティティデータをクリップボードへコピーすることができます。
マインクラフトJAVA版1.21.4で動作確認済み
コピーする方法
コピーしたい対象に視点をあわせてキーボードで
[F3]+[I]
のキーを同時押しするとクリップボードに対象を召喚するコマンドを取得できます。(一部ノートPC等は[Fn]+[F3]+[I])
取得できたコマンドをチャット欄に貼り付けたり、コマブロに入れて実行したりすると
アイテムが入ったチェストを再設置するコマンドを生成したり
すでに存在するエンティティのNBTデータをコピペ編集してexecuteの検知条件を生成できるので非常に便利です。
[Ctrl]+[V](macの場合は[Command⌘]+[V])
以下取得例
#ブロックの場合

/setblock 25 -60 66 minecraft:oak_stairs[facing=south,half=bottom,shape=straight,waterlogged=false]
「minecraft:oak_stairs」がブロックのIDで、
[]で囲まれた[facing=south,half=bottom,shape=straight,waterlogged=false]がブロックの形状や向きなどのステータスを決めるブロック状態(Block states)のデータです。
取得したこれらの情報をもとにexecuteコマンドなどを生成することができます。
#エンティティの場合(防具たて)

/summon minecraft:armor_stand 17.50 -60.00 63.50 {Brain: {memories: {}}, HurtByTimestamp: 0, Invulnerable: 0b, FallFlying: 0b, ShowArms: 0b, PortalCooldown: 0, AbsorptionAmount: 0.0f, FallDistance: 0.0f, DisabledSlots: 0, DeathTime: 0s, Pose: {}, Invisible: 0b, Motion: [0.0d, -0.0784000015258789d, 0.0d], Small: 0b, Health: 20.0f, Air: 300s, OnGround: 1b, Rotation: [-180.0f, 0.0f], HandItems: [{}, {}], Fire: -1s, ArmorItems: [{count: 1, id: "minecraft:diamond_boots"}, {count: 1, id: "minecraft:diamond_leggings"}, {count: 1, id: "minecraft:diamond_chestplate"}, {count: 1, id: "minecraft:diamond_helmet"}], NoBasePlate: 0b, attributes: [{id: "minecraft:armor", base: 0.0d}, {id: "minecraft:movement_speed", base: 0.7d}, {id: "minecraft:armor_toughness", base: 0.0d}], HurtTime: 0s}
キッズプログラミングスクールSwitch大阪四ツ橋校ではマインクラフトでコマンドを使ったゲームの作り方を学ぶことができます。
あなたもコマンドを学んでみませんか?
ホームページにて無料体験会申し込み受付中です。
ぜひともお問い合わせください。