希贝儿若颜
大家告诉我一下nbt,我先打个开头/give @a diamond_sword 1 0 {这边nbt标签填啥}

SPGoding
/give @a diamond_sword 1 0 {AttributeModifiers:[{AttributeName:"generic.knockbackResistance",Name:"SPG",Operation:0,Amount:1.0d,UUIDMost:1L,UUIDLeast:1L}]}


1.0 是 100%,0.5 是 50%,以此类推。

我真狂
你可以去mc百科的命令方块实用工具那,https://www.mcmod.cn/

希贝儿若颜
SPGoding 发表于 2019-7-22 19:20
/give @a diamond_sword 1 0 {AttributeModifiers:[{AttributeName:"generic.knockbackResistance",Name:"S ...

如何与这条指令合并:/give @p minecraft:diamond_sword 1 0 {Unbreakable:1,ench:[{id:21,lvl:5}],AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:10.0,AttributeName:generic.attackDamage,Name:Attack}]}

SPGoding
希贝儿若颜 发表于 2019-7-22 19:29
如何与这条指令合并:/give @p minecraft:diamond_sword 1 0 {Unbreakable:1,ench:[{id:21,lvl:5}],Attri ...

/give @a diamond_sword 1 0 {AttributeModifiers:[{AttributeName:"generic.knockbackResistance",Name:"SPG",Operation:0,Amount:1.0d,UUIDMost:1L,UUIDLeast:1L},{Operation:0,UUIDLeast:2L,UUIDMost:1L,Amount:10.0d,AttributeName:"generic.attackDamage",Name:"Attack"}],Unbreakable:1b,ench:[{id:21s,lvl:5s}]}


如果想学的话建议学习 NBT 基础:https://commandtutorials.neocities.org/

第一页 上一页 下一页 最后一页