Wz-musk
自我检验得出是Commands.call("replaceitem entity @p slot.weapon.mainhand contenttweaker:charging_sword 1 0 {AttributeModifiers:[{UUIDMost:-8240171304046409880L,UUIDLeast:-5308093475525294207L,Amount:12.5d,Slot:"mainhand",AttributeName:"generic.attackDamage",Operation:0,Name:"generic.attackDamage"},{UUIDMost:997638106965954221L,UUIDLeast:-6486700696413801867L,Amount:1.0d,Slot:"mainhand",AttributeName:"generic.attackSpeed",Operation:0,Name:"generic.attackSpeed"}]}", player, world, false, true);这一段的问题,将武器的附加值删掉后则不会报错,如何解决这一问题

2021.12 数据,可能有更多内容自我检验得出是Commands.call("replaceitem entity @p slot.weapon.mainhand contenttweaker:charging_sword 1 0 {AttributeModifiers:[{UUIDMost:-8240171304046409880L,UUIDLeast:-5308093475525294207L,Amount:12.5d,Slot:"mainhand",AttributeName:"generic.attackDamage",Operation:0,Name:"generic.attackDamage"},{UUIDMost:997638106965954221L,UUIDLeast:-6486700696413801867L,Amount:1.0d,Slot:"mainhand",AttributeName:"generic.attackSpeed",Operation:0,Name:"generic.attackSpeed"}]}", player, world, false, true);这一段的问题,将武器的附加值删掉后则不会报错,如何解决这一问题

youyihj
把指令的所有双引号前面加个反斜杠 \ 转义一下。

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