FireW
本帖最后由 FireW 于 2020-8-5 14:04 编辑

    版本1.14.4 Java版 HMCL启动器 正版账号    我在游戏使用各种指令,用到give指令。

    1点伤害的钻石剑(砍羊砍了8下),标签AttributeModifiers可以用。
/give @s diamond_sword{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:0,Amount:0.0,AttributeName:generic.attackDamage,Name:Attack}]}
    /图1


    5级击退(击退15格),标签Enchantments可以用。
/give @s diamond_sword{Enchantments:[{id:knockback,lvl:5}]}
    /图2


    显示名字,标签display可以用。
/give @s diamond_sword{display:{Name:'["诸神退散1"]'}}
    /图3


问题:
    但是display.Lore没有效果,明明Lore和display格式一样,而且游戏也没有报错。
/give @s diamond_sword{display:{Name:'["诸神退散1"]'}}
    正常显示名字。
    /图4 和图3 同一张


/give @s diamond_sword{display:{Name:'["诸神退散2"]',Lore:'["猪神2"]'}}
    正常显示名字,不显示描述。
    /图5



/give @s diamond_sword{display:{Lore:'["猪神3"]'}}

    不显示描述。
    /图6



    我也参考了N多网站,其他标签均可实现,但有关display.Lore还是无法实现:
    https://minecraft.gamepedia.com/Commands/give

    https://minecraft.gamepedia.com/Tutorials/Command_NBT_tags
    https://minecraft.gamepedia.com/NBT_path_format
    https://minecraft.gamepedia.com/JSON

    我的问题描述完了。各位大佬,这问题怎么解决?

    顺便告诉我一下,0点伤害的钻石剑怎么做?





FireW
图片上传也限制次数,没有图片,太难了。

⊙u⊙
本帖最后由 ⊙u⊙ 于 2020-8-4 21:02 编辑

这是name和lore的标准格式,可见你把 ' 放错位置了,至于为什么name行,我也不清楚...

give @p minecraft:stone{display:{Name:'{"text":"a"}',Lore:['{"text":"b"}']}} 1




这是我以前用过的0伤害萝卜杆

#1.12 也给补一个
give @p diamond_sword 1 0 {AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:-32767,Operation:2,UUIDLeast:-415L,UUIDMost:-423L}]}


#1.13
give @p diamond_sword{AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:-32767,Operation:2,UUIDLeast:-415L,UUIDMost:-423L}]}


#1.16
#顺便这是attribute和uuid改动后的格式
give @p diamond_sword{AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:-32767,Operation:2,UUID:[I;1,2,3,4]}]} 1

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