BOMBちょっとお洒落な攻略本を目指してJava 26.3 対応

/attribute

公開 2026年8月29日・更新 2026年11月8日

/attribute
書き方の数
12
必要な権限
OP レベル 2(「チートの許可」がオンなら使える)
広告

どんなコマンド?

プレイヤーやMobの「属性」を調べたり書き換えたりするコマンドです。属性とは、最大体力や移動速度、体の大きさなどの数値のことです。元の値(ベース値)の変更と、上乗せする補正(モディファイア)の追加ができます。

使い方・ポイント

  • /attribute @s minecraft:scale base set 2 自分の体の大きさを2倍にします。
  • /attribute @s minecraft:scale base reset 大きさを最初の値に戻します。
  • /attribute @s minecraft:max_health base set 40 自分の最大体力を40(ハート20個分)にします。
  • /attribute @s minecraft:movement_speed get 今の移動速度の値を表示します。
  • /attribute @s minecraft:step_height base set 1 1ブロックの段差をジャンプせずに上れるようにします。
  • /attribute @s minecraft:block_interaction_range modifier add bomb:reach 3 add_value ブロックに手が届く距離を3ブロック延ばします。

書き方

/attribute <target> <attribute> base get/attribute <target> <attribute> base get <scale>/attribute <target> <attribute> base reset/attribute <target> <attribute> base set <value>/attribute <target> <attribute> get/attribute <target> <attribute> get <scale>/attribute <target> <attribute> modifier add <id> <value> add_multiplied_base/attribute <target> <attribute> modifier add <id> <value> add_multiplied_total/attribute <target> <attribute> modifier add <id> <value> add_value/attribute <target> <attribute> modifier remove <id>/attribute <target> <attribute> modifier value get <id>/attribute <target> <attribute> modifier value get <id> <scale>

< > の中に書くもの

名前書くもの
<target>対象(プレイヤーやエンティティ。@p・@a・@s など)
<attribute>種類の名前
<scale>数
<value>数
<id>名前(ID)

よくある質問

元に戻すにはどうしますか?

ベース値は base reset で戻せます。補正は modifier remove に同じIDを書いて消します。

bomb:reach のようなIDは何ですか?

補正を見分けるための名前で、自分で決めます。消すときも同じIDを使います。

出典
  • ゲームのデータ: Minecraft Java Edition 26.3 のコマンドの一覧(書き方・権限)
数字は Java 版の値です。
広告

関連するページ RELATED