- <P>/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},
 
- 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:},
 
- }
 
- }}</P>
 
- <P>]}</P>
 
- <P>}</P>
RT,我不怎么会给buy项目添加NBT,谁能帮我把两个buy交易项目添加上NBT,比如这个只NBT
- display:{Name:"hahahah",Lore:["啊哈哈"],color:}
在物品ID数量后加入这段就好了(NBT整体要用{}括起来,就是{display:{Name:?}},中间夹很多{都可以)
/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就好了
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就好了
会给sell加为什么就不会给buy加?
FHC红石 发表于 2015-5-3 09:57
/summon Villager ~ ~1 ~ {Profession:0,CustomName:"?",CustomNameVisible:1,Invulnerable:1,Attributes:[ ...
之前都没看wiki
你刚回答,我就看wiki了
不就是tag:{}吗
加一个tag:{display:{XXXXXXX}}储存额外标签不就好了