你先放个命令方块 然后粘贴下面的指令
/give @p minecraft:diamond_sword 1 0
{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:90.0,AttributeName:generic.maxHealth,Name:Attack}]}
就会得到一个90最高生命的钻石剑 需要更改最高生命的把90.0改成你想要的
比如说我要一个最高生命为100的剑就要指令
/give @p minecraft:diamond_sword 1 0
{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:100.0,AttributeName:generic.maxHealth,Name:Attack}]}
速度的话要
/give @p minecraft:diamond_sword 1 0
{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:1.0,AttributeName:generic.movementSpeed,Name:Attack}]}
速度最高4.5过了要崩的
得你个4.5的
/give @p minecraft:diamond_sword 1 0
{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:4.5,AttributeName:generic.movementSpeed,Name:Attack}]}