GTVZDH123

  1. <P>/summon Villager ~ ~1 ~
  2. {Profession:0,
  3. CustomName:"?",CustomNameVisible:1,
  4. Invulnerable:1,Attributes:[{Name:generic.maxHealth,Base:1}],
  5. Offers:{Recipes:[
  6. {maxUses:9999999,
  7. buy:{id:stone,Count:1,Damage:3},
  8. buyB:{id:stone,Count:1,Damage:4},
  9. sell:{id:stone,Count:1,Damage:5,Damage:0S,tag:{AttributeModifiers:[
  10. {Operation:0,UUIDLeast:1,UUIDMost:1,Amount:22,AttributeName:generic.attackDamage,Name:G},
  11. ],
  12. display:{Name:"hahahah",Lore:["啊哈哈"],color:},
  13. }
  14. }},
  15. {maxUses:9999999,
  16. buy:{id:stone,Count:1,Damage:3},
  17. buyB:{id:stone,Count:1,Damage:4},
  18. sell:{id:stone,Count:1,Damage:5,Damage:0S,tag:{AttributeModifiers:[
  19. {Operation:0,UUIDLeast:1,UUIDMost:1,Amount:22,AttributeName:generic.attackDamage,Name:G},
  20. ],
  21. display:{Name:"hahahah",Lore:["啊222"],color:},
  22. }
  23. }}</P>
  24. <P>]}</P>
  25. <P>}</P>
复制代码

RT,我不怎么会给buy项目添加NBT,谁能帮我把两个buy交易项目添加上NBT,比如这个只NBT
  1. display:{Name:"hahahah",Lore:["啊哈哈"],color:}
复制代码
急需啊!!!




MsYqgzt
在物品ID数量后加入这段就好了(NBT整体要用{}括起来,就是{display:{Name:?}},中间夹很多{都可以)

爱心魔王FHC
/summon Villager ~ ~1 ~ {Profession:0,CustomName:"?",CustomNameVisible:1,Invulnerable:1,Attributes:[{Name:generic.maxHealth,Base:1}],Offers:{Recipes:[{maxUses:9999999,buy:{id:stone,Count:1,Damage:3,tag:{display:{Name:"hahahah",Lore:["啊哈哈"],color:你没写}},buyB:{id:stone,Count:1,Damage:4},sell:{id:stone,Count:1,Damage:5,Damage:0S,tag:{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:22,AttributeName:generic.attackDamage,Name:G},],display:{Name:"hahahah",Lore:["啊哈哈"],color:},}}},{maxUses:9999999,buy:{id:stone,Count:1,Damage:3},buyB:{id:stone,Count:1,Damage:4},
sell:{id:stone,Count:1,Damage:5,Damage:0S,tag:{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:22,AttributeName:generic.attackDamage,Name:G},
],display:{Name:"hahahah",Lore:["啊222"],color:},}}}]}}

建议去看PM大神的基础贴
加个tag就好了

chyx
会给sell加为什么就不会给buy加?

GTVZDH123
FHC红石 发表于 2015-5-3 09:57
/summon Villager ~ ~1 ~ {Profession:0,CustomName:"?",CustomNameVisible:1,Invulnerable:1,Attributes:[ ...

之前都没看wiki
你刚回答,我就看wiki了

litttle
不就是tag:{}吗

lzs1234
加一个tag:{display:{XXXXXXX}}储存额外标签不就好了