summon Villager
Hey!今天给大家带来一个命令方块summon指令的教程,是关于自定义村民的,先给大家介绍一下基本的交易指令
summon Villager ~ ~1 ~ 招出一只普通村民,这个不多说。summon Villager ~ ~1 ~ {Profession:序号(0到5)}
呢么序号对应的是什么型号到村民呢?
0 - 村民(农名,棕色外套)
1 - 村民(图书管理员,白色外套)
2 - 村民(神父,紫色外套)
3 - 村民(铁匠,黑色披风)
4 - 村民(屠夫,白色披风)
5 - 村民(默认村民,绿色外套)
file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image001.jpg
接下来给大家介绍如何自定义交易:/summon Villager ~ ~ ~
{Offers:{Recipes:[{maxUses:9999999,buy:{id:397,Count:3},buyB:{id:44,Count:4},sell:{id:383,Damage:120,Count:1}}]}}就会召唤出一个自定义交易村民
那么给大家讲解一下自定义交易部分
Offers:自定义交易的意思。如果需要刷自定义交易村民,需要写这个。
Recipes:交易方法的意思,这也也是必须要写的。后面的maxUses什么就是交易方法。
maxUses:自定义交易次数。如果写1的话,那村民就交易该物品一次。
buy:村民买进物品,也就是玩家需要给村民的物品。后面的id和Count都和这项有关系。id是物品ID,1.8以后可以用物品名称替代,Count是交易数量。buyB也就是交易的第2个物品
sell:村民卖出的物品,也就是玩家得到的物品。和buy一样,id是物品ID,Count是数量。
如果大家想用一个村民交易出多个物品,可以参照下面这条指令:
/summon Villager ~ ~1 ~
{Offers:{Recipes:[{maxUses:9999999,buy:{id:24,Count:1},sell:{id:26,Count:1}},
{maxUses:9999999,buy:{id:31,Count:1},sell:{id:95,Count:1,Damage:3}},
{maxUses:9999999,buy:{id:13,Count:1},sell:{id:8,Count:1}}]}}
额,貌似出了什么bug,算了别在意。
也就是说在sell物品后打上
{maxUses:9999999,buy:{(后面省略)。。。。。。。。即可,但要注意!要在末尾加]}}
这些大概就是最基础的了
下面给大家讲解如何交易自定义物品:/summon Villager ~ ~1 ~
{Offers:{Recipes:[{maxUses:9999999,buy:{id:264,Count:1},sell:{id:267,Count:1,tag:{ench:[xxx],AttributeModifiers:[xxx]}}}]}}
xxx代表NBT
学过自定义附魔武器的同学都知道ench是弄出附魔武器的,在ench后面加上NBT就可以交易附魔物品,例如:tag:{ench:[{id:16,lvl:1000}],AttributeModifiers:[1] 注意tag是自定义特殊交易的必须字母
/summon Villager ~ ~1 ~ {Offers:{Recipes:[{maxUses:9999999,buy:{id:264,Count:1},sell:{id:3,Count:1,tag:{ench:[{id:16,lvl:1000}],AttributeModifiers:[xxx]}}}]}}
就可以召唤出一个交易附魔土块的村民
大家可以去查查自定义附魔武器,这里不多展开
然后AttributeModifiers(自定义武器)也一样,用AttributeModifiers的N指令同样是把xxx替换掉即可
比如
/summonVillager ~ ~1 ~{Offers:{Recipes:[{maxUses:9999999,buy:{id:264,Count:1},sell:{id:3,Count:1,tag:{ench:[{id:16,lvl:1000}],AttributeModifiers:[ {Operation:0,UUIDLeast:1,UUIDMost:1,Amount:9000000000.0,AttributeName:generic.attackDamage,Name:Attack},
{Operation:0,UUIDLeast:2,UUIDMost:2,Amount:9000000000.0,AttributeName:generic.knockbackResistance,Name:Knockback},
{Operation:0,UUIDLeast:3,UUIDMost:3,Amount:1000.0,AttributeName:generic.followRange,Name:Follow},
{Operation:0,UUIDLeast:4,UUIDMost:4,Amount:1000.0,AttributeName:generic.maxHealth,Name:Health},
{Operation:0,UUIDLeast:5,UUIDMost:5,Amount:0.1,AttributeName:generic.movementSpeed,Name:Speed}]}}}]}}
这个我也不多说了,大家可以上网查一下。
接下来给大家讲解一下改物品名称和增加备注
名称:Name 备注:Lore 相信大家都在自定义物品教程里看过
比如:
/summon Villager ~ ~ ~
{Offers:{Recipes:[{maxUses:9999999,buy:{id:122,Count:64},buyB:{id:422,Count:64},sell:{id:31,Count:1,tag:{display:{Name:"DEAD BUSH",Lore:["I'm so expensive!!!!!!!!!!!!"]}}}}]}}
就会刷出一个买枯木的村民大家都看到在tag后面要加display,然后Name后面就是"DEAD BUSH",Lore后面就是["I'm so expensive!!!!!!!!!!!!"],也就是说在你在打上你想的文字时要加引号。{Offers:{Recipes:[{maxUses:9999999,buy:{id:122,Count:64},buyB:{id:422,Count:64},sell:{id:31,Count:1,tag:{display:{Name:"DEAD BUSH",Lore:["I'm so expensive!!!!!!!!!!!!"]}}}}]}}
这两个也不多解释,大家可以自己查关于自定义物品的教程
接下来给大家讲解一下自定义村民交易染色装备,tag后面同样加display,接下来就是color,只用于交易皮革装备。
这个color指令很简单,例如:
summon Villager ~ ~ ~
{Offers:{Recipes:[{maxUses:9999999,buy:{id:394,Count:4},buyB:{id:334,Count:6},sell:{id:299,Count:1,tag:{display:{color:4252633}}}}]}}
4252633 是颜色代码,代码暂时我本还不清楚,改天发个帖子补上去。
然后是如何刷出自定义交易药水的村民:先交大家如何交易一瓶喝的药水:
/summon Villager ~ ~1 ~ {Offers:{Recipes:[{maxUses:9999999,buy:{id:264,Count:64},buyB:{id:388,Count:64},sell:{id:373,Damage:3,Count:1}}]}}
ID 373是水瓶的id,但是加了“Damage:数字”后就会把水瓶变成药水
再教大家如何交易一瓶丢的药水
/summon Villager ~ ~1 ~ {Offers:{Recipes:[{maxUses:9999999,buy:{id:388,Count:64},buyB:{id:388,Count:64},sell:{id:373,Damage:16421,Count:1}}]}}
只要把Damage的数值调到16421左右就会变成丢的药水
然后教大家如何刷出一只交易自定义药水的村民
/summon Villager ~ ~1 ~ {Offers:{Recipes:[{maxUses:9999999,buy:{id:38,Count:64},buyB:{id:133,Count:64},sell:{id:373,Damage:16424,Count:1,tag:{CustomPotionEffects:[{Id:1,Amplifier:999999,Duration:999999999},{Id:5,Amplifier:9999999,Duration:999999999},{Id:8,Amplifier:9999999,Duration:999999999}]}}}]}}
学过自定义药水的同学都知道:CustomPotionEffects要自定义药水属性的话必须写的Id:药水id,比如Id:1就是速度属性
Amplifier:药水属性等级
Duration:药水属性持续时间
如果学过自定义药水相信大家都差不多明白了,只要在tag后加上自定义药水的指令即可,但要注意:符号}一个也不能漏
这里差不多就解释完了,如果大家不明白可以往下看本人无聊弄的自定义村民
以下指令是从本人的PVE存档搬运来的,有兴趣可以下载一下:Minehero
/summon Villager ~1 ~2 ~1 {Profession:0,CustomName:"杂货商人",CustomNameVisible:1,Offers:{Recipes:[{maxUses:9999999,buy:{id:388,Count:1},sell:{id:264,Count:2}},{maxUses:9999999,buy:{id:388,Count:1},sell:{id:261,Count:1}},{maxUses:9999999,buy:{id:388,Count:1},sell:{id:262,Count:32}},{maxUses:9999999,buy:{id:388,Count:1},sell:{id:280,Count:32}},{maxUses:9999999,buy:{id:133,Count:1},sell:{id:42,Count:4}},{maxUses:9999999,buy:{id:388,Count:1},sell:{id:266,Count:8}},{maxUses:9999999,buy:{id:388,Count:1},sell:{id:260,Count:1}}]}}
这个很无聊对吧
/summon Villager ~ ~1 ~ {Profession:1,CustomName:"药水商人",CustomNameVisible:1,Offers:{Recipes:[{maxUses:9999999,buy:{id:388,Count:1},sell:{id:373,Count:1,Damage:1,tag:{CustomPotionEffects:[{Id:6,Amplifier:1,Duration:20}]}}},{maxUses:9999999,buy:{id:388,Count:2},sell:{id:373,Count:1,Damage:1,tag:{CustomPotionEffects:[{Id:6,Amplifier:2,Duration:20}]}}},{maxUses:9999999,buy:{id:388,Count:1},sell:{id:373,Count:1,Damage:2}},{maxUses:9999999,buy:{id:388,Count:3},sell:{id:373,Count:1,Damage:1,tag:{CustomPotionEffects:[{Id:10,Amplifier:1,Duration:800}]}}},{maxUses:9999999,buy:{id:388,Count:6},sell:{id:373,Count:1,Damage:3,tag:{CustomPotionEffects:[{Id:21,Amplifier:2,Duration:4000}]}}}]}}
/summon Villager ~ ~1 ~ {Profession:2,CustomName:"异界商人",CustomNameVisible:1,Offers:{Recipes:[{maxUses:9999999,buy:{id:133,Count:8},sell:{id:272,Count:1,tag:{ench:[{id:19,lvl:4},{id:17,lvl:8},{id:20,lvl:6}],display:{Name:"影之刃",Lore:["暗黑领主的第一把剑-影之刃"]},AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:37.5,AttributeName:generic.attackDamage,Name:Attack},{Operation:0,UUIDLeast:2,UUIDMost:2,Amount:11,AttributeName:generic.knockbackResistance,Name:Knockback},{Operation:0,UUIDLeast:4,UUIDMost:4,Amount:60.0,AttributeName:generic.maxHealth,Name:Health},{Operation:0,UUIDLeast:5,UUIDMost:5,Amount:0.04,AttributeName:generic.movementSpeed,Name:Speed}]}}}]}}
/summon Villager ~ ~1 ~ {Profession:5,CustomName:"超级绿宝石商人",CustomNameVisible:1,Offers:{Recipes:[{maxUses:9999999,buy:{id:133,Count:3},sell:{id:298,Count:1,tag:{ench:[{id:0,lvl:10},{id:1,lvl:10},{id:2,lvl:10},{id:3,lvl:10},{id:4,lvl:10}],display:{Name:"Emerald_Helmet",color:9168450}}}},{maxUses:9999999,buy:{id:133,Count:2},sell:{id:299,Count:1,tag:{ench:[{id:0,lvl:10},{id:7,lvl:5},{id:34,lvl:10}],display:{Name:"Emerald_Chestplate",color:9168450},AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:28.0,AttributeName:generic.maxHealth,Name:Health}]}}},{maxUses:9999999,buy:{id:133,Count:2},sell:{id:300,Count:1,tag:{ench:[{id:0,lvl:10},{id:1,lvl:10},{id:2,lvl:10},{id:3,lvl:10},{id:4,lvl:10}],display:{Name:"Emerald_Leggings",color:9168450},AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:6.0,AttributeName:generic.knockbackResistance,Name:Knockback}]}}},{maxUses:9999999,buy:{id:133,Count:2},sell:{id:301,Count:1,tag:{ench:[{id:0,lvl:10},{id:1,lvl:10},{id:2,lvl:10},{id:3,lvl:10},{id:4,lvl:10},{id:5,lvl:10},{id:6,lvl:10}],display:{Name:"Emerald_Boots",color:9168450},AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:0.1,AttributeName:generic.movementSpeed,Name:Speed}]}}},{maxUses:9999999,buy:{id:133,Count:4},sell:{id:388,Count:1,tag:{ench:[{id:16,lvl:18},{id:17,lvl:10},{id:19,lvl:3}]}}}]}}
以上指令是从本人的PVE存档搬运来的,有兴趣可以下载一下:Minehero
/summon Villager ~ ~1 ~ {Profession:2,CustomName:"Hey man!!!",CustomNameVisible:1,Offers:{Recipes:[{maxUses:9999999,buy:{id:51,Count:64},sell:{id:31,Count:1,tag:{ench:[{id:19,lvl:20000},{id:17,lvl:20000},{id:20,lvl:20000},{id:16,lvl:20000},{id:18,lvl:20000},{id:21,lvl:10},{id:32,lvl:10},{id:35,lvl:100},{id:34,lvl:1000},{id:6,lvl:10},{id:7,lvl:10}],display:{Name:"Maps_of_China's Lucky Dead Bush",Lore:["Super Dead Bush"]},AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:233333.5,AttributeName:generic.attackDamage,Name:Attack},{Operation:0,UUIDLeast:2,UUIDMost:2,Amount:10001,AttributeName:generic.knockbackResistance,Name:Knockback},{Operation:0,UUIDLeast:4,UUIDMost:4,Amount:10000.0,AttributeName:generic.maxHealth,Name:Health},{Operation:0,UUIDLeast:5,UUIDMost:5,Amount:0.99,AttributeName:generic.movementSpeed,Name:Speed}]}}}]}}
教程就到这喽,希望大家多多关注一下楼主~~~~