574833857 发表于 2020-3-7 14:28
1,/give @p diamond_sword 1 0 {display:{Name:"§4一把剑",Lore:["§e只是一把剑"]},AttributeModifiers: ...
这个符号输入不进去 得用别的mod或者插件
本帖最后由 Strange_name 于 2020-3-7 17:05 编辑
攻击附加效果需要记分板指令(不是我的能力范围内),而且你这版本应该是不行的
其他如下
1:
/give @p minecraft:diamond_sword 1 0 {AttributeModifiers:[{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.attackDamage",Name:"CBC"},{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.attackSpeed",Name:"CBC"},{Operation:0,Amount:2,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.maxHealth",Name:"CBC"},{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.attackDamage",Name:"CBC"},{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.attackSpeed",Name:"CBC"},{Operation:0,Amount:2,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.maxHealth",Name:"CBC"}],display:{Name:"&4一把剑",Lore:["&e只是一把剑"]},Unbreakable:1,ench:[{id:19,lvl:1},{id:16,lvl:2}]}
2:
/give @p minecraft:bow 1 0 {AttributeModifiers:[{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.attackSpeed",Name:"CBC"},{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.maxHealth",Name:"CBC"},{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.attackSpeed",Name:"CBC"},{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.maxHealth",Name:"CBC"}],display:{Name:"&4一把弓",Lore:["&e只是一把弓"]},Unbreakable:1,ench:[{id:51,lvl:1},{id:48,lvl:2}]}
3:/give @p minecraft:diamond_helmet 1 0 {AttributeModifiers:[{Operation:0,Amount:2,UUIDLeast:1L,UUIDMost:1L,Slot:head,AttributeName:"generic.maxHealth",Name:"CBC"},{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:head,AttributeName:"generic.movementSpeed",Name:"CBC"},{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:head,AttributeName:"generic.knockbackResistance",Name:"CBC"}],display:{Name:"&4一个头盔",Lore:["&e只是一个头盔"]},Unbreakable:1,ench:[{id:0,lvl:1},{id:5,lvl:2}]}
攻击附加效果需要记分板指令(不是我的能力范围内),而且你这版本应该是不行的
其他如下
1:
/give @p minecraft:diamond_sword 1 0 {AttributeModifiers:[{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.attackDamage",Name:"CBC"},{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.attackSpeed",Name:"CBC"},{Operation:0,Amount:2,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.maxHealth",Name:"CBC"},{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.attackDamage",Name:"CBC"},{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.attackSpeed",Name:"CBC"},{Operation:0,Amount:2,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.maxHealth",Name:"CBC"}],display:{Name:"&4一把剑",Lore:["&e只是一把剑"]},Unbreakable:1,ench:[{id:19,lvl:1},{id:16,lvl:2}]}
2:
/give @p minecraft:bow 1 0 {AttributeModifiers:[{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.attackSpeed",Name:"CBC"},{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:mainhand,AttributeName:"generic.maxHealth",Name:"CBC"},{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.attackSpeed",Name:"CBC"},{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:offhand,AttributeName:"generic.maxHealth",Name:"CBC"}],display:{Name:"&4一把弓",Lore:["&e只是一把弓"]},Unbreakable:1,ench:[{id:51,lvl:1},{id:48,lvl:2}]}
3:/give @p minecraft:diamond_helmet 1 0 {AttributeModifiers:[{Operation:0,Amount:2,UUIDLeast:1L,UUIDMost:1L,Slot:head,AttributeName:"generic.maxHealth",Name:"CBC"},{Operation:1,Amount:0.1,UUIDLeast:1L,UUIDMost:1L,Slot:head,AttributeName:"generic.movementSpeed",Name:"CBC"},{Operation:0,Amount:1,UUIDLeast:1L,UUIDMost:1L,Slot:head,AttributeName:"generic.knockbackResistance",Name:"CBC"}],display:{Name:"&4一个头盔",Lore:["&e只是一个头盔"]},Unbreakable:1,ench:[{id:0,lvl:1},{id:5,lvl:2}]}
本帖最后由 Strange_name 于 2020-3-7 17:07 编辑
改好了
往上翻就能看到
nwIIgeV 发表于 2020-3-7 16:54
深浅随意,只是我用来参考
不是纯原版,有mod,但应该不影响指令
改好了

往上翻就能看到
14楼在移速,生命,伤害上有问题,头盔ID写成了弓
26楼在字体颜色,剑和弓的移速有问题
结果:26楼最佳
26楼在字体颜色,剑和弓的移速有问题
结果:26楼最佳

nwIIgeV 发表于 2020-3-7 18:41
14楼在移速,生命,伤害上有问题,头盔ID写成了弓
26楼在字体颜色,剑和弓的移速有问题
结果:26楼最佳[:ch ...
好吧,数值确实搞不太清楚了。
