これは Java(ジャバ)ばんの ページです。 とうごうばん(Bedrock)は こちら →
← ぜんぶの コマンドに もどる能力値を調べる・変える/attribute
エンティティの最大体力や移動速度などの能力値を確認・変更します。
だれが つかえるか
レベル 2 … チートが ON の ワールドか、サーバーの OP(gamemasters)だけ つかえます。
どこで つかえるか
ひとりで あそぶ ワールドでも、みんなで あそぶ サーバーでも つかえます。
かきかた
ここは かきかたを みる ところです。えらんで つくることは できません。 かんたんモード と じょうけんを かさねる では、えらぶだけで つくれます。
ぜんぶで 12 とおり あります。
- /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>
くわしい せつめい
get で いまの あたいを調べ、base set で もとの あたいを決めます。modifier add で名前を付けた補正を足し、modifier remove で外します。足しかたは add_value(そのまま足す)と add_multiplied_base(もとの あたいに対する倍率)と add_multiplied_total(合計に対する倍率)から選びます。対象は 1 体だけ指定します。