Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
Ic translate
此条目的(部分)内容需要翻译。

你可以帮助我们来翻译此条目,但请勿使用机器翻译

Information icon
此特性为Java版独有。

命令/infobox 用于更改或读取属性

语法
attribute <target> <attribute> (get|base|modifier)
... get [<scale>]
... base get [<scale>]
... base set <value>
... modifier (add|remove|value get)
... add <uuid> <name> <value> (add|multiply|multiply_base)
... remove <uuid>
... value get <uuid> [<scale>]
参数
<target>
应用属性的实体。只接受单一目标。
<attribute>
指定属性的命名空间ID
<scale>
在返回值之前与该值相乘的数字。
<uuid>
字符串格式指定修饰符UUID。具有相同UUID的修饰符不堆叠。

历史

Java版(即将到来)
1.1620w17a加入了/attribute
Advertisement