我的世界命令方块怎么给自己神器
/give @p diamond_sword 1 0 {AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:1,AttributeName:generic.attackDamage,Name:G},{Operation:0,UUIDLeast:3,UUIDMost:3,Amount:10,AttributeName:generic.knockbackResistance,Name:J},{Operation:0,UUIDLeast:4,UUIDMost:4,Amount:0.1,AttributeName:generic.movementSpeed,Name:S},{Operation:0,UUIDLeast:5,UUIDMost:5,Amount:20,AttributeName:generic.maxHealth,Name:H}],Unbreakable:1b}
神器示范
Operation:后面只能写0或者1,否则游戏会崩溃。0就是属性显示数字,1就是属性显示百分比。
UUIDLeast和UUIDMost:独特的ID,这项可以随便写,无需求。
Amount:等级数量,比如加9000级的攻击,就是Amount:9000.0
AttributeName:这一行是最重要的,属性类型。前面说了有五种类型,这里就要写五种其中一种的名字。
generic.attackDamage - 攻击
generic.followRange - 跟踪范围
generic.maxHealth - 最大生命
generic.knockbackResistance - 防击退
generic.movementSpeed - 速度
Name:也是没什么用的,名字随便打。
Unbreakable:是否开启不毁,1b就是开启,不开启就不用输。
这个命令要在命令方块中使用...
8048