本帖最后由 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点伤害的钻石剑怎么做?
版本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点伤害的钻石剑怎么做?
图片上传也限制次数,没有图片,太难了。
本帖最后由 ⊙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
这是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
本帖最后由 天佑酱 于 2020-8-5 11:21 编辑
这样可以
/give @s diamond_sword{display:{Lore:['{"text":"猪神2"}']}}
0伤害的剑:
/give @s diamond_sword{Tags:["SMFX"],display:{Lore:['{"text":"这是一把没有伤害的剑"}']}}
再在循环型激活的命令方块或者function里面输入
effect give @a[nbt={SelectedItem:{tag:{Tags:["SMFX"]}}}] minecraft:weakness 1 1 true
即可
这样可以
/give @s diamond_sword{display:{Lore:['{"text":"猪神2"}']}}
0伤害的剑:
/give @s diamond_sword{Tags:["SMFX"],display:{Lore:['{"text":"这是一把没有伤害的剑"}']}}
再在循环型激活的命令方块或者function里面输入
effect give @a[nbt={SelectedItem:{tag:{Tags:["SMFX"]}}}] minecraft:weakness 1 1 true
即可
本帖最后由 爱心魔王FHC 于 2020-8-5 11:09 编辑
这样
/give @s diamond_sword{display:{Name:'["诸神退散2"]',Lore:['{"text":"猪神2"}']}}
0伤害好像做不到,因为玩家手打都有1伤害,刚刚把钻石剑伤害改成0了,但是也至少还有1伤害
这样
/give @s diamond_sword{display:{Name:'["诸神退散2"]',Lore:['{"text":"猪神2"}']}}
0伤害好像做不到,因为玩家手打都有1伤害,刚刚把钻石剑伤害改成0了,但是也至少还有1伤害
因为lore本身是列表
Lore:['[]','[]']
Lore:['[]','[]']