白色的小熊
比如我把铁胸甲的防护值设为+3,铁盔甲的防护值设为+2,你都穿上之后最多+3,最少+2的防御值,不能叠加,Operation的值是0.
我想要的效果是所有的装备都改了防御值,穿上之后可以叠加

xmdhs
可以叠加的。UUIDMost  UUIDLeast 和别的物品设置不一样就能叠加。

一样就是覆盖

白色的小熊
xmdhs 发表于 2020-3-8 21:07
可以叠加的。UUIDMost  UUIDLeast 和别的物品设置不一样就能叠加。

一样就是覆盖 ...

不一样?这两个到底该怎么写,谢谢大佬

xmdhs
5352 发表于 2020-3-8 21:11
不一样?这两个到底该怎么写,谢谢大佬

你让我看看你的命令,我帮你改改。

你可是连游戏版本都没说呢

白色的小熊
本帖最后由 5352 于 2020-3-8 21:16 编辑
xmdhs 发表于 2020-3-8 21:12
你让我看看你的命令,我帮你改改。

你可是连游戏版本都没说呢


版本是1.14


xmdhs

give @p minecraft:iron_chestplate{AttributeModifiers:[{Operation:0,Amount:0.05,UUIDLeast:1L,UUIDMost:1L,Slot:chest,AttributeName:"generic.movementSpeed",Name:"CBC"},{Operation:0,Amount:8,UUIDLeast:2L,UUIDMost:2L,Slot:chest,AttributeName:"generic.armor",Name:"CBC"}],display:{Name:"[{\"text\":\"§b钢胸甲\"}]",Lore:["{\"text\":\"§f品质:§a优秀\"}","{\"text\":\"§2§l说明:§b由纯铁打制,坚硬无比\"}","{\"text\":\"§a可锻造\"}"]},Enchantments:[{id:"minecraft:fire_protection",lvl:2},{id:"minecraft:projectile_protection",lvl:2},{id:"minecraft:protection",lvl:2}]} 1 give @p minecraft:iron_helmet{AttributeModifiers:[{Operation:0,Amount:0.05,UUIDLeast:3L,UUIDMost:3L,Slot:head,AttributeName:"generic.movementSpeed",Name:"CBC"},{Operation:0,Amount:6,UUIDLeast:4L,UUIDMost:4L,Slot:head,AttributeName:"generic.armor",Name:"CBC"}],display:{Name:"[{\"text\":\"§b钢盔\"}]",Lore:["{\"text\":\"§f品质:§a优秀\"}","{\"text\":\"§2§l说明:§b由纯铁打制,坚硬无比\"}","{\"text\":\"§a可锻造\"}"]},Enchantments:[{id:"minecraft:fire_protection",lvl:2},{id:"minecraft:projectile_protection",lvl:2},{id:"minecraft:protection",lvl:2}]} 1

这样就差不多了

下一页 最后一页